HTML Basic

"In this tutorial, we will find the HTML Components, alongside getting the different accessible components through the examples. A HTML component is the assortment of start and end tags with the substance embedded in the middle of them."


Below are the basic HTML tags that split the entire document into various parts such as headers and body.

  • <!DOCTYPE html>: Every HTML document begins with the HTML document tag. Although  not required, it is a good convention to start the document.
  • <html>: Each HTML code should be surrounded by basic HTML tags. It begins with  <html> and ends with  </html> tag.
  • <head>: The HTML <head> tag contains metadata and instructions to the browser that are not displayed directly  on the web page. This tag is also commonly referred to as  element.
  • <title> : We can refer to the title of a web page using   label. This is header information and  is therefore mentioned in the title tags. The tag begins with <title> and ends with </title>.
  • <body>: The next step is the most important of all the tags you have learned so far. The body tag contains the actual page body that all users can see. This opens with <body>,  ends with </body>. Each content enclosed by this tag is a web page, loaded, or an image or audio, or a video or link. You can later be viewed in the section on how to use various tags that can insert the content mentioned in the web page.
     

Example of basic HTML structure.

<html>
 
<head>
    <!-- Information about the page -->
    <title>Tutorial With Example.com</title>
</head>
 
<body>
    <!--Contents of the webpage Like Image, text and any things which you want to display on your page-->
</body>
 
</html>