HTML Headings
<h1>This is a Heading 1</h1>
<h2>This is a HEading 2</h2>
<h3>This is a HEading 2</h3>
<h4>This is a HEading 2</h4>
<h5>This is a HEading 2</h5>
<h6>This is a HEading 2</h6>
Browsers automatically add an empty line before and after headings.
HTML Rules(Lines)
Rules are often used to separate sections of document
<html>
<body>
<p>The hr tag defines a horizontal rule:</p>
<hr/>
<p>This is a paragraph</p>
<hr/>
<p>This is a paragraph</p>
<ht/>
<p>This is a paragraph</p>
</body>
</html>
HTML Comments
<html>
<body>
<!--This comment will not be displayed-->
<p>This is a regular paragraph</p>
</body>
</html>
Notice there is an exclamation point after the opening bracket, but not before the closing bracket
Viewing HTML source code
To find out source code : right-click in the page and select View Source
<h1>This is a Heading 1</h1>
<h2>This is a HEading 2</h2>
<h3>This is a HEading 2</h3>
<h4>This is a HEading 2</h4>
<h5>This is a HEading 2</h5>
<h6>This is a HEading 2</h6>
Browsers automatically add an empty line before and after headings.
HTML Rules(Lines)
Rules are often used to separate sections of document
<html>
<body>
<p>The hr tag defines a horizontal rule:</p>
<hr/>
<p>This is a paragraph</p>
<hr/>
<p>This is a paragraph</p>
<ht/>
<p>This is a paragraph</p>
</body>
</html>
HTML Comments
<html>
<body>
<!--This comment will not be displayed-->
<p>This is a regular paragraph</p>
</body>
</html>
Notice there is an exclamation point after the opening bracket, but not before the closing bracket
Viewing HTML source code
To find out source code : right-click in the page and select View Source
No comments:
Post a Comment