HTML Elements

What is HTML?

HTML(Hypertext Markup Language) is the standardized system to structure the web page. Without HTML web pages would not exist. Every page we found on the web is created using HTML elements. HTML is the skeleton of a web page.

HTML tags are not case-sensitive: <P> means the same as <p>. Most of the HTML element has an open tag and a closed tag or some of the elements are self-closed. For example:-

<body></body>
<h1></h1>
<div></div>
self closing tags:-
<img/>
<input/>
<br/>

Some important HTML Elements:-

  • <html>- This is the root element and it defines the whole document.It has a start tag <html> and an end tag </html>.

  • <body> - It defines the document's body. It has a start tag <body> and an end tag </body>. We write all text, images, tables and all the media content inside the body element.

  • <div> - It is used to define/divide a section.

  • <img> - It is used for inserting images. It is a self-closed element <img/>.

  • <li> - It is used to represent a list.

  • <ol> - It is to define an ordered list.

  • <ul> - It is used to define an unordered list.

  • <header> - It defines the header of a page or section in a web page.

  • <button> - It is used for clickable buttons.

Example of a HTML document:-