HTML DOCUMENT STRUCTURE
<!DOCTYPE html> <html> <head> <title>Heading Example</title> </head> <body> <h1>Structure Heading</h1> <p>Paragraph</p> </body> </html>
**Save this code from .htm or.html extension**
OUTPUT
Structure Heading
Structure Heading
Paragraph
HTML HEADING
HTML has 6 levels of heading that is <h1> <h2> <h3> <h4> <h5> and <h6>
EXAMPLE:
<!DOCTYPE html> <html> <head> <title>Heading Example</title> </head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>
Output
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6
Paragraph Tag
<p> Tag is used for a paragraph. It is paired tag. Each paragraph start from opening tag <p> and closed from closing tag </p>.
EXAMPLE:
<!DOCTYPE html> <html> <head> <title>Paragraph </title> </head> <body> <p>Here is a first paragraph of text.</p> <p>Here is a second paragraph of text.</p> <p>Here is a third paragraph of text.</p> </body> </html>
Comments
Post a Comment