DEV Community

Cover image for INTRODUCTION TO HTML
Susan Neema
Susan Neema

Posted on

INTRODUCTION TO HTML

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>
Enter fullscreen mode Exit fullscreen mode

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>
Enter fullscreen mode Exit fullscreen mode

Describes the type of document above, in our case, it is an HTML type of document.

<html></html>
Enter fullscreen mode Exit fullscreen mode

Describes the beginning and the end of an HTML document.

<head></head>
Enter fullscreen mode Exit fullscreen mode

Contains the information about the HTML page.

<title></title>
Enter fullscreen mode Exit fullscreen mode

Contains the title to our web page and is located at the browser's page tab.

<body></body>
Enter fullscreen mode Exit fullscreen mode

This is where all the contents about the web page are put.

Top comments (0)