HTML Elements

HTML Elements

HTML is a Hypertext markup language, we use this language to build a skeleton of a webpage. With the help of html elements which are created using tags. There are a lot of tags in html like.

html:

It is a root element and all other elements are descendants of this element.

head:

The head data contain the main readable information about the page. Like-style,meta,script etc.

It establishes a relation between , html file and external file. Like-you link your external css file with your html page.

meta:

The meta element represents the metadata that can not be represented by other elements in html.

style:

The style tag contains the information about the style of the page.

title:

The title element defines the title of a webpage and it shows in the browser’s title bar.

header:

The header element contains the introduction content of a webpage like-navbar,logo etc.

h1-h6:

These are heading tags which start from h1 and end to h6 , these elements are h1,h2,h3,h4,h5,h6.

main:

The main element contains the central topic or content of the page.

nav:

Nav element is used to represent or provide navigation links for the page.

div:

This is a generic container for content that doesn't affect the style of the document.

hr:

This element draws a horizontal line on the webpage.

img:

This element contains an image init we give a path of that folder , where an image is stored.

audio & video:

These elements contain some media files init.

script:

This tag is used for embedding a javascript file in the html.

table:

It represents the data in tabular form and there are some other elements to do this work.

tbody:

Tbody contains the table rows.

td:

It stands for table data and it also holds the table data.

th:

It is table head if we give any header to our table then we write in this th element.

tr:

It is a table row element and we wrote our row in this element.

button:

Button element is used to display a button on the webpage.

form:

Form element is used to build a intract form for users.

Input:

Input element is used to take some input form user. There are a variety of input elements in html. Like-text,tel,email,radio,checkbox,date.

If you want to learn more elements then i recommend you to visit MDN Dos for HTML.