HTML Tags

Tag in html

HTML Tags are the keywords which define’s that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content.

The three main parts of Html Tags are:

i. Opening Tag
ii. Content
iii. Closing Tag

Note: But there are some Tags which are unclosed.


Example :

<h1>This is heading tag</h1>
<p>This is a paragraph tag </p>
<i>This tag is used to make a sentence or word in italic form</i>
<b>This tag is used to make a sentence or word in bold form </b>
<u>It is used to underkline a sentence</u>
<a>This is a link tag</a>

Unclosed Tag :

The Tag which are unclosed in HTML are:

a. <br> :This tag is used give a space between a line.

b. <hr> :This tag is used to put a line across the webpage.


Meta Tag :

The Tag which are placed before opening of body tag are:

i. < !Doctype> :This tag is used to specify the version of HTML

ii. <title> :It defines the title or name of an HTML document.

iii. <meta> :It defines metadata of an HTML document.

iv. <link> :It represents a relationship between current document and an external resource.

v. <style> :It is used to contain style information for an HTML document.


Link Tag:

The tag which are used to navigate from one page to another are:

a. <a> :It is termed as anchor tag and it creates a hyperlink or link.

b. <base> :This tag defines the base URL for all relative URL within the document.


Text Tag :

The Tag which are used in body tag are:

1. <p> :It represents a paragraph in an HTML document.

2. <u> :It is used to render enclosed text with an underline.

3. <b> :It is used to make a text bold.

4. <i> :It is used to represent a text in some different voice.

5. <h1> :It defines headings for an HTML document level 1

6. <h2> :It defines headings for an HTML document level 2

7. <h3> :It defines headings for an HTML document level 3

8. <h4> :It defines headings for an HTML document level 4

9. <h5> :It defines headings for an HTML document level 5

10. <h6> :It defines headings for an HTML document level 6

11. <strong> :It is used to define important text.

12. <div> :It defines a division or section within HTML document.

13. <em> It is used to emphasis the content applied within this element.

14. <var> It defines variable name used in mathematical or programming context.

15. <br> :It is used to apply single line break.

16. <code> :  It is used to display a part of programming code in an HTML document.

17. <address> :It defines the author’s contact information of the HTML article

18. <abbr> :It defines an abbreviation for a phrase or longer word.

19. <acronmy> :It defines acronym for a word. (Not supported in HTML5)

20. <bdo> :It is used to override the current text direction.

21. <ins> :It represent text that has been inserted within an HTML document.

22. <del> :It defines a text which has been deleted from the document.

23. <body> :It is used to define the body section of an HTML document.

24. <pre> :It defines preformatted text in an HTML document.

25. <aside> :It defines content aside from main content. Mainly represented as sidebar.


Image Tag :

It is used to set a image on a webpage:

i) <img> :It is used to insert an image within an HTML document.

ii) <area> :  It defines the area of an image map.

iii) <map> :It defines an image map with active areas.

iv) <object> :It is used to embed an object in HTML file.

v) <link> :It represents a relationship between current document and an external resource.


List Tag:

This tag is used to print a points in a sequence like in no. in dot and many others type:

1. <ul> :It defines unordered list of items.

2. <li> :It is used to represent items in list.

3. <dt> :It is used to define a term in description list.

4. <ol> :It defines ordered list of items.

5. <dl> :It is sued to define a description list.


Table Tag :

This Tag is used to make a table

i. <table> :It is used to present data in tabular form or to create a table within HTML document.

ii. <td> :It is used to define cells of an HTML table which contains table data

iii. <th> :It defines the head cell of an HTML table.

iv. <td> :It is used to define cells of an HTML table which contains table data.

v. <tbody> :It represents the body content of an HTML table and used along with <thead> and <tfoot>.

vi. <tr> :It defines the row cells in an HTML table

vii. <col> :It defines a column within a table which represent common properties of columns and used with the <colgroup> element.

viii. <caption> :It is used to define a caption for a table.


Form Tag :

1. <button> :It is used to represent a clickable button

2. <form> :It is used to define an HTML form.

3. <input> :It defines an input field within an HTML form.

4. <textarea> :It is used to define multiple line input, such as comment, feedback, and review, etc.

5. <lable> :It defines a text label for the input field of form.

6. <select> :It represents a control which provides a menu of options.

7. <fieldset> :It is used to group related elements/labels within a web form.

8. <option> :It is used to define options or items in a drop-down list.


Recommended Posts:

Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *