HTML Tags

HTML Tags

The HTML tag is the root element of all the other tags. The thing is that this tag is the container for all the other HTML elements. It also contains the lang attribute, which specifies the language of the web page.

Well, this tag would be present in every HTML code, since it is the container of all the other elements(except <!DOCTYPE html>).

Let’s have a look at the example, through which, we can understand the use of HTML tags. Between the <html> and </html>, there would be all the other elements.

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>This is a title</title>
</head>
<body>


</body>
</html>