- :
π What is HTML?
HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. It tells the browser how to display text, images, links, and other elements.
π§± Basic Structure of an HTML Document:
html
Copy
Edit
<!DOCTYPE html>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Welcome to My Website!</h1>
<p>This is a paragraph of text.</p>
</body>
</html>
π§© Key Elements in HTML:
<!DOCTYPE html> β Declares the document type and version of HTML.
<html> β Root element of an HTML page.
<head> β Contains meta information (like title, links to stylesheets, etc.).
<title> β Sets the page title (shown in the browser tab).
<body> β Contains the content shown on the page.
<h1> to <h6> β Headings, from largest (<h1>) to smallest (<h6>).
<p> β Paragraph text.
<a href=”URL”> β Hyperlink.
- <img src=”image.jpg” alt=”description”> β Image.
<ul>, <ol>, <li> β Unordered and ordered lists.
π¨ Example with More Elements: