HTML or Hypertext Markup Language is a web development language that assesses, describes and assembles content on a web page. Technically speaking, HTML is more of a web designing language rather than a programming or coding language. However, all of these are interlinked and work simultaneously.
In simple terms, each webpage is a HTML file, containing HTML tags which in turn make up the content of the webpage. A website usually has a series of HTML tags that connects keeps the content aligned together. Here’s everything an aspiring coder needs to know about HTML elements.
HTML tags: What are they?
HTML tags are nothing but keywords that give instructions to web browsers on how to format or display content on the webpages. Majority of HTML tags are defined by the symbols < >. These are also called opening and closing identifiers.
Example: <body> and < / body> are opening and closing tags respectively, in which everything in between count as “body” of a webpage. The opening and closing tags are same, except, the closing tag has a forward slash (/) symbol. However, there are exceptions. The most popular HTML tags are <html> < / html> that have all the HTML codes in store.
The four most essential and widely used HTML tags that help web browsers to function properly are:
Example:
<DOCTYPE html>
<head> e-commerce < / head>
<title> Welcome! < / title>
<body>
<p1> My first paragraph < / p1>
<p2> My second paragraph < / p2>
<p3> My third paragraph < / p3>
< / body>
< / html>
HTML hierarchy: What is it?
The way HTML tags are organized one after the other is called HTML hierarchy. So, far it is clear that these tags build up the structure of a web page. While there are some independent tags, there are also others that are built inside other tags. This one tag above the other tag is called the parent tag of the tag below it, which is called the child tag. The series of parent and child tags together form a hierarchy. There are also tags which come side by side and are considered equal, which is why they are called sibling tags. The basic HTML hierarchy looks like this: