Home / HTML Traning & Course / Lesson 2 : HTML BASIC TAGS

Lesson 2 : HTML BASIC TAGS

HTML BASIC TAGS

-HTML BASIC TAGS,HTML is a markup language and consists of  various tags to format the content. These tags are enclosed within angle braces<tagname>.The start tag is also called the opening tag, and the end tag as the closing tag.

<tagname>content …</tagname>     

Heading Tags

HTML has 6 levels of  heading tags.These are defined with <h1> to <h6>.Browser adds some space before and after each heading while displaying.

Example

html basics tags example 1

Above example result:

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 Tags

Paragraph tags are defined as <p> . This tag gives a way to structure your text into different paragraphs. The text of the paragraph should be in between the opening tags(<p>) and closing tags(</P>). Browser adds some space before and after each paragraph while displaying.

Note: Forgeting the close tags produce unexpected results or errors.

Example

HTML BASIC TAGS EXAMPLE 2

Above example result:

This is a paragraph.

This is a paragraph.

This is a paragraph.

Horizontal Lines Tag

The <hr>  Tag defines the Horizontal line tag,which are used to break up content of a document by creating a horizontal line.

Example

HTML BASIC TAGS  example 3

Above example result:

html basic tags example 4

 

Line Break Tag

The <br> tag defines the line break tag, which is an empty tag i.e it has no end tag.Use <br> if you want a line break (a new line) without starting a new paragraph

Example

html basic tags example 5

 

Above example result:

Thankyou

For Visiting

SMARTZWORLD

 

About Smartz

Check Also

code for fancy search form

Code for fancy search form Here is step by step HTML and CSS example code for fancy …

Leave a Reply