Html Tags

HTML tags are like keywords which defines that how web browser will format and display the content.



Html tags contains three main parts: 

  1. opening bracket, 
  2. content, 
  3. closing bracket.
HTML tags are used to create HTML documents and render their properties.

Each HTML tags has different properties.

All HTML tags must be enclosed within < > these brackets.

Syntax: <tag> Content </tag>


Example:  

<!DOCTYPE>
<html>  
<body>  
<p> Paragraph Tag </p>
<h2> Heading Tag </h2>
<b> Bold Tag </b>
<i> Italic Tag </i>
<u> Underline Tag</u>
</body>  
</html>  

Output:

Paragraph Tag

Heading Tag

Bold Tag Italic Tag Underline Tag


Html Unclosed Tags:  <hr> and <br>

Html Meta Tags: DOCTYPE, title, link, meta and style

Html Text Tags: <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>, <acronym>, <address>, 

Html Link Tags: <a> and <base>

Html Image Tags: <img>, <area>, <map>, <param> and <object>

Html Form Tags: form, input, textarea, select, option, optgroup, button, label, fieldset and legend

Html Table Tags: table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption

Post a Comment

1 Comments