Lesson
01. Welcome to HTML and the Web
HTML is the foundation of every website. In this lesson, you will learn what HTML does, how browsers read it, and how to create your first HTML file.
Learning objectives
- Explain the role of HTML in a website.
- Recognize elements, tags, and attributes.
- Create and open an
index.htmlfile.
HTML, CSS, and JavaScript
HTML provides structure, CSS controls presentation, and JavaScript adds behavior. Think of HTML as the frame of a building, CSS as its visual design, and JavaScript as its interactive systems.
Your first element
<h1>Hello, world!</h1>
<p>This is my first web page.</p>
An element usually has an opening tag, content, and a closing tag. Some elements, such as images, do not wrap text.
Practice activity
- Create a folder named
html-course. - Create a file named
index.html. - Add the example above, save it, and open it in your browser.
Knowledge check
Lesson quiz
Sign in to take this quiz and save your result.
Sign in to take quiz