Monday, December 4, 2023
HomeVideo EditingHTML Aspect: p

HTML Aspect: p


Instance

Syntax

Content material generated by heisenbergipsum.com.

1
<p>Gus is gonna make his transfer. I do not know when, I do not know the place or how. All I do know is it is gonna occur. Powerless to cease him.</p>
2

3
<p>My associate was about to get himself shot. I intervened. He was offended as a result of these two sellers of yours had simply murdered an eleven year-old boy. Then once more, possibly he thought it was you who gave the order.</p> 
4

5
<p>He has sufficient cash to final ceaselessly. He is aware of he must maintain transferring. You will by no means discover him. He is out of the image. I saved his life, I owed him that, however now he and I are carried out.</p>

Consequence

By default, browsers separate paragraphs with a single clean line.

The + adjoining sibling combinator is the right CSS selector for indenting all paragraphs besides the primary.

Browser Help

The p ingredient is supported in all trendy browsers. Learn extra on caniuse.com.

Attributes

A p ingredient helps International Attributes in HTML. International Attributes are widespread to all HTML parts and can be utilized on all of them (although they could not have a lot of an impact on a few of them).

Content material

The p ingredient helps phrasing content material; inline parts which are used to mark up textual content material, equivalent to <span>, <em>, <sturdy>, and <a>.

Listing parts (i.e., ul, li) can’t be youngsters of p parts. 

Accessibility

Break content material into paragraphs to make a web page extra accessible. Assistive applied sciences then know easy methods to present shortcuts to let customers skip to the following or earlier paragraph, letting them skim content material extra effectively.

Keep away from utilizing empty paragraph tags for creating visible house between content material. Assistive applied sciences nonetheless deal with these empty tags as content material to learn, which does a disservice to the tip consumer. Use CSS to offset content material as essential as a substitute. 

Study Extra

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments