HTM Base
HTM Base
HTML is a markup language used to structure content on the web. It provides the framework
for web pages by organizing elements like headings, paragraphs, links, images, tables, forms,
and more.
html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Welcome to HTML!</h1>
</body>
</html>
Explanation:
1
<head>: Metadata about the document (e.g., title, links to stylesheets).
html
<h1>Main Heading</h1>
<h2>Subheading</h2>
html
<p>This is a paragraph.</p>
html
html
Lists:
2
Ordered List:
html
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
Unordered List:
html
<ul>
<li>Item A</li>
<li>Item B</li>
</ul>
Key Attributes