HTML Tutorial
Hyper Text Markup Language (HTML) is a standard markup language for creating & structure of a Web page. It has series of tag those are tell the browser how to display the content.
Basic Structure of an HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
</head>
<body>
<h1>HTML Body Content</h1>
</body>
</html>
Here
-
<!DOCTYPE html> : Defines the document type. Actually it’s a HTML5 document.
-
<html lang="en"> : It is the root element of an HTML page & the Language is English.
-
<head> : Here contains meta information about the HTML page, such as the title, character set, styles, scripts, and more.
-
<meta charset="UTF-8"> : Specify the character encoding for the HTML document
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"> : It’s use for Responsive UI. Basically it gives the browser instructions on how to control the page’s dimensions and scaling.
-
<title> : Sets the title of the web page displayed in the browser’s title bar or tab.
-
<body> : Contains the visible content of the web page.
-
<h1> : Heading tag