Welcome to the HTML Basics Tutorial! In this tutorial, you'll learn the foundational elements of HTML, the language used to create web pages.
HTML stands for HyperText Markup Language. It is the standard markup language for creating the structure of web pages. HTML uses tags to define elements on a page.
An HTML document consists of the following basic structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
HTML elements are represented by tags. Here are some basic elements:
<h1></h1>
: Headings<p></p>
: Paragraphs<a href="#"></a>
: Links<img src="image.jpg" alt="Description">
: Images<ul><li></li></ul>
: Unordered Lists<ol><li></li></ol>
: Ordered ListsHTML elements can have attributes that provide additional information. For example:
<a href="https://www.example.com">Visit Example.com</a>
Comments in HTML are created using the <!-- comment -->
syntax. They are not displayed on the webpage but can be useful for adding notes in your code.
<!-- This is a comment -->
Open a text editor, create an HTML file, and experiment with these basic concepts. View your HTML file in a web browser to see the results!