What are tags in HTML?
Tags are the command which tell the browser to do a specific task.
Tags always have open starting point and closing point which start < > and close with </ >
Here list of tags that uses in webpage
<html>
</html>
the <html> tag always uses as parent tags of html page.
in every page of HTML there are two section, 1. Head section and 2. Body section
information about webpage and title used in Head Section.
content , information and other tags used in Body Section.
Example :
<html>
<head>
<title> My Test Title </title>
</head>
<body>
<!-- Comment tag start with exclamation mark that browser not read comments -->
<!-- Head Tag -->
<h1> My Test Website </h1>
<!-- Break line Tag -->
<br />
<!-- Table Tag -->
<table>
<tr>
<td>
Column 1
</td>
<td>
Column 2
</td>
</tr>
<tr>
<td>
content 1
</td>
<td>
content 2
</td>
</tr>
</table>
<br />
<!-- ordered List Example -->
<ol>
<li>
List
</li>
<li>
List
</li>
<li>
List
</li>
</ol>
<br />
<!-- Link Example for connecting to other pages and other website -->
<a href="www.fawadtech.blogspot.com" target="_blank" > fawadtech.blogspot.com </a>
</body>
</html>
And The result will look like below:
Tags are the command which tell the browser to do a specific task.
Tags always have open starting point and closing point which start < > and close with </ >
Here list of tags that uses in webpage
<html>
</html>
the <html> tag always uses as parent tags of html page.
in every page of HTML there are two section, 1. Head section and 2. Body section
information about webpage and title used in Head Section.
content , information and other tags used in Body Section.
Example :
<html>
<head>
<title> My Test Title </title>
</head>
<body>
<!-- Comment tag start with exclamation mark that browser not read comments -->
<!-- Head Tag -->
<h1> My Test Website </h1>
<!-- Break line Tag -->
<br />
<!-- Table Tag -->
<table>
<tr>
<td>
Column 1
</td>
<td>
Column 2
</td>
</tr>
<tr>
<td>
content 1
</td>
<td>
content 2
</td>
</tr>
</table>
<br />
<!-- ordered List Example -->
<ol>
<li>
List
</li>
<li>
List
</li>
<li>
List
</li>
</ol>
<br />
<!-- Link Example for connecting to other pages and other website -->
<a href="www.fawadtech.blogspot.com" target="_blank" > fawadtech.blogspot.com </a>
</body>
</html>
And The result will look like below:
No comments:
Post a Comment