05.HTML Headings,Rules,Comments

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

No comments:

My Favorite Books

  • C and Data Structures by Ashok N. kamthane
  • Web Technologies by A. A. Puntambekar
  • Learn HTML and CSS with W3Schools
  • Learn JavaScript and Ajax with W3Schools
  • HTML5 Black Book: Covers Css3, Javascript,XML, XHTML, Ajax, PHP And Jquery
  • HTML5 Application Development Fundamentals: MTA Exam 98-375
  • .NET 4.0 Programming 6-In-1, Black Book
  • SQL Server 2008 R2 Black Book
  • Asp.net 4.0 Projects Covers: net 3.5 And .net 4.0 Codes, Black Book
  • UNIX Shell Programming 1 Edition by Yashavant Kanetkar
  • UNIX and Shell Programming 1 Edition by Richard F. Gilberg, Behrouz A. Forouzan
  • Computer Networks by Andrew S. Tanenbaum
  • Multiple Choice questions in computer science by Timothy J Williams