no license
64y6kMGBSVhmzQfbQP8oc9bYR1c2g7asOs4JOlci
Bookmark

Html Headings and Paragraph tags

Text Heading Tags

Heading Element:->

• There are six heading elements

(<H1>,<H2>,<H3>,<H4>, <H5>,<H6>).

• All the six heading elements are container tag and requires a closing tag.

• <h1> will print the largest heading.

• <h6> will print the smallest heading.


Heading Tag Code

<html>

<title>heading</title>

<body>

<h1>heading 1 </h1>

<h2>heading 2 </h2>

<h3>heading 3 </h3>

<h4>heading 4 </h4>

<h5>heading 5 </h5>

<h6>heading 6 </h6>

</body>

</html>


HTML Paragraph Tag

• HTML documents are divided into paragraphs.

• Paragraphs are defined with the <p> tag i.e.

<p>This is a paragraph</p>

<p>This is another paragraph</p>

<pre>This text is preformatted</pre>


Post a Comment

Post a Comment

Ask your questions.