Page Contents
HTML Tutorial
HTML tutorial or HTML 5 tutorial provides basic and advanced concepts of HTML. Our HTML tutorial is developed for beginners and professionals. In our tutorial, every topic is given step-by-step so that you can learn it in a very easy way. If you are new in learning HTML, then you can learn HTML from basic to a professional level and after learning HTML with CSS and JavaScript you will be able to create your own interactive and dynamic website. But Now We will focus on HTML only in this tutorial.
The major points of HTML are given below:
- HTML stands for HyperText Markup Language.
- HTML is used to create web pages and web applications.
- HTML is widely used language on the web.
- We can create a static website by HTML only.
- Technically, HTML is a Markup language rather than a programming language.
HTML Example with HTML Editor
In this tutorial, you will get a lot of HTML examples, at least one example for each topic with explanation. You can also edit and run these examples, with our online HTML editor. Learning HTML is fun, and it’s very easy to learn.
Example
- >
- <html>
- <head>
- <title>Web page titletitle>
- head>
- <body>
- <h1>Write Your First Headingh1>
- <p>Write Your First Paragraph.p>
- body>
- html>
Description of HTML Example
: It defines the document type or it instruct the browser about the version of HTML.
:This tag informs the browser that it is an HTML document. Text between html tag describes the web document. It is a container for all other elements of HTML except
: It should be the first element inside the element, which contains the metadata(information about the document). It must be closed before the body tag opens.
: Text between body tag describes the body content of the page that is visible to the end user. This tag contains the main content of the HTML document.
: Text between
tag describes the first level heading of the webpage.
tag describes the paragraph of the webpage.
Brief History of HTML
In the late 1980’s , a physicist, Tim Berners-Lee who was a contractor at CERN, proposed a system for CERN researchers. In 1989, he wrote a memo proposing an internet based hypertext system.
Tim Berners-Lee is known as the father of HTML. The first available description of HTML was a document called “HTML Tags” proposed by Tim in late 1991. The latest version of HTML is HTML5, which we will learn later in this tutorial.
HTML Versions
Since the time HTML was invented there are lots of HTML versions in market, the brief introduction about the HTML version is given below:
HTML 1.0: The first version of HTML was 1.0, which was the barebones version of HTML language, and it was released in1991.
HTML 2.0: This was the next version which was released in 1995, and it was standard language version for website design. HTML 2.0 was able to support extra features such as form-based file upload, form elements such as text box, option button, etc.
HTML 3.2: HTML 3.2 version was published by W3C in early 1997. This version was capable of creating tables and providing support for extra options for form elements. It can also support a web page with complex mathematical equations. It became an official standard for any browser till January 1997. Today it is practically supported by most of the browsers.
HTML 4.01: HTML 4.01 version was released on December 1999, and it is a very stable version of HTML language. This version is the current official standard, and it provides added support for stylesheets (CSS) and scripting ability for various multimedia elements.
HTML5 : HTML5 is the newest version of HyperText Markup language. The first draft of this version was announced in January 2008. There are two major organizations one is W3C (World Wide Web Consortium), and another one is WHATWG( Web Hypertext Application Technology Working Group) which are involved in the development of HTML 5 version, and still, it is under development.
Features of HTML
1) It is a very easy and simple language. It can be easily understood and modified.
2) It is very easy to make an effective presentation with HTML because it has a lot of formatting tags.
3) It is a markup language, so it provides a flexible way to design web pages along with the text.
4) It facilitates programmers to add a link on the web pages (by html anchor tag), so it enhances the interest of browsing of the user.
5) It is platform-independent because it can be displayed on any platform like Windows, Linux, and Macintosh, etc.
6) It facilitates the programmer to add Graphics, Videos, and Sound to the web pages which makes it more attractive and interactive.
7) HTML is a case-insensitive language, which means we can use tags either in lower-case or upper-case.
NOTE: It is recommended to write all tags in lower-case for consistency, readability, etc.
HTML text Editors
- An HTML file is a text file, so to create an HTML file we can use any text editors.
- Text editors are the programs which allow editing in a written text, hence to create a web page we need to write our code in some text editor.
- There are various types of text editors available which you can directly download, but for a beginner, the best text editor is Notepad (Windows) or TextEdit (Mac).
- After learning the basics, you can easily use other professional text editors which are, Notepad++, Sublime Text, Vim, etc.
- In our tutorial, we will use Notepad and sublime text editor. Following are some easy ways to create your first web page with Notepad, and sublime text.
A. HTML code with Notepad. (Recommended for Beginners)
Notepad is a simple text editor and suitable for beginners to learn HTML. It is available in all versions of Windows, from where you easily access it.
Step 1: Open Notepad (Windows)

Step 2: Write code in HTML

Step 3: Save the HTML file with .htm or .html extension.

Step 4: Open the HTML page in your web browser.
To run the HTML page, you need to open the file location, where you have saved the file and then either double-click on file or click on open with option


B. HTML code with Sublime Text-editor.(Recommended after learning basics of HTML)
When you will learn the basics of HTML, then you can use some professional text editors, which will help you to write an efficient and fast code. So to use Sublime Text editors, first it needs to download and install from internet. You can easily download it from this https://www.sublimetext.com/download link and can install in your PC. When installation of Sublime text editor done then you can follow the simple steps to use it:
Step 1: Open Sublime Text editor(Windows 8):
To open Sublime Text editor go to Start screen ⤏ type Sublime Text⤏ Open it. To open a new page press CTRL+N.

Step 2: Save the page before writing any code.
To save your page in Sublime Text press Ctrl+S or go to File option ⤏ save, to save a file use extension .htm or .html. We recommend to save the file first then write the code because after saving the page sublime text editor will give you suggestions to write code.

Step 3: Write the code in Sublime Text editor

Step 4: Open the HTML page in your Browser
To execute or open this page in Web browser just right click by mouse on sublime text page and click on Open in Browser.


Note: You can execute HTML file in any browser, but there are some tags which are not supported by Some Web browser.
Building blocks of HTML
An HTML document consist of its basic building blocks which are:
- Tags: An HTML tag surrounds the content and apply meaning to it. It is written between < and > brackets.
- Attribute: An attribute in HTML provides extra information about the element, and it is applied within the start tag. An HTML attribute contains two fields: name & value.
Syntax
- <tag name attribute_name= ” attr_value”> content tag name>
- Elements: An HTML element is an individual component of an HTML file. In an HTML file, everything written within tags are termed as HTML elements.

