Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of h tag, p tag and hr tag in HTML

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the h tag and p tag and hr tag in HTML what is the use, I hope you will gain something after reading this article, let's discuss it together!

How to use keyboard shortcuts in webstorm to create a new html file?

Press ctrl+alt+insert (windows) on the keyboard at the same time

Press ctrl+alt+n (os) on the keyboard at the same time

H label series (header1--header6)

Function: used to add title semantics to text

Format: xxxxx

Note:

The h tag is used to add label title semantics to the text, not to modify the style of the text.

There are 6 h tags in total. From h2--h7, you can only get 6 at most, and more than 6 tags are invalid (you can use each h tag to have a unique line. If you write to H7, there will be a juxtaposition of H7 and H7 tags with the same size)

The content wrapped by the h-series label will have a single line.

Among the h series labels, H2 is the largest and H7 is the smallest.

In enterprise development, we must be careful to use h series tags, especially H2 tags. In general, there can only be one H2 tag in an interface (related to seo).

How do I move the cursor to the end of the current line in webstorm?

Press the end key on the keyboard (windows)

Press the FN key + right arrow key on the keyboard (os)

How do I move the cursor to the front of the current line in webstorm?

Press the home key on the keyboard (windows)

Press the FN key + left arrow key on the keyboard (os)

How do I make the cursor blink on multiple lines in webstorm?

Press the alt key on the keyboard, then press the left mouse button, and then drag the mouse (you can enter the same content in multiple lines)

P label

Function: tell the browser which text is a paragraph

Format:

Xxxxxxx

Note:

There will be a separate line in the browser (in addition to seeing it in the browser, you can also see that the p tag is wrapped through "F12" and element)

Hr tag

Function: display a split line on the browser

Format:

Note: a separate line will be occupied in the browser

After reading this article, I believe you have a certain understanding of "what is the use of h tag, p tag and hr tag in HTML". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report