Introduction to HTML

HTML is the standard markup language for creating web pages.

HTML is the standard markup language for creating web pages. It defines the structure and content of a webpage. HTML uses a set of tags to define the structure of a webpage, and the content is written between the opening and closing tags. Here's an example of a simple HTML document: ```html <!DOCTYPE html> <html> <head> <title>My First HTML Page</title> </head> <body> <h1>Welcome to My First HTML Page</h1> <p>This is a paragraph of text.</p> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </body> </html> ``` In this example, the `<!DOCTYPE html>` declaration specifies the version of HTML being used. The `<html>` element is the root element of an HTML page. The `<head>` element contains meta-information about the HTML document, such as the title. The `<body>` element contains the visible content of the webpage. The `<h1>` element is a heading, and `<p>` is a paragraph. The `<ul>` element is an unordered list, and `<li>` is a list item. The `<li>` elements are nested inside the `<ul>` element. HTML tags are case-insensitive, which means that `<H1>` and `<h1>` are equivalent. However, it's best practice to use lowercase tags for better readability. ## HTML Tags Here's a list of some common HTML tags: - `<html>`: The root element of an HTML page.