HTML 5 Element

The HTML file is made up of elements. These elements are responsible for creating a web page and defining the content in that webpage.


  • HTML elements are the most basic building blocks of any web document. The elements are identified by the browser which provides the contents of the element to the users in a predefined manner.
  • HTML documents are created by HTML elements.
  • HTML elements begin with an open tag and end with a close tag and content is written between them:
HTML elements are the most basic building blocks of any web document. The elements are identified by the browser which provides the contents of the element to the users in a predefined manner.

  • All tags are predefined and control the structural properties of the webpage.
  • However, some HTML elements have presentational or cosmetic uses. HTML elements are increasingly used for presentation and design purposes.
  • Cascading style sheets (CSS) are used for the purpose of presentation and design.


  • HTML elements can be nested (elements can include elements).
  • All HTML documents contain nested HTML elements.

<!DOCTYPE html>



             <h1>My First Heading</h1>

             <p>My first paragraph.</p>




  • HTML elements with no content are called empty elements.
  • Without the close tag, <br> is an empty element (the <br> tag defines a line break).
  • Empty elements can be "closed" in the open tag like this: <br />.
  • HTML 5 does not require closing empty elements. But if you want strict validation, or you need to make your document readable by the XML parser, then you should turn off all HTML elements.


There are several elements that have been removed from HTML 5:

Removed Elements

Use Instead Elements




















CSS, <s> or <del>





In HTML 5 the <article> tag is used to denote an article.{codeBox}


In HTML 5, the <aside> tag is used to describe the main object of a web page in a small way like a highlighter. The <aside> tag mainly contains author information, links, related content, etc.{codeBox}


In HTML 5, the <Figcaption> tag is used to set the caption of a figure element in a document.{codeBox}


In HTML 5, the <figure> tag is used to add self-contained content such as illustrations, diagrams, photos, and codes list to a document. It is related to the main flow but it can be used in any situation of a document.{codeBox}


This includes the header as well as other content, such as navigation links, table of contents, etc.

In <Footer> HTML 5 , the <footer> tag is used to define the footer of the HTML document. This section contains footer information (author information, copyright information, carriers, etc.). The footer tag is used within the body tag. The <footer> tag is new in HTML 5. The footer element requires the start tag as well as the end tag.{codeBox}


This deletes the main content of a document or web app.{codeBox}


In HTML 5 the <mark> tag is used to define marked text. It is used to highlight the text part in a paragraph.{codeBox}


The <nav> tag is used to declare navigational sections in HTML 5 documents.{codeBox}

<section> :

It demarcates the thematic set of content.

The <details>: <details> tag is used for content/information that is initially hidden, but can be displayed if the user wants to see it. This tag is used to create interactive widgets that the user can open or close. The content of the details tag appears when the set attributes are opened.{codeBox}


In HTML 5 the <Summary> tag is used to define the Summary of the <details> element. The <summary> element is used with the <details> element and provides the Summary visible to the user. When the user clicks on Summary, the content inside the <details> element appears which was previously hidden. The <Summary> tag was added to HTML 5. The <summary> tag requires both starting and ending tags.{codeBox}


The <time> tag is used to display readable date / time. It can also be used to encode dates and times in a machine-readable form. The main advantage for users is that they can offer to add birthday reminders and scheduled events to their calendar and search engines can generate smart search results.

The full name of the <bdi>: <bdi> tag is Bi-Directional Isolation. It separates one text from another text which can be formatted in different directions. This tag is used when a user generates text from unknown directions.{codeBox}


In HTML 5 the full name of <wbr> is word break and is used to define a position inside text known as a line break in the browser. It is mostly used when the word used is too long and there is a possibility that the browser may break lines in the wrong place to fit the text.{codeBox}


The <datalist> tag is used to provide the autocomplete feature in HTML 5 files. It can be used with input tags so that users can easily fill in the form by selecting the data.{codeBox}



In HTML 5 the <keygen> tag is used to specify the key-pair generator field in the form. The purpose of the <keygen> element is to provide a secure way to authenticate users. When the form is submitted, tabs generate two keys, the private key, and the public key. The private key is stored locally, and the public key is sent to the server. The public key is used to create a client certificate for the authenticated user for the future.{codeBox}


In HTML 5 the <output> tag is used to denote the result of calculations performed by client-side scripts such as JavaScript.{codeBox}


It is used to represent the progress of a task. It has also defined how much work is done to download something and how much is left. It is not used to represent Disk space or relevant queries.{codeBox}


Scalable Vector Graphics {codeBox}


In HTML 5 the <canvas> tag is used to create graphics on a web page using JavaScript. It can be used to add paths, boxes, texts, gradients, and images. By default, it does not include borders and text.{codeBox}



It defines music or audio content.{codeBox}



It defines containers for external applications (usually a video player).{codeBox}



It defines the source of <video> and <audio>.{codeBox}


It defines tracks for <video> and <audio>.{codeBox}


This defines the video content.{codeBox}





This defines the audio content.


It defines the container for External (non-HTML) applications.


Defines multiple media resources for media elements (<video> and <audio>)


Defines text track for media elements (<video> and <audio>)


It defines video and movie.


I am an engineer by profession but being a blogger is my old day's dream to create my site for those who are more curious about my birthplace than I am coming from (India). the current city lives in Navi Mumbai, India

Post a Comment


Previous Post Next Post

نموذج الاتصال