HTML Headings :-
HTML headings are used to define the overall structure of a web page. They are typically used to indicate the main sections of a page, such as the title, headings, and subheadings. Headings can also be used to create a hierarchy of information on a page, which can be useful for users who are looking for specific information.
Headings are defined with the h1 to h6 tags, with h1 being the most important heading and h6 being the least important.
The title of a web page is typically defined with the h1 tag, while the h2 tag is typically used for the main headings on a page. The h3 tag is typically used for subheadings, and the h4, h5, and h6 tags are typically used for smaller sections of text.
It is important to use headings correctly on a web page, as they can impact both the usability and the accessibility of a page. Headings should be used to create a hierarchy of information, and they should be used to indicate the importance of different sections of text.
HTML Paragraph :-
HTML paragraphs are defined with the <p> tag.
Paragraphs are created in HTML by placing the opening <p> tag before the first line of text, and the closing </p> tag after the last line of text.
The text in between the <p> tags will be displayed as a paragraph.
You can have as many paragraphs as you like on a single HTML page, each one starting with a new <p> tag.
Paragraphs are usually displayed with a blank line between them, although this is not a requirement.
If you want to have a paragraph that does not have a blank line between it and the previous or next paragraph, you can use the <br> tag to force a line break.
The <br> tag is an empty tag, which means it has no closing tag.
Here is an example of a paragraph:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
And here is an example of a paragraph with a line break:
<p>This is a paragraph.<br>
This is another paragraph.</p>
HTML Text Formating tags :-
HTML text formatting is the process of formatting text for display on a web page. The most common text formatting tags are <b> (bold), <i> (italic), and <u> (underline). Other text formatting tags include <p> (paragraph), <h1> (heading 1), <h2> (heading 2), <h3> (heading 3), and <pre> (preformatted).
Text formatting is a necessary part of web design and development because it helps to improve the readability of web pages. By using text formatting tags, web designers can control the way text is displayed on a page. For example, by using the <b> tag, web designers can make text bold. By using the <i> tag, web designers can make text italic. And by using the <u> tag, web designers can underline text.
Text formatting is also important for accessibility purposes. For example, the <b> tag can be used to make text bold for people who are visually impaired. The <i> tag can be used to make text italic for people who are dyslexic. And the <u> tag can be used to underline text for people who are blind.
Here is the list of HTML text formating tags. We will learn shorty about them.
<b> Defines bold text
<em> Defines emphasized text
<i> Defines a part of text in an alternate voice or mood
<small> Defines smaller text
<strong> Defines important text
<sub> Defines subscripted text
<sup> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
<mark> Defines marked/highlighted text
Example of Text Formating Tags :)
<p>This is <i>italic</i>. This is <b>bold</b>. This is <u>underline</u></p>
This paragraph will look like thus :
This is italic. This is bold. This is underline.
0 Comments