vidun
HTML Basics
Introduction
HTML (HyperText Markup Language) is the standard markup language for creating web pages. It describes the structure of a web page using markup elements or tags.
Basic HTML Structure
The basic structure of an HTML document includes the following elements:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page Title</title>
</head>
<body>
<!-- Your content goes here -->
</body>
</html>
Common HTML Tags
Here are some common HTML tags:
<h1>Heading 1</h1>
<p>This is a paragraph.</p>
<a href="https://www.example.com">Link</a>
<img src="image.jpg" alt="Description">
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>
Attributes
HTML tags can have attributes that provide additional information. For example:
<a href="https://www.example.com" target="_blank">Open link in a new tab</a>
Comments
You can add comments in your HTML code using the following syntax:
<!-- This is a comment -->
Comments
Post a Comment