Basic HTML Tags

The most important tags in HTML are tags that define headings, paragraphs and line breaks.













HTML Headings

HTML headings are defined with the <h1> to <h6>
<h1> defines the most largest important heading
<h6> defines the least smallest important heading

<h1>This is a heading </h1>

<h2>This is a heading</h2>

<h3>This is a heading </h3>

<h4>This is a heading </h4>

<h5>This is a heading</h5>
<h6>This is a heading </h6>
Paragraphs
Paragraphs are defined with the <p> tag. Think of a paragraph as a block of text. You can use the align attribute with a paragraph tag as well. 
Example: 
<p> this is first para </p>
<p> This is second paragraph</p>
Line Breaks
The <br> tag is used when you want to start a new line, but don't want to start a new paragraph.
The <br> tag forces a line break wherever you place it. It is similar to single spacing in a document.
Example: 
<p>Paro <br> Collge of <br> Education
You will get output as 
Paro
College of 
Education
Horizontal Rule 
The element is used for horizontal rules that act as dividers between sections 
The horizontal rule does not have a closing tag. It takes attributes such as align and width. 
Comments in HTML 
The comment tag is used to insert a comment in the HTML source code. A comment can be placed 
anywhere in the document and the browser will ignore everything inside the brackets. You can use 
comments to write notes to yourself, or write a helpful message to someone looking at your source 
code. 

Comments