HTML Document

Learn how HTML uses tags and attributes to structure web pages, including paired vs empty tags and the roles of the HEAD and BODY sections.

Loading...
HTML Document

HTML uses predefined tags and attributes to tell the browser how the content (for example, in which layout, font size, colors, images, and videos) should be displayed. HTML is a case-insensitive language which means there is no difference in upper case and lower case, i.e., 'B' and 'b' are considered the same.

There are generally two types of tags in HTML:

  1. Paired Tags: These tags come in pairs. That is, they have both opening (< >) and closing (</ >) tags.
  2. Empty Tags: These tags do not require to be closed.

An HTML Document is predominantly divided into two parts:

  1. HEAD: This part consists of the information about the HTML document i.e., title of the page, character set, version of HTML, styles, scripts, and other meta information.
  2. BODY: This part consists of everything that you want to display on the Web Page.