Example
- >
- <html>
- <head>
- <title>The basic building blocks of HTMLtitle>
- head>
- <body>
- <h2>The building blocksh2>
- <p>This is a paragraph tagp>
- <p style=“color: red”>The style is attribute of paragraph tagp>
- <span>The element contains tag, attribute and contentspan>
- body>
- html>
HTML Tags
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: opening tag, content and closing tag. But some HTML tags are unclosed tags.
When a web browser reads an HTML document, browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.
An HTML file must have some essential tags so that web browser can differentiate between a simple text and HTML text. You can use as many tags you want as per your code requirement.
- All HTML tags must enclosed within < > these brackets.
- Every tag in HTML perform different tasks.
- If you have used an open tag
, then you must use a close tag (except some tags)
Syntax
HTML Tag Examples
Note: HTML Tags are always written in lowercase letters. The basic HTML tags are given below:
Paragraph Tag
Heading Tag
Bold Tag
Italic Tag
Underline Tag
Unclosed HTML Tags
Some HTML tags are not closed, for example br and hr.
Tag: br stands for break line, it breaks the line of the code.
Tag: hr stands for Horizontal Rule. This tag is used to put a line across the webpage.
HTML Meta Tags
DOCTYPE, title, link, meta and style
HTML Text Tags
,
, , , , , , , , , , , , , , , , , , , , , , and
HTML Link Tags
HTML Image and Object Tags
, ,
HTML List Tags
, , - ,
, - and
HTML Table Tags
table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption
HTML Form Tags
form, input, textarea, select, option, optgroup, button, label, fieldset and legend
HTML Scripting Tags
script and noscript
Note: We will see examples using these tags in later charters.
All HTML Tags
Let’s discuss the complete tag list that is present in the HTML that is represented below.
1. Comments:
With the help of this tag, we can add comments in the HTML. After commenting on the elements, the browser does not render it. Also, these comments parts are not displayed on the web page. But these commented codes are available in the source code.
Syntax:
- <strong>strong>
2. Doctype:
With the help of this tag, we can declare the version of the markup language to the web browser.
Syntax:
- < !DOCTYPE html >
3. :
With the help of this tag, we can create a hyperlink to the web page. The hyperlink can be done with the help of another file in a different location.
Syntax:
- <a href=“url”>Link Texta>
4. :
With the help of this tag, we can define the abbreviations or acronyms of longer words, such as www, HTML, HTTP, etc.
Syntax:
- <abbr title=“expanded-text”>abbreviationabbr>
5. <address>:
With the help of this tag, we can find the address or the contact details of the web page’s author. The
tag contains addresses, cellphone numbers, emails, website connections, etc.Syntax:
- <address>
- Contact Information Goes Here
- address>
6. :
With the help of this tag, we can identify the clickable area associated with the hyperlink.
Syntax:
- <area shape=“shape-type” coords=“coordinates” href=“destination-url” alt=“alternative-text”>
7. :
With the help of this tag, we can represent a piece of content that is used to be distributed to other websites without being a part of this. With the help of tag, we can display entire blog posts, news articles, or similar content, etc.
Syntax:
- <article>
-
- article>
8.
With the help of this tag, we can embed the audio file into the webpage. To do this, there is no need for additional plug-ins like Flash.
Syntax:
- <audio src=“audio-file.mp3” controls>
- Your browser does not support the audio element.
- audio>
9.
With the help of this tag, we can define the content related to the web page’s main content, but they are not constituted to the web page.
Syntax:
- <aside>
-
- aside>
10. :
With the help of this tag, we can make the text bold without any additional significance.
Syntax:
- <b>Text to be displayed in boldb>
11. :
With the help of this tag, we can create the target address, which is targeted by all the URLs present in the document.
Syntax:
- <base href=“base-url” target=“base-target”>
12. :
With the help of this tag, we can tell the browser to isolate the text that comes from other destinations with the help of a bidirectional algorithm.
Syntax:
- <bdi>Text with different directionalitybdi>
13. :
With the help of this tag, we can override the current text.
Syntax:
- <bdo dir=“direction”>Text with overridden directionalitybdo>
14. :
With the help of this tag, we can provide a way to insert the quotation in the document from another source. By default, the browser takes the text inside a quote tag as indented.
Syntax:
- <blockquote>
- Quoted content goes here.
- blockquote>
15. :
With the help of this tag, we can define the web page’s main content. The body tag includes text, paragraphs, headings, images, tables, links, and videos.
Syntax:
- <body>
-
- body>
- <strong> strong>
16.
:
With the help of this tag, we can produce a line break on the web page. We can use this tag basically during the writing of poems or addresses that require line breaks.
Syntax:
- <br>
- <strong> strong>
17.
With the help of this tag, we can create a clickable button on the web page. We can use the button tag in forms or anywhere in a document.
Syntax:
- <button>Button Textbutton>
- <strong> strong>
18.
With the help of this tag, we can define a particular region used for drawing graphics through scripting (usually JavaScript).
Syntax:
- <canvas id=“canvas-id” width=“width” height=“height”>canvas>
19. :
With the help of this tag, we can create the table caption, which is used to create the title for the table.
Syntax:
- <table>
- <caption>Caption Textcaption>
-
- table>
20. :
With the help of this tag, we can do some creative work and give a title for that creative work.
Syntax:
- <cite>Referenced Contentcite>
21. :
With the help of this tag, we can insert a particular code fragment, which might be HTML or CSS code.
Syntax:
- <code>Code goes herecode>
22. :
With the help of this tag, we can specify all the column’s properties. We can specify it inside the
element.Syntax:
- <col>
23. :
With the help of this tag, we can specify one or more columns in a group. With the help of this, we can apply the style to the entire column without repeating the style for every column and every row.
Syntax:
- <colgroup>
-
- colgroup>
24. :
With the help of this tag, we can add machine-readable translation. The processor generates it, and the browser can generate the human-readable value.
Syntax:
- <data value=“data-value”>Data Labeldata>
25.
With the help of this tag, we can provide an auto-complete feature to the form element. With the help of this, the user can select the option from the option list.
Syntax:
- <input list=“datalist-id”>
- <datalist id=“datalist-id”>
-
- datalist>
26. - :
With the help of this tag, we can define the definition description in the HTML. It is also used to describe an item in the list of descriptions.
Syntax:
- <dl>
- <dt>Termdt>
- <dd>Description or definition goes heredd>
- dl>
27. :
With the help of this tag, we can declare the particular section that will be deleted from the document. After doing this, the web browser strike over that particular section in the webpage.
Syntax:
- <del>Deleted Textdel>
28. :
With the help of this tag, we can create a toggle. This toggle contains all the information but is in a closed state. When we mouse hover over it, it comes to an open state and displays all the hidden information.
Syntax:
- <details>
- <summary>Summary Textsummary>
-
- details>
29. :
With the help of this tag, we can represent the definition element. With the help of the definition element, we can define the instances of the definition. When a term first appears in the document, it is known as the instances of the definition.
Syntax:
- <dfn>Term Definitiondfn>
30.
With the help of this tag, we can define a dialogue box and the other webpage components. With the help of this component, the webpage can interact with the user beautifully.
Syntax:
- <dialog open>
-
- dialog>
31. :With the help of this tag, we can create a generic container that can hold the flow of the content. It also does not have the default rendering.
Syntax:
- <div>
-
- div>
32. :
With the help of this tag, we can define the list of items on the web page. We can also represent the metadata with the help of this tag.
Syntax:
- <dl>
- <dt>Term 1dt>
- <dd>Definition 1dd>
- <dt>Term 2dt>
- <dd>Definition 2dd>
-
- dl>
33. - :
With the help of this tag, we can define the definition list on the web page. we have to write the
- tag within the
tag. We can also flow this element with the help of - tag.
Syntax:
- <dl>
- <dt>Termdt>
-
- dl>
34. :
With the help of this tag, we can emphasize a particular word or phrase within a sentence. It converts the normal word or sentence into italic and semantic styles.
Syntax:
- <em>Emphasized Textem>
35.
With the help of this tag, we can embed external things such as audio or video into the webpage.
Syntax:
- <embed src=“content-url”>
36.
, , , , , , , , , , , , , , , , , , , , and
HTML Link Tags
HTML Image and Object Tags
, ,
HTML List Tags
, , - ,
, - and
HTML Table Tags
table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption
HTML Form Tags
form, input, textarea, select, option, optgroup, button, label, fieldset and legend
HTML Scripting Tags
script and noscript
Note: We will see examples using these tags in later charters.
All HTML Tags
Let’s discuss the complete tag list that is present in the HTML that is represented below.
1. Comments:
With the help of this tag, we can add comments in the HTML. After commenting on the elements, the browser does not render it. Also, these comments parts are not displayed on the web page. But these commented codes are available in the source code.
Syntax:
- <strong>strong>
2. Doctype:
With the help of this tag, we can declare the version of the markup language to the web browser.
Syntax:
- < !DOCTYPE html >
3. :
With the help of this tag, we can create a hyperlink to the web page. The hyperlink can be done with the help of another file in a different location.
Syntax:
- <a href=“url”>Link Texta>
4. :
With the help of this tag, we can define the abbreviations or acronyms of longer words, such as www, HTML, HTTP, etc.
Syntax:
- <abbr title=“expanded-text”>abbreviationabbr>
5. <address>:
With the help of this tag, we can find the address or the contact details of the web page’s author. The
tag contains addresses, cellphone numbers, emails, website connections, etc.Syntax:
- <address>
- Contact Information Goes Here
- address>
6. :
With the help of this tag, we can identify the clickable area associated with the hyperlink.
Syntax:
- <area shape=“shape-type” coords=“coordinates” href=“destination-url” alt=“alternative-text”>
7. :
With the help of this tag, we can represent a piece of content that is used to be distributed to other websites without being a part of this. With the help of tag, we can display entire blog posts, news articles, or similar content, etc.
Syntax:
- <article>
-
- article>
8.
With the help of this tag, we can embed the audio file into the webpage. To do this, there is no need for additional plug-ins like Flash.
Syntax:
- <audio src=“audio-file.mp3” controls>
- Your browser does not support the audio element.
- audio>
9.
With the help of this tag, we can define the content related to the web page’s main content, but they are not constituted to the web page.
Syntax:
- <aside>
-
- aside>
10. :
With the help of this tag, we can make the text bold without any additional significance.
Syntax:
- <b>Text to be displayed in boldb>
11. :
With the help of this tag, we can create the target address, which is targeted by all the URLs present in the document.
Syntax:
- <base href=“base-url” target=“base-target”>
12. :
With the help of this tag, we can tell the browser to isolate the text that comes from other destinations with the help of a bidirectional algorithm.
Syntax:
- <bdi>Text with different directionalitybdi>
13. :
With the help of this tag, we can override the current text.
Syntax:
- <bdo dir=“direction”>Text with overridden directionalitybdo>
14. :
With the help of this tag, we can provide a way to insert the quotation in the document from another source. By default, the browser takes the text inside a quote tag as indented.
Syntax:
- <blockquote>
- Quoted content goes here.
- blockquote>
15. :
With the help of this tag, we can define the web page’s main content. The body tag includes text, paragraphs, headings, images, tables, links, and videos.
Syntax:
- <body>
-
- body>
- <strong> strong>
16.
:
With the help of this tag, we can produce a line break on the web page. We can use this tag basically during the writing of poems or addresses that require line breaks.
Syntax:
- <br>
- <strong> strong>
17.
With the help of this tag, we can create a clickable button on the web page. We can use the button tag in forms or anywhere in a document.
Syntax:
- <button>Button Textbutton>
- <strong> strong>
18.
With the help of this tag, we can define a particular region used for drawing graphics through scripting (usually JavaScript).
Syntax:
- <canvas id=“canvas-id” width=“width” height=“height”>canvas>
19. :
With the help of this tag, we can create the table caption, which is used to create the title for the table.
Syntax:
- <table>
- <caption>Caption Textcaption>
-
- table>
20. :
With the help of this tag, we can do some creative work and give a title for that creative work.
Syntax:
- <cite>Referenced Contentcite>
21. :
With the help of this tag, we can insert a particular code fragment, which might be HTML or CSS code.
Syntax:
- <code>Code goes herecode>
22. :
With the help of this tag, we can specify all the column’s properties. We can specify it inside the
element.Syntax:
- <col>
23. :
With the help of this tag, we can specify one or more columns in a group. With the help of this, we can apply the style to the entire column without repeating the style for every column and every row.
Syntax:
- <colgroup>
-
- colgroup>
24. :
With the help of this tag, we can add machine-readable translation. The processor generates it, and the browser can generate the human-readable value.
Syntax:
- <data value=“data-value”>Data Labeldata>
25.
With the help of this tag, we can provide an auto-complete feature to the form element. With the help of this, the user can select the option from the option list.
Syntax:
- <input list=“datalist-id”>
- <datalist id=“datalist-id”>
-
- datalist>
26. - :
With the help of this tag, we can define the definition description in the HTML. It is also used to describe an item in the list of descriptions.
Syntax:
- <dl>
- <dt>Termdt>
- <dd>Description or definition goes heredd>
- dl>
27. :
With the help of this tag, we can declare the particular section that will be deleted from the document. After doing this, the web browser strike over that particular section in the webpage.
Syntax:
- <del>Deleted Textdel>
28. :
With the help of this tag, we can create a toggle. This toggle contains all the information but is in a closed state. When we mouse hover over it, it comes to an open state and displays all the hidden information.
Syntax:
- <details>
- <summary>Summary Textsummary>
-
- details>
29. :
With the help of this tag, we can represent the definition element. With the help of the definition element, we can define the instances of the definition. When a term first appears in the document, it is known as the instances of the definition.
Syntax:
- <dfn>Term Definitiondfn>
30.
With the help of this tag, we can define a dialogue box and the other webpage components. With the help of this component, the webpage can interact with the user beautifully.
Syntax:
- <dialog open>
-
- dialog>
31. :With the help of this tag, we can create a generic container that can hold the flow of the content. It also does not have the default rendering.
Syntax:
- <div>
-
- div>
32. :
With the help of this tag, we can define the list of items on the web page. We can also represent the metadata with the help of this tag.
Syntax:
- <dl>
- <dt>Term 1dt>
- <dd>Definition 1dd>
- <dt>Term 2dt>
- <dd>Definition 2dd>
-
- dl>
33. - :
With the help of this tag, we can define the definition list on the web page. we have to write the
- tag within the
tag. We can also flow this element with the help of - tag.
Syntax:
- <dl>
- <dt>Termdt>
-
- dl>
34. :
With the help of this tag, we can emphasize a particular word or phrase within a sentence. It converts the normal word or sentence into italic and semantic styles.
Syntax:
- <em>Emphasized Textem>
35.
With the help of this tag, we can embed external things such as audio or video into the webpage.
Syntax:
- <embed src=“content-url”>
36.
, , , , , , , , , , , , , , , , , , and
HTML Link Tags
HTML Image and Object Tags
, ,
HTML List Tags
, , - ,
, - and
HTML Table Tags
table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption
HTML Form Tags
form, input, textarea, select, option, optgroup, button, label, fieldset and legend
HTML Scripting Tags
script and noscript
Note: We will see examples using these tags in later charters.
All HTML Tags
Let’s discuss the complete tag list that is present in the HTML that is represented below.
1. Comments:
With the help of this tag, we can add comments in the HTML. After commenting on the elements, the browser does not render it. Also, these comments parts are not displayed on the web page. But these commented codes are available in the source code.
Syntax:
- <strong>strong>
2. Doctype:
With the help of this tag, we can declare the version of the markup language to the web browser.
Syntax:
- < !DOCTYPE html >
3. :
With the help of this tag, we can create a hyperlink to the web page. The hyperlink can be done with the help of another file in a different location.
Syntax:
- <a href=“url”>Link Texta>
4. :
With the help of this tag, we can define the abbreviations or acronyms of longer words, such as www, HTML, HTTP, etc.
Syntax:
- <abbr title=“expanded-text”>abbreviationabbr>
5. <address>:
With the help of this tag, we can find the address or the contact details of the web page’s author. The
tag contains addresses, cellphone numbers, emails, website connections, etc.Syntax:
- <address>
- Contact Information Goes Here
- address>
6. :
With the help of this tag, we can identify the clickable area associated with the hyperlink.
Syntax:
- <area shape=“shape-type” coords=“coordinates” href=“destination-url” alt=“alternative-text”>
7. :
With the help of this tag, we can represent a piece of content that is used to be distributed to other websites without being a part of this. With the help of tag, we can display entire blog posts, news articles, or similar content, etc.
Syntax:
- <article>
-
- article>
8.
With the help of this tag, we can embed the audio file into the webpage. To do this, there is no need for additional plug-ins like Flash.
Syntax:
- <audio src=“audio-file.mp3” controls>
- Your browser does not support the audio element.
- audio>
9.
With the help of this tag, we can define the content related to the web page’s main content, but they are not constituted to the web page.
Syntax:
- <aside>
-
- aside>
10. :
With the help of this tag, we can make the text bold without any additional significance.
Syntax:
- <b>Text to be displayed in boldb>
11. :
With the help of this tag, we can create the target address, which is targeted by all the URLs present in the document.
Syntax:
- <base href=“base-url” target=“base-target”>
12. :
With the help of this tag, we can tell the browser to isolate the text that comes from other destinations with the help of a bidirectional algorithm.
Syntax:
- <bdi>Text with different directionalitybdi>
13. :
With the help of this tag, we can override the current text.
Syntax:
- <bdo dir=“direction”>Text with overridden directionalitybdo>
14. :
With the help of this tag, we can provide a way to insert the quotation in the document from another source. By default, the browser takes the text inside a quote tag as indented.
Syntax:
- <blockquote>
- Quoted content goes here.
- blockquote>
15. :
With the help of this tag, we can define the web page’s main content. The body tag includes text, paragraphs, headings, images, tables, links, and videos.
Syntax:
- <body>
-
- body>
- <strong> strong>
16.
:
With the help of this tag, we can produce a line break on the web page. We can use this tag basically during the writing of poems or addresses that require line breaks.
Syntax:
- <br>
- <strong> strong>
17.
With the help of this tag, we can create a clickable button on the web page. We can use the button tag in forms or anywhere in a document.
Syntax:
- <button>Button Textbutton>
- <strong> strong>
18.
With the help of this tag, we can define a particular region used for drawing graphics through scripting (usually JavaScript).
Syntax:
- <canvas id=“canvas-id” width=“width” height=“height”>canvas>
19. :
With the help of this tag, we can create the table caption, which is used to create the title for the table.
Syntax:
- <table>
- <caption>Caption Textcaption>
-
- table>
20. :
With the help of this tag, we can do some creative work and give a title for that creative work.
Syntax:
- <cite>Referenced Contentcite>
21. :
With the help of this tag, we can insert a particular code fragment, which might be HTML or CSS code.
Syntax:
- <code>Code goes herecode>
22. :
With the help of this tag, we can specify all the column’s properties. We can specify it inside the
element.Syntax:
- <col>
23. :
With the help of this tag, we can specify one or more columns in a group. With the help of this, we can apply the style to the entire column without repeating the style for every column and every row.
Syntax:
- <colgroup>
-
- colgroup>
24. :
With the help of this tag, we can add machine-readable translation. The processor generates it, and the browser can generate the human-readable value.
Syntax:
- <data value=“data-value”>Data Labeldata>
25.
With the help of this tag, we can provide an auto-complete feature to the form element. With the help of this, the user can select the option from the option list.
Syntax:
- <input list=“datalist-id”>
- <datalist id=“datalist-id”>
-
- datalist>
26. - :
With the help of this tag, we can define the definition description in the HTML. It is also used to describe an item in the list of descriptions.
Syntax:
- <dl>
- <dt>Termdt>
- <dd>Description or definition goes heredd>
- dl>
27. :
With the help of this tag, we can declare the particular section that will be deleted from the document. After doing this, the web browser strike over that particular section in the webpage.
Syntax:
- <del>Deleted Textdel>
28. :
With the help of this tag, we can create a toggle. This toggle contains all the information but is in a closed state. When we mouse hover over it, it comes to an open state and displays all the hidden information.
Syntax:
- <details>
- <summary>Summary Textsummary>
-
- details>
29. :
With the help of this tag, we can represent the definition element. With the help of the definition element, we can define the instances of the definition. When a term first appears in the document, it is known as the instances of the definition.
Syntax:
- <dfn>Term Definitiondfn>
30.
With the help of this tag, we can define a dialogue box and the other webpage components. With the help of this component, the webpage can interact with the user beautifully.
Syntax:
- <dialog open>
-
- dialog>
31. :With the help of this tag, we can create a generic container that can hold the flow of the content. It also does not have the default rendering.
Syntax:
- <div>
-
- div>
32. :
With the help of this tag, we can define the list of items on the web page. We can also represent the metadata with the help of this tag.
Syntax:
- <dl>
- <dt>Term 1dt>
- <dd>Definition 1dd>
- <dt>Term 2dt>
- <dd>Definition 2dd>
-
- dl>
33. - :
With the help of this tag, we can define the definition list on the web page. we have to write the
- tag within the
tag. We can also flow this element with the help of - tag.
Syntax:
- <dl>
- <dt>Termdt>
-
- dl>
34. :
With the help of this tag, we can emphasize a particular word or phrase within a sentence. It converts the normal word or sentence into italic and semantic styles.
Syntax:
- <em>Emphasized Textem>
35.
With the help of this tag, we can embed external things such as audio or video into the webpage.
Syntax:
- <embed src=“content-url”>
36.
, ,,, ,, , ,, , andHTML Link Tags
HTML Image and Object Tags
, ,
HTML List Tags
,
,
- ,
,
- and
HTML Table Tags
table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption
HTML Form Tags
form, input, textarea, select, option, optgroup, button, label, fieldset and legend
HTML Scripting Tags
script and noscript
Note: We will see examples using these tags in later charters.
All HTML Tags
Let’s discuss the complete tag list that is present in the HTML that is represented below.
1. Comments:
With the help of this tag, we can add comments in the HTML. After commenting on the elements, the browser does not render it. Also, these comments parts are not displayed on the web page. But these commented codes are available in the source code.
Syntax:
- <strong>strong>
2. Doctype:
With the help of this tag, we can declare the version of the markup language to the web browser.
Syntax:
- < !DOCTYPE html >
3. :
With the help of this tag, we can create a hyperlink to the web page. The hyperlink can be done with the help of another file in a different location.
Syntax:
- <a href=“url”>Link Texta>
4. :
With the help of this tag, we can define the abbreviations or acronyms of longer words, such as www, HTML, HTTP, etc.
Syntax:
- <abbr title=“expanded-text”>abbreviationabbr>
5. <address>:
With the help of this tag, we can find the address or the contact details of the web page’s author. The
tag contains addresses, cellphone numbers, emails, website connections, etc.Syntax:
- <address>
- Contact Information Goes Here
- address>
6. :
With the help of this tag, we can identify the clickable area associated with the hyperlink.
Syntax:
- <area shape=“shape-type” coords=“coordinates” href=“destination-url” alt=“alternative-text”>
7.
: With the help of this tag, we can represent a piece of content that is used to be distributed to other websites without being a part of this. With the help of
tag, we can display entire blog posts, news articles, or similar content, etc. Syntax:
- <article>
- article>
8.
With the help of this tag, we can embed the audio file into the webpage. To do this, there is no need for additional plug-ins like Flash.
Syntax:
- <audio src=“audio-file.mp3” controls>
- Your browser does not support the audio element.
- audio>
9.
With the help of this tag, we can define the content related to the web page’s main content, but they are not constituted to the web page.
Syntax:
- <aside>
- aside>
10. :
With the help of this tag, we can make the text bold without any additional significance.
Syntax:
- <b>Text to be displayed in boldb>
11.
: With the help of this tag, we can create the target address, which is targeted by all the URLs present in the document.
Syntax:
- <base href=“base-url” target=“base-target”>
12. :
With the help of this tag, we can tell the browser to isolate the text that comes from other destinations with the help of a bidirectional algorithm.
Syntax:
- <bdi>Text with different directionalitybdi>
13. :
With the help of this tag, we can override the current text.
Syntax:
- <bdo dir=“direction”>Text with overridden directionalitybdo>
14.
:With the help of this tag, we can provide a way to insert the quotation in the document from another source. By default, the browser takes the text inside a quote tag as indented.
Syntax:
- <blockquote>
- Quoted content goes here.
- blockquote>
15. :
With the help of this tag, we can define the web page’s main content. The body tag includes text, paragraphs, headings, images, tables, links, and videos.
Syntax:
- <body>
- body>
- <strong> strong>
16.
:With the help of this tag, we can produce a line break on the web page. We can use this tag basically during the writing of poems or addresses that require line breaks.
Syntax:
- <br>
- <strong> strong>
17.
With the help of this tag, we can create a clickable button on the web page. We can use the button tag in forms or anywhere in a document.
Syntax:
- <button>Button Textbutton>
- <strong> strong>
18.
With the help of this tag, we can define a particular region used for drawing graphics through scripting (usually JavaScript).
Syntax:
- <canvas id=“canvas-id” width=“width” height=“height”>canvas>
19.
: With the help of this tag, we can create the table caption, which is used to create the title for the table.
Syntax:
- <table>
- <caption>Caption Textcaption>
- table>
20. :
With the help of this tag, we can do some creative work and give a title for that creative work.
Syntax:
- <cite>Referenced Contentcite>
21.
:With the help of this tag, we can insert a particular code fragment, which might be HTML or CSS code.
Syntax:
- <code>Code goes herecode>
22.
: With the help of this tag, we can specify all the column’s properties. We can specify it inside the
element. Syntax:
- <col>
23.
: With the help of this tag, we can specify one or more columns in a group. With the help of this, we can apply the style to the entire column without repeating the style for every column and every row.
Syntax:
- <colgroup>
- colgroup>
24. :
With the help of this tag, we can add machine-readable translation. The processor generates it, and the browser can generate the human-readable value.
Syntax:
- <data value=“data-value”>Data Labeldata>
25.
With the help of this tag, we can provide an auto-complete feature to the form element. With the help of this, the user can select the option from the option list.
Syntax:
- <input list=“datalist-id”>
- <datalist id=“datalist-id”>
- datalist>
26.
- :
With the help of this tag, we can define the definition description in the HTML. It is also used to describe an item in the list of descriptions.
Syntax:
- <dl>
- <dt>Termdt>
- <dd>Description or definition goes heredd>
- dl>
27.
:With the help of this tag, we can declare the particular section that will be deleted from the document. After doing this, the web browser strike over that particular section in the webpage.
Syntax:
- <del>Deleted Textdel>
28.
:With the help of this tag, we can create a toggle. This toggle contains all the information but is in a closed state. When we mouse hover over it, it comes to an open state and displays all the hidden information.
Syntax:
- <details>
- <summary>Summary Textsummary>
- details>
29. :
With the help of this tag, we can represent the definition element. With the help of the definition element, we can define the instances of the definition. When a term first appears in the document, it is known as the instances of the definition.
Syntax:
- <dfn>Term Definitiondfn>
30.
With the help of this tag, we can define a dialogue box and the other webpage components. With the help of this component, the webpage can interact with the user beautifully.
Syntax:
- <dialog open>
- dialog>
31.
:With the help of this tag, we can create a generic container that can hold the flow of the content. It also does not have the default rendering.
Syntax:
- <div>
- div>
32.
:
With the help of this tag, we can define the list of items on the web page. We can also represent the metadata with the help of this tag.
Syntax:
- <dl>
- <dt>Term 1dt>
- <dd>Definition 1dd>
- <dt>Term 2dt>
- <dd>Definition 2dd>
- dl>
33.
- :
With the help of this tag, we can define the definition list on the web page. we have to write the
- tag within the
tag. We can also flow this element with the help of
- tag.
Syntax:
- <dl>
- <dt>Termdt>
- dl>
34. :
With the help of this tag, we can emphasize a particular word or phrase within a sentence. It converts the normal word or sentence into italic and semantic styles.
Syntax:
- <em>Emphasized Textem>
35.
With the help of this tag, we can embed external things such as audio or video into the webpage.
Syntax:
- <embed src=“content-url”>
36.