Tuesday, December 5, 2023
HomeVideo EditingHTML Factor: br

HTML Factor: br


Instance

Syntax

1
<p>John Doe <br> created a brand new account yesterday.</p>

Consequence

Browser Help

The <br> tag is supported in all fashionable browsers however should be used the place phrasing content material is predicted. Learn extra on caniuse.com.

Attributes

The <br> tag helps International Attributes in HTML. International Attributes are frequent 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 <br> tag is a void component, which implies it has no content material mannequin.

Gimme a Break

Is it <br>, <br/> or <br />? There’s typically confusion on which method to write the br tag in immediately’s HTML5 requirements.

<br> is ample, and fashionable browsers are forgiving sufficient to transform different variants to that one. Keep in mind that a br tag is a self-closing tag so it doesn’t encompass nor describe any content material.

Be taught Extra

Do you know: If a paragraph (<p> </p>) consists of nothing however a single <br> component, it represents a clean line? These traces mustn’t be used for presentation functions.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments