Veda Bites are swipeable micro-lessons — each one teaches exactly one
idea. The bites below come from this kit — swipe through them in the app.
💡 Key Idea
HTML is the Skeleton of Every Web Page
The backbone of all web content.
HTML (HyperText Markup Language) is the standard language for creating web pages. It uses tags to structure content like headings, paragraphs, links, and images. Think of HTML as the skeleton of a webpage — it defines the bones, while CSS and JavaScript add style and behavior.
↳ HTML provides the fundamental structure for all web content.
📖 Definition
What is an HTML Tag?
The building blocks of HTML.
An HTML tag is a keyword surrounded by angle brackets, like `<p>` for paragraph. Tags usually come in pairs: an opening tag `<p>` and a closing tag `</p>`. The content between them is what the tag affects.
↳ Tags define the structure and meaning of content on a webpage.
💡 Key Idea
Anatomy of an HTML Element
Opening tag, content, closing tag.
An HTML element consists of an opening tag, the content, and a closing tag. Some elements are empty, like `<br>` (line break), and don't have a closing tag. Attributes can be added to the opening tag to provide extra information.
↳ Elements are the core units of HTML, with tags and content working together.
⚙️ Process
Basic HTML Document Structure
Every page follows this skeleton.
A standard HTML document has a specific structure that browsers expect. It starts with `<!DOCTYPE html>` and includes `<html>`, `<head>`, and `<body>` sections.
↳ The doctype, html, head, and body tags form the mandatory structure of any HTML page.
💡 Key Idea
Headings: h1 to h6
Structure your content hierarchy.
HTML provides six levels of headings, from `<h1>` (most important) to `<h6>` (least important). They help organize content and improve accessibility and SEO. Use only one `<h1>` per page for the main title.
↳ Headings create a clear outline of your content, from most to least important.
✏️ Example
Paragraphs and Line Breaks
Text blocks made easy.
The `<p>` tag defines a paragraph. Browsers automatically add space before and after paragraphs. For a simple line break without starting a new paragraph, use `<br>`.
↳ Use <p> for paragraphs and <br> for line breaks within a paragraph.
💡 Key Idea
Links: The <a> Tag
Connect the web together.
The anchor tag `<a>` creates hyperlinks. The `href` attribute specifies the destination URL. Links can point to other pages, files, or email addresses.
↳ The <a> tag with an href attribute is how users navigate between web pages.
✏️ Example
Images: The <img> Tag
Add visuals to your page.
The `<img>` tag embeds an image. It is an empty element (no closing tag) and requires at least the `src` (source) and `alt` (alternative text) attributes.
↳ The <img> tag uses src and alt attributes to display images and provide accessibility.
💡 Key Idea
Lists: Unordered and Ordered
Organize items neatly.
HTML supports unordered lists (`<ul>`) with bullet points and ordered lists (`<ol>`) with numbers. Each list item is wrapped in `<li>`.
↳ Use <ul> for unordered lists and <ol> for ordered lists, with <li> for each item.
⚖️ Comparison
Block vs Inline Elements
How elements flow on a page.
HTML elements are either block-level or inline. Block elements start on a new line and take full width; inline elements flow within text and only take necessary width.
↳ Block elements structure the page, while inline elements style content within lines.
💡 Key Idea
Semantic HTML: Why It Matters
Meaningful tags for better structure.
Semantic HTML uses tags that clearly describe their purpose, like `<header>`, `<nav>`, `<main>`, `<article>`, and `<footer>`. This improves accessibility, SEO, and code readability compared to generic `<div>` tags.
↳ Semantic tags give meaning to your content, benefiting users and search engines.
⚠️ Common Mistake
Forgetting the Closing Tag
A tiny error, big impact.
A common mistake is forgetting to close tags like `<p>` or `<li>`. This can cause the browser to render content incorrectly, nesting elements unintentionally.
↳ Always close your tags to avoid rendering issues.
🎯 Exam Tip
Memorize the Basic Structure
A guaranteed exam question.
In exams, you'll often be asked to identify the correct basic HTML structure. Remember the order: `<!DOCTYPE html>`, `<html>`, `<head>` (with `<title>`), and `<body>`. Practice writing it from memory.
↳ Knowing the skeleton by heart is a quick win on any HTML test.