HTML (Hypertext Markup Language) is the standard markup language used to create web pages. It consists of a series of elements (tags) that define the structure and content of a web page.
<!DOCTYPE html>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Welcome to my website!</h1>
<p>This is my first paragraph.</p>
<p>This is my second paragraph.</p>
</body>
</html>
Let’s break it down:
<!DOCTYPE html>
declares the document type as HTML5.<html>
is the root element of an HTML document.<head>
contains metadata about the document, such as the page title, CSS styles, and links to JavaScript files.<title>
specifies the title of the document, which appears in the browser tab.<body>
contains the content of the document, such as text, images, videos, and interactive elements.<h1>
is a heading element that indicates the main heading of the page.<p>
is a paragraph element that indicates a block of text.
There are many other HTML elements that you can use to structure your content and create more complex web pages. You can also style your HTML with CSS (Cascading Style Sheets) and add interactivity with JavaScript.
I hope this brief tutorial helps you get started with HTML. If you have any specific questions, feel free to ask!