In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about what the paragraph tags of HTML are. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
What is the paragraph tag for HTML:
The paragraph tag of HTML is a tag for standard text: mainly
Label and
Label, a label used to standardize text
Text and paragraph tags
Title tag: ~
Paragraph tags:
Newline label:
Single label, used after a line
Attributes in paragraph tags:
Align alignment attribute valu
Left: align to the left
Right: align to right
Center: Center alignment
Justify stretches rows, each of which has the same length
Using: text content
Newline label: (single tag)
& nbsp: space
The format of the content displayed by the browser is the same as that in the tag
Horizontal line: (single tag)
Hr attribute value
Width: setting horizontal line width
Color: setting horizontal line color
Align: setting horizontal line alignment
Noshade sets the horizontal line without shadow
Use:
Text italics:
Bold:
Subscript:
Superscript:
Underline:
Delete:
Specific use:
The paragraph is through the
Defined by the label.
Thisisaparagraph
Thisisanotherparagraph
Comments: the browser automatically adds blank lines before and after the paragraph. (
Is a block-level element)
Tip: use empty paragraph marks
It's a bad habit to insert a blank line. Replace it with a label! (but don't use tags to create lists. Don't worry, you'll learn about the HTML list later. )
Don't forget the closing tag.
Even if you forget to use the closing tag, most browsers will display the HTML correctly, but don't rely on this. Forgetting to use the closing tag can produce unexpected results and errors.
Note: the closing tag is not allowed to be omitted in future versions of HTML.
Tip: closing HTML by closing the tag is a way to write HTML that can stand the test of the future. Clearly marking where an element begins and ends makes the code easier to understand, both for you and for the browser.
HTML wrapping
If you want to wrap (new lines) without generating a new paragraph, use the tag:
Thisisaparagraphwithlinebreaks
Element is an empty HTML element. Because closing the tag does not make any sense, it does not end the tag.
Or
You may find that
It's very similar to.
In XHTML, XML, and future versions of HTML, HTML elements without closing tags (closing tags) are not allowed.
even if
There is no problem with the display in all browsers, and use is a longer-term guarantee.
Thank you for reading! This is the end of this article on "what is the paragraph tag of HTML?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.