Tags in HTML


HTML has lots of predefined tag. Some of them are listed with description below:

HTML tag:
It is the core of the html document and used to indicate that the document is html.
Example:-
<html>

<head>
<title> First web page </title>
</head>

<body>
Hello!
</body>


</html>


Head tag: The tag is used to cover the entire head element in the html file. Title, style, meta etc tag can remain on it.
Example:-
<head>Part of elements describing of document</head>

Body tag: 
The <body> element contains the full content of a webpage. It is used to explain the body of html document. It contains lists, image, tables etc.
Example:-
<body>Covers the content of your HTML page</body>

Title tag: <title> is a required HTML element used to assign a title to an HTML document. 
Example:-
<tittle> Represents tab name</tittle>




Paragraph tag: 
<p> element is used to classify blocks of paragraph text. In other word, it is used to represents a paragraph text.
Example:-
<p>Computer Training Center</p>

Center tag: This tag can align a text in center.
Example:-
<center>I am in center</center>

Heading tag: <h1>, <h2>, <h3>, <h4>, <h5>, and <h6> elements are used to build headings in descending order of significance where <h1> is the most significant and <h6> the least. <h1> is largest heading and <h6> is smallest heading.
Example:-

<h1>Largest heading</h1>
<h2>2nd largest heading </h2>
<h3>3rd largest heading </h3>
<h4>4th largest heading </h4>
<h5>5th largest heading </h5>
<h6>6th largest heading </h6>


Bold tag: It is used to bold text of content in html document.
Example:-
<b>This is bold </b>

Italic tag: It is used to write text in italic format.
Example:-
<i>This is italic</i>

Underline tag: This tag is used to set the content underline.
Example:-
<u>Underlined text</u>



List tag: 
<li> element describes a list item that is part of an ordered and unordered list.
Example:-
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>

Ordered List tag: This tag is used to list the content in a specific order.
Example:-
<ol>
       <li>Item 1</li>
       <li>Item 2</li>
       <li>Item 3</li>
</ol>

Unordered List tag: This tag is used to list the content without order.
Example:-
<ul>
       <li>List item 1</li>
       <li>List item 2</li>
       <li>List item 3</li>
       <li>List item 4</li>
</ul>

Anchor tag:  Anchor element or <a> element used to build a hyperlink to another webpage or another location within the same webpage. The hyperlink applied on the text, image, or other HTML content which are nested between the opening and closing <a> tags.
Example:-
<a href="https://www.webdesignq.blogspot.com/">
Responsive Web Design</a>


Comment tag: Comment tag is used to set comment in html document. It is invisible on the web browser.
Example:-
<!--..........-->

If we replace dots (..........) with any text then It will not visible on browser.

Line break tag: <br> element is used to set a line break within a parent element like a paragraph without breaking out of the parent container.
Example:-
Computer Training Center <br>Great way to learn



Font tag: The tag defines font size, font face and font color for its text.
Example:-
<font face="Arial">This is by using font tag</font>

Tables Tags: This tags used to build a table in html document.
Example:-
<table>
  <tr>
     <td>1st Column</td>
     <td>2nd Column</td>
  </tr>
</table>

Tr tag and Th tag: The tag is used to define row of table in html.
Example:-
­ <table>
  <tr>
       <th>Month</th>
       <th>Earning</th>
  </tr>
  <tr>
       <td>May</td>
       <td>$3000</td>
  </tr>
</table>

Td tag: It defines the standard data cell in html table.
Example:-
<table>
<tr>
       <td>1st Cell</td>
       <td>2nd Cell</td>
</tr>
</table>

Meta tag: This tag is used to provide structured metadata about a web page. For example: authors, last modifier etc.
Example:-
<meta name="Description"
       content="Write description for your site">

<meta name="keywords"
       content="keywords describing your site">


Image tag: The tag is used to insert image into a web document.
Example:-
<img src="a.jpg" width="20"
height="20"/>

Form tag and Input tag: The tag is used to create html form.
Example:-
<form action="mailto:you@yourdomain.com ">
Name: <input name="Name" value="" size="90"><br>
Email: <input name="Email" value="" size="90"><br>
<br><input type="submit">
</form>


 Option tag:
The <option> element is used in combination with the <select> element to build a drop-down menu in a web form.
Example:-
<form method=post action="/abcbin/1.abc"> 
Select an option:<select>
<option>A</option>
<option>B</option>
</form>



Post a Comment

2 Comments

Emoji
(y)
:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
x-)
(k)