Markup Language
HTML (HyperText Markup Language) is the standard markup language for documents designed to be displayed in a web browser. It defines the structure and content of web pages, while CSS handles the presentation and JavaScript handles the behavior.
HTML consists of a series of elements, which you use to enclose, or wrap, different parts of the content to make it appear a certain way, or act a certain way. HTML is the foundation of the Web, forming the building blocks of all websites.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Web Page</title> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <h1>Welcome to My Website</h1> </header> <main> <section> <h2>About Me</h2> <p>This is a paragraph about me.</p> </section> </main> <footer> <p>© 2025 My Website</p> </footer> <script src="script.js"></script> </body> </html>
<!-- Headings --> <h1>Heading Level 1</h1> <h2>Heading Level 2</h2> <h3>Heading Level 3</h3> <!-- Paragraph with strong and emphasis --> <p> This is a paragraph with <strong>bold text</strong> and <em>emphasized text</em>. </p> <!-- Link --> <a href="https://example.com" target="_blank">Visit Example.com</a> <!-- Image --> <img src="image.jpg" alt="Description of image" width="300" height="200"> <!-- Lists --> <ul> <li>Unordered list item 1</li> <li>Unordered list item 2</li> </ul> <ol> <li>Ordered list item 1</li> <li>Ordered list item 2</li> </ol>
<form action="/submit" method="post"> <div> <label for="name">Name:</label> <input type="text" id="name" name="name" required> </div> <div> <label for="email">Email:</label> <input type="email" id="email" name="email" required> </div> <div> <label for="message">Message:</label> <textarea id="message" name="message" rows="4"></textarea> </div> <div> <label> <input type="checkbox" name="subscribe" value="yes"> Subscribe to newsletter </label> </div> <button type="submit">Submit</button> </form>
HTML is the fundamental language for creating web content:
HTML has evolved significantly since its inception:
Modern web development uses HTML5, which is maintained as a "living standard" that evolves continuously rather than through version numbers.
Here are some excellent resources for learning HTML:
Technologies that work with HTML: