What is HTML? | Different HTML Tags
The full form of HTML is Hyper Text Markup Language. It is a simple language that is used to create web pages. Every web page is connected with other pages using a link called a hyperlink.
It is firstly developed in 1990 by Tim Berners-Lee.
What is HTML?
In HTML, two terms need to be understood.
- Markup Language
The term hyperlink is used due to special text in the webpage called a hyperlink. Through these links, we can move from one page to another. Hyperlinks are used to navigate the World Wide Web.
A webpage consists of a series of elements that are represented by tags.
Different types of tags are used for different purposes. Every opening tag <p> has its closing tag, which is closed with a slash symbol </p>.
Different tags in HTML
There are different HTML tags, which are used for different purposes.
This tag is used to define the document type and HTML version. <! DOCTYPE html>
<html>: this tag is used to enclose the whole Html document. Mean all tags are used under this tag. It has also a closing tag at the end of the document </html>.
The HTML document primarily consists of two sections.
A Head section typically defines the document’s title, styles, and other information about the whole document. The Head section starts with <head> tag and ends with </head>. This tag is used for document header which can keep the other HTML tags like <link>, <title> etc.
The body section contains the actual contents of a webpage that are visible inside a webpage. This section starts with <body> and ends with </body>.
<title>: This tag is used to define the document title.
<!—…—>: This tag defines the comments.
Font Style tag
<b>: This tag is used to make the text bold.
<i>: This tag is used to make the text italic.
<i> Eduinut </i>
<u>: This tag is used to make the text underlined.
A paragraph tag is used for the paragraph.
A heading tag is used for different headings.
<h1>…</h1> This tag is used for most important heading. <h6>…</h6> This tag is used for least important heading.
Line break tag
<br> this tag is used for a single-line break
<ol> This tag is used for an ordered list.
<ul> This tag is used for an unordered list. It is used for different lists like a list with a sublist.
<li> This tag is used for a list item in a bulleted (ordered list)
<dl> this tag is used for definition lists. It is used when you need to show some terms and their description.
<IMG SRC=”image.gif”> this tag is used to add an image to the page.
Creating graphical hyperlinks:
<a> This tag is used to create the image hyperlink.
This tag is used for the table.
<TR>: This tag is used to start row
<TD>: This tag is used to enter data in the cell
</TD>: This tag is used to
</TR>: Puts an end to a row.
Block of the content container
<div> This tag is used for a block of content