Member-only story
A basic introduction to HTML
HTML (HyperText Markup Language) is the standard markup language for creating web pages. It provides a way to structure content on a web page, such as headings, paragraphs, images, links, and more. In this tutorial, we will cover the basics of HTML and show you how to create your first web page.
Getting Started
To get started with HTML, you need a text editor to create and edit HTML files. There are many text editors available for free, such as Notepad, Sublime Text, and Visual Studio Code. Once you have a text editor, you can create a new HTML file with the extension .html.
Basic HTML Structure
Every HTML document should have a basic structure that includes the following elements:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
Page content goes here.
</body>
</html>
The <!DOCTYPE html>
declaration at the beginning of the document tells the browser that the document is an HTML5 document. The <html>
element is the root element of an HTML page and contains all the other elements. The <head>
element contains meta-information about the document, such as the page title, which is displayed in the browser tab. The <body>
element contains the visible page content.