HTML Paragraph Element | 99codes

The Paragraph Element


The HTML <p> component speaks to a section. Sections are generally spoken to in visual media as squares of content isolated from nearby squares by clear lines as well as first-line space, yet HTML passages can be any basic gathering of related substance, for example, pictures or structure fields.

Passages are square dimension components, and remarkably will consequently close if another square dimension component is parsed before the end </p> tag. See "Label oversight" beneath.



HTML Demo -



CSS Demo -



OUTPUT -


HTML Paragraph element

Content categories -

Flow Content,palpable content.

Permitted Content -

Phrasing content

Tag Omission -

The begin tag is required. The end tag might be excluded if the <p> component is promptly trailed by a <address>, <article>, <aside>, <blockquote>, <div>, <dl>, <fieldset>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hr>, <menu>, <nav>, <ol>, <pre>, <section>, <table>, <ul> or another <p> component, or if there is not any more substance in the parent component and the parent component isn't a <a> component.

Permitted Parents -

Any Element that accepts flow content.

Permitted ARIA Roles -

Any

DOM Enterface -

HTML paragraph element

Attributes -

The element only includes the global attributes.

Note : The align attribute on <p> tags is obsolete and shouldn't be used.

Example -


HTML -




Result -


This is the first paragraph of text. This is the first paragraph of text. This is the first paragraph of text. This is the first paragraph of text.
This is the second paragraph. This is the second paragraph. This is the second paragraph. This is the second paragraph.

Accessibility Concerns -


Separating content into sections helps make a page increasingly available. Screen-perusers and other assistive innovation give alternate ways to give their clients a chance to jump to the following or past section, giving them a chance to skim substance like how blank area gives visual clients a chance to skip around.

Utilizing void <p> components to include space between passages is risky for individuals who explore with screen-perusing innovation. Screen perusers may report the section's quality, however no substance contained inside it — in light of the fact that there is none. This can confound and disappoint the individual utilizing the screen peruser.

On the off chance that additional room is wanted, use CSS properties like edge to make the impact:






HTML Paragraph Element | 99codes HTML Paragraph Element | 99codes Reviewed by Arup Roy on March 29, 2019 Rating: 5

No comments:

Powered by Blogger.