HTML

HTML is a markup language used for creating web pages. HTML elements like tags and attributes build core aspects of a web page, such as sections, paragraphs, links, etc.   The components of HTML can be listed as follows:-

 

  • Tags are a part of a page that stands as an instruction. It is very much needed on the page as every element from the start to the end, be it headings, paragraphs, images, etc, are started and ended with the tags. For eg:- <p> for opening tag, & </p> for the closing tag.       

 

  • Attributes mean adding elements to provide additional information or modifying them a bit. To insert images(img) or hyperlinks(a) attributes such as “src” and “href” are used, respectively. 

 

  • Comments are used within the tags that explain notes within the HTML codes. They are not usually displayed in the content, yet they help the developers work on the code later.