HTML Tags


December 29, 2021, Learn eTutorial
1417

In this HTML tutorial, you will learn all about the Tags in HTML. We will also discuss the most commonly used tags in HTML.

What are the HTML Tags?

HTML tags are similar to keywords in that they dictate how a web browser will structure and display text. A web browser can tell the difference between HTML content and plain text by using tags. HTML tags are divided into three sections: the opening tag, the content of tag, and the closing tag. However, certain HTML tags are unclosed. When a web browser scans an HTML page, it starts from the top to the bottom and from left to right. HTML tags are used to build HTML documents and display their features. Each HTML tag has a unique set of attributes. An HTML file must have several key tags in order for a web browser to distinguish between plain text and HTML text. You can use as many tags as you need to meet the requirements of your web page. 

  • All HTML tags must be contained by the "<" and ">" brackets.
  • All tags in HTML are used to perform a particular function.
  • If you used an open tag, you must also use a close the tag (except for some tags)

What all are the Unclosed HTML Tags?

The unclosed tags are those tags that don't have any closing or ending tag.

The most commonly used unclosed tags are:

  • Tag: “br” is an abbreviation for Break Line, which means that it breaks the line of code.
  • Tag: “hr” is an abbreviation for Horizontal Rule. This tag is used to draw a line across the page.

What are all the HTML Meta Tags?

Meta tags are pieces of information that you employ to notify search engines and visitors to your site about your page and the information it includes. The most commonly used meta tags are DOCTYPE, title, link, meta, and style.

What all are the HTML Text Tags?

Use HTML text content elements to arrange content blocks or sections inserted between the opening <body> and closing </body> tags. These features, which are important for accessibility and SEO, define the purpose or organisation of the material. The most commonly used text tags are <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>, <acronym>, <address>, <bdo>, <blockquote>, <cite>, <q>, <code>, <ins>, <del>, <dfn>, <kbd>, <pre>, <samp>, <var> and <br>.

What all are the HTML Link Tags?

The HTML link tags are used to connect the web pages externally. The most commonly used link tags are <a> and <base>.

What all are the HTML Image and Object Tags?

The HTML image and object tags are used to include the images and other objects in the web page <img>, <area>, <map>, <param> and <object>.

What are all the HTML List Tags?

The HTML list tags are used to add the list items in the web page. The most commonly used list tags are <ul>, <ol>, <li>, <dl>, <dt> and <dd>.

What are all the HTML Table Tags?

The HTML list tags are used to add table to the web page. The most commonly used table tags are <table>, <tr>, <td>, <th>, <tbody>, <thead>, <tfoot>, <col>, <colgroup> and <caption>

What all are the HTML Form Tags?

The HTML form tags are used to add the form in the web pages. The most commonly used form tags are <form>, <input>, <textarea>, <select>, <option>, <optgroup>, <button>, <label>, <fieldset> and <legend>