HTML stands for Hyper Text Markup Language and it is used for creating web pages.
Let's dive in directly to a simple HTML code.
<!DOCTYPE html>
<html>
<head>
<title>First Program</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first HTML paragraph.</p>
</body>
</html>
You can write the above code on a simple text editor or on Notepad. Text editors you can code on include Sublime Text Editor and VS code.
Tags
Referring to the above code,
<!DOCTYPE html>
Describes the type of document above, in our case, it is an HTML type of document.
<html></html>
Describes the beginning and the end of an HTML document.
<head></head>
Contains the information about the HTML page.
<title></title>
Contains the title to our web page and is located at the browser's page tab.
<body></body>
This is where all the contents about the web page are put.
Top comments (0)