Tuesday, May 13, 2014

HTML Headings and Paragraph

// // Leave a Comment

Headings are defined with the <h1> to <h6> tag.
Example:
<h1>first heading</h1>
<h2>second heading</h2>
<h3>third heading</h3>
<h4>fourth heading</h4>
<h5>fifth heading</h5>
<h6>sixth heading</h6>
Result:

first heading

second heading

third heading

fourth heading

fifth heading
sixth heading
Note: Browsers automatically add some empty space (a margin) before and after each heading.

HTML Paragraph

Paragraph aare defined with the <p> tag
<!DOCTYPE html>
<html>
<body>
<p>this is a paragraph</p>
</body>
</html>
Note: Browsers automatically add an empty line before and after a paragraph.

0 comments:

Post a Comment