Home  >  Article  >  Web Front-end  >  What is the HTML paragraph tag? What are the specific attributes of paragraph tags?

What is the HTML paragraph tag? What are the specific attributes of paragraph tags?

寻∝梦
寻∝梦Original
2018-08-14 16:23:1020637browse

HTML is very popular now. Everything on a web page cannot be separated from HTML, so HTML is very important. This article will tell you what the paragraph tags in HTML are and what they are. Attributes

What is the paragraph tag of HTML:

The paragraph tag of HTML is a type of standard text tag: mainly the e388a4556c0f65e1904146cc1a846bee tag and 0c6dc11e160d3b678d68754cc175188a Tag, a tag used to standardize text

Text and paragraph tags

Title tag: 4a249f0d628e2318394fd9b75b4636b1473f0a7621bec819994bb5020d29372a~4e9ee319e0fa4abc21ff286eeb145ecc< ;/6>

Paragraph tag: e388a4556c0f65e1904146cc1a846bee94b3e26ee717c64999d7867364b1b4a3

Line break tag: 0c6dc11e160d3b678d68754cc175188aSingle tag, used after a line;

Paragraph Attributes in the tag:

Align Alignment attribute value

left : Left-aligned

right : Right-aligned

center : Centered Alignment

justify Stretch the lines so that each line has the same length

Use: 7552ec0103463462f998ac892f874bd8 Text content94b3e26ee717c64999d7867364b1b4a3

Newline tag: 076402276aae5dbec7f672f8f4e5cc81(single tag)

 :space

e03b848252eb9375d56be284e690e873bc5574f69a0cba105bc93bd3dc13c4ec: the content format displayed by the browser and the format in the tag consistent.

Horizontal line: fa8fd94cc4b4d9671e4ee513ae2a31d1 (single mark)

hr attribute value

width: Set the width of the horizontal line

color : Set the color of the horizontal line

align : Set the alignment of the horizontal line

noshade Set the horizontal line without shadow

Use: f071cb55d7205804742b99b0f481245c

Italic text:5a8028ccc7a7e27417bff9f05adf593272ac96585ae54b6ae11f849d2649d9e6 907fae80ddef53131f3292ee4f81644bd1c6776b927dc33c5d9114750b586338

Add bold:a4b561c25d9afb9ac8dc4d70affff4190d36329ec37a2cc24d42c7229b69747a 8e99a69fbe029cd4e2b854e244eab1433eca6633a7888701eae35daa62509e18

Lower subscript: b96cac025db4031319c29e1eb68f19d6

Upper subscript: 2cdea26b4c3988e37d674b56660962a7

Underline: 426be984ffbbb815d7d88e3543a85d91

Delete: < ;del>

Specific usage:

Paragraphs are defined through the e388a4556c0f65e1904146cc1a846bee tag.

<p>This is a paragraph</p>
<p>This is another paragraph</p>

Note: The browser will automatically add blank lines before and after paragraphs. (e388a4556c0f65e1904146cc1a846bee is a block-level element)

Tip: It is a bad habit to use empty paragraph tags e388a4556c0f65e1904146cc1a846bee94b3e26ee717c64999d7867364b1b4a3 to insert a blank line. Replace it with the df250b2156c434f3390392d09b1c9563 tag! (But don't use the df250b2156c434f3390392d09b1c9563 tag to create the list. Don't worry, you will learn about HTML lists later.)

Don't forget the closing tag

Most browsers will display the HTML correctly even if you forget to use the closing tag, but don't rely on this practice. Forgetting to use closing tags can produce unexpected results and errors.

Note: In a future version of HTML, omitting the closing tag will not be allowed.

Tip: Closing HTML with a closing tag is a future-proof way to write HTML. Clearly marking where an element begins and ends makes your code easier to understand, both for you and the browser.

HTML Line Break

If you want to wrap (new line) without creating a new paragraph, use the df250b2156c434f3390392d09b1c9563 tag:

<p>This is<br />a para<br />graph with line breaks</p>

df250b2156c434f3390392d09b1c9563 element is an empty HTML element. Since a closing tag doesn't make any sense, it doesn't have a closing tag.

0c6dc11e160d3b678d68754cc175188a or df250b2156c434f3390392d09b1c9563

You may find that 0c6dc11e160d3b678d68754cc175188a is similar to df250b2156c434f3390392d09b1c9563.

In XHTML, XML, and future versions of HTML, HTML elements without a closing tag (closing tag) are not allowed.

Even if 0c6dc11e160d3b678d68754cc175188a displays correctly in all browsers, using df250b2156c434f3390392d09b1c9563 is a longer-term guarantee.

The above is an introduction to HTML in paragraphs. It is very simple and easy to learn. I hope everyone will learn all the elements of HTML.

[Related recommendations]

The basic elements of html, allowing you to learn HTML from scratch

What is an HTML file? A preliminary understanding of HTML files

The above is the detailed content of What is the HTML paragraph tag? What are the specific attributes of paragraph tags?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn