Most Commonly Tags Used In HTML
As, we know that the skeleton part of any website is HTML (HyperText Markup Language).Without HTML we can not make any website.So, some of the tags which is very helpful to use in any website page.
Before,we going through <HTML>tag we have to know the definition of this.
Definition :-HTML tags are like keywords which defines 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. HTML tags contain three main parts: (i)opening tag, (ii) content and (iii)closing tag. But some HTML tags are unclosed tags. So,Tags usually open with <> and close with </>. The <html>
tag represents the root of an HTML document.
Syntax:-
<tag> content </tag>
Note: HTML Tags are always written in lowercase letters. The basic HTML tags are given below:
15 most commonly tags used in HTML are:-
- Anchor Link Tag :-
<a href="…">link</a>
- Image Tag :-
<img src="…" />
- Headings or Titles:- <h1>,<h2>,<h3>,<h4>,<h5>,<h6>
- Paragraph:-
<p>
Text here</p>
- Bold
<strong>
or<b>
and Italic<em>
or<i> and Underline Text <u>
<ol>
Ordered lists (it is for using number i.e:- 1,2,3.. or in roman no.) and<ul>
Unordered lists(it is for using different types of bullets).<li>
for Lists.- To style part of text :-
<span>
- It is a division or part of an HTML:-
<div>
- Blockquote :- <blockquote> and <cite>
- Line Break:-
<br />
- Horizontal Line :-
<hr />
- Main Html part:-
<body>
- Comments Tag :- 1) Single Line = <! — Text here — >(2)Multiple Line = /* Text here */
- Superscript Tag :- <sup> Text here </sup>like 36 ft2. ,and Subscript Tag :- <sub> Text Here </sub> like H2O.
- For Table :-
<table />.
The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.An HTML table may also include <caption>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.
Note: You should always include the “lang” attribute inside the <html>
tag, to declare the language of the Web page. This is meant to assist search engines and browsers.