HTML Introduction
> Understand HTML, how browsers interpret markup, and why HTML is the foundation of frontend development.
**Cyber Code Academy · HTML Tutorial · Lesson 01 · Beginner**
## 1. What is HTML?
HTML stands for **HyperText Markup Language**. It is the standard markup language used to create the structure of a web page. It tells a browser which parts of the content are headings, paragraphs, links, images, lists, forms, tables, navigation areas, and other elements.
HTML is a *markup language*, not a general-purpose programming language. It describes document structure and meaning; it does not provide programming constructs such as loops and functions by itself.
Think of a web page as a building:
– HTML is the structure: rooms, doors, walls, and labels.
– CSS is the presentation: paint, spacing, colours, and arrangement.
– JavaScript is behaviour: switches, elevators, and interactive controls.
## 2. What does HyperText mean?
HyperText is text that can connect to other documents through hyperlinks. For example, clicking a link named **HTML Course** can open another page or a specific section of the same page.
The anchor element creates a hyperlink:
“`html
Visit Example
“`
The browser knows where to navigate because of the `href` attribute.
## 3. How does HTML work?
A simplified browser workflow is:
1. The browser requests an HTML document from a server or reads a local HTML file.
2. It parses the markup.
3. It creates a tree of objects called the **Document Object Model (DOM)**.
4. The browser combines the DOM with CSS and other resources.
5. It lays out and paints the page on the screen.
The DOM also allows JavaScript to find and update elements.
## 4. Your first HTML example
Create a file named `index.html` and type this code:
“`html
Hello, World!
Welcome to Cyber Code Academy.
I am learning frontend development.
“`
### Understand the code
– `` tells the browser to use modern HTML parsing.
– “ is the root element. The language helps browsers and assistive technologies interpret the text.
– “ contains metadata and resources; it is not the main visible content area.
– “ declares the character encoding.
– The viewport meta element helps the page fit mobile device widths.
– `
– “ contains the document content.
– `
` represents the primary page heading.
– `
` represents a paragraph.
### Expected browser output
The browser tab says **My First HTML Page**. On the page you see a large heading, “Hello, World!”, followed by two paragraphs. The browser supplies default spacing and font styles.
## 5. HTML, CSS, and JavaScript comparison
| Technology | Main responsibility | Example |
|—|—|—|
| HTML | Structure and meaning | Heading, form, link |
| CSS | Presentation and layout | Colour, grid, spacing |
| JavaScript | Behaviour and logic | Menu toggle, validation |
A professional frontend developer uses these technologies together while keeping responsibilities clear.
## 6. HTML versions and modern HTML
HTML has evolved over time. Modern HTML is maintained as a living standard. HTML5 introduced many features that are now part of everyday web development, including semantic elements, native audio/video, and improved form controls. For new projects, use the HTML doctype shown in this course rather than old version-specific doctypes.
## 7. Common beginner mistakes
– Saving the file as `index.html.txt` instead of `index.html`.
– Writing visible content outside the body.
– Forgetting the document type declaration.
– Using HTML tags only to make text look bigger or bold.
– Copying code without understanding what each part does.
– Assuming that a form sends email automatically. A real form requires a submission handler or backend.
## 8. Practice exercises
**Exercise 1:** Create an `index.html` file with your own page title.
**Exercise 2:** Add one `h1`, two `h2` headings, and four paragraphs.
**Exercise 3:** Add a link to a learning website and explain what the `href` attribute does.
**Exercise 4:** Open the page in a browser and inspect the elements using Developer Tools.
## 9. Knowledge check
1. What is the full form of HTML?
2. Why is HTML called a markup language?
3. What is the difference between the head and body elements?
4. What is the DOM?
5. Which technology is responsible for styling a page?
6. Does an HTML form send data to a server without a handler?
## 10. Summary
HTML gives web content structure and meaning. A browser parses the document and builds a DOM. CSS controls presentation and JavaScript adds behaviour. Every lesson in this course builds on these foundations.
**Next lesson:** HTML Editors — create, save, preview, and debug HTML files.
Want to learn this professionally?
Explore practical IT training at Cyber Code Academy.
View Academy Courses