Get the App
SLTechnology News&Howtos  ›  Development  › 

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

Shulou Source: shulou.com Published: 2022-06-01 06:13:00 09月30日 Update

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!

Tags: Tags keyboards browsers browsing one-line functions cursors text formatting enterprise content at the same time situations arrows articles semantics mouse multiline development mobile Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Apple MariaDB Linux Redmi