Front-End Web Development Academy

HTML - HyperText Markup Language

Lesson 1: Introduction to HTML

HTML is the standard markup language for creating web pages. It structures the content using elements called tags.

Basic HTML Structure

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>My First Webpage</title>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>This is my first webpage.</p>
  </body>
</html>
                
Explanation:
  • <!DOCTYPE html>: Declares the document as HTML5.
  • <html lang="en">: Root element, with language attribute.
  • <head>: Contains meta-information (not displayed).
  • <body>: Contains the content visible to users.
  • <h1>: Main heading. <p>: Paragraph text.

Exercise:

  1. Create a new HTML file.
  2. Add your name as a heading.
  3. Add a short paragraph about yourself.

Lesson 2: Lists, Links, and Images

<h2>My Favorite Websites</h2>
<ul>
  <li><a href="https://github.com">GitHub</a></li>
  <li><a href="https://developer.mozilla.org">MDN Web Docs</a></li>
</ul>
<img src="https://via.placeholder.com/150" alt="Placeholder Image">
                
Explanation:
  • <ul>: Unordered list. <li>: List item.
  • <a href="">: Anchor (link) to other sites.
  • <img src="" alt="">: Displays an image with a description.

Exercise:

  1. Create a list of your favorite programming resources with links.
  2. Add an image of your choice with an appropriate alt text.