Kit Library / Computer Science / Web Development

⚡ Topic Learning Kit

Html

English 18 leveled MCQs 18 flashcards Free

Shared by a Veda learner · Generated with Veda AI

Veda Bites

The whole idea, one bite at a time

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

Structure before style.

HTML (HyperText Markup Language) is not a programming language — it's a *markup language* that uses tags to define the structure and content of a web page. Every website you visit relies on HTML to arrange text, images, links, and media into a readable document.

↳ HTML provides the foundational structure; CSS and JavaScript add style and behavior.

📖 Definition

Tags, Elements, and Attributes

The building blocks of HTML.

An HTML element is everything from the start tag to the end tag: `<tagname>content</tagname>`. Tags are the markup keywords inside angle brackets (e.g., `<p>`, `<h1>`). Attributes provide extra information about an element, written inside the opening tag as `name="value"`.

↳ Elements = opening tag + content + closing tag; attributes customize them.

⭐ Important Fact

HTML is Case-Insensitive (But Use Lowercase)

Consistency matters for readability.

HTML tags and attributes are case-insensitive — `<P>` works the same as `<p>`. However, the modern standard and best practice is to always write tags and attributes in lowercase. This improves readability, consistency, and compatibility with stricter languages like XHTML.

↳ Always use lowercase for HTML tags and attributes.

⚙️ Process

Basic HTML Document Structure

Every page follows this template.

↳ A valid HTML document always includes DOCTYPE, html, head, and body.

⚠️ Common Mistake

Forgetting the Closing Tag

Unclosed tags break layout.

↳ Always close non-void elements to avoid rendering errors.

✏️ Example

Headings and Paragraphs

Organize content hierarchically.

HTML provides six levels of headings (`<h1>` to `<h6>`) and the paragraph element (`<p>`). Headings create a visual and semantic hierarchy — `<h1>` is the most important, `<h6>` the least. Paragraphs group blocks of text.

↳ Use headings in order (h1 then h2, not h3 directly after h1) for accessibility and SEO.

🌍 Real World

Links Connect the Web

The 'HT' in HTML means hypertext.

The anchor tag `<a>` creates hyperlinks, the fundamental feature that makes the web interconnected. The `href` attribute specifies the destination URL. Without links, the web would be a collection of isolated documents.

↳ Links are what make the World Wide Web 'web-like'.

💻 Code Example

Images: The `<img>` Tag

Visuals without closing tags.

The `<img>` element embeds an image. It is a void element — it has no closing tag. Two essential attributes: `src` (image file path or URL) and `alt` (alternative text for accessibility).

↳ Always include alt text for accessibility and SEO.

⚖️ Comparison

Block vs Inline Elements

Two fundamental display behaviors.

↳ Block elements create 'blocks' in the layout; inline elements flow within text.

🧠 Memory Trick

Remember Void Elements with 'BR IMG HR'

No closing tag needed.

Void elements (self-closing) never have content or a closing tag. Mnemonic: BR IMG HR — `<br>` (line break), `<img>` (image), `<hr>` (horizontal rule). Others include `<input>`, `<meta>`, and `<link>`.

↳ If it's a void element, don't write a closing tag.

✅ Best Practice

Use Semantic HTML

Meaningful tags help everyone.

Semantic HTML means using tags that describe their purpose, like `<header>`, `<nav>`, `<article>`, and `<footer>`, instead of generic `<div>` elements. This improves accessibility (screen readers understand the structure) and SEO (search engines rank content better).

↳ Choose the most descriptive HTML element for each part of your content.

🎯 Exam Tip

Attributes Go in the Opening Tag

Never in the closing tag.

A common exam mistake: placing attributes inside the closing tag. Attributes are always written in the opening tag after the tag name, separated by spaces. The closing tag contains only the tag name with a slash.

↳ Attributes belong only in the opening tag.

❓ Did You Know

HTML Was Invented by Tim Berners-Lee

The web's first building block.

In 1991, Tim Berners-Lee published the first HTML document while working at CERN. The original version had only 18 tags. Today, HTML5 (the current standard) includes over 100 tags for multimedia, forms, graphics, and more.

↳ HTML has evolved from 18 tags to over 100 in HTML5.

🔗 Analogy

HTML is Like a House Blueprint

Structure before decoration.

Think of HTML as the blueprint of a house: it defines rooms (sections), walls (containers), doors (links), and windows (images). CSS is the paint and wallpaper (visual style), and JavaScript is the electricity and plumbing (interactivity). Without the blueprint, nothing else holds together.

↳ HTML provides the essential structure; CSS and JavaScript enhance it.

🔄 Workflow

How a Browser Reads HTML

From code to rendered page.

↳ The browser converts HTML into a DOM tree before rendering the page.

💡 Key Idea

Comments Help You (and Others) Read Code

Invisible notes for humans.

HTML comments are not displayed in the browser — they help developers document code. Syntax: `<!-- This is a comment -->`. Use comments to explain complex sections, mark areas for future work, or temporarily disable code without deleting it.

↳ Comments keep your HTML maintainable and collaborative.

Smart notes

What you'll study, topic by topic

1

HTML Fundamentals: Structure, Elements, and Attributes

8 min

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It uses tags and attributes to structure content into headings, paragraphs, links, images, and other elements. Understanding the ba…

  • HTML is a markup language, not a programming language; it defines the structure of web content.
  • Every HTML document starts with `` and contains ``, ``, and `` elements.
  • Elements consist of an opening tag, content, and a closing tag (except void elements like `` and ``).

Full explanation, worked examples & memory tricks in the app

Leveled MCQ practice

Try the smart MCQs from this kit

All 18 questions, laddered from warm-up to topper-level, each with its answer and the reasoning behind it.

Warm-up · 13 questions

Q1. Which HTML element is used to define the root of an HTML document?

Beginner
A <document>
B <body>
C <html>
D <head>

Answers and explanations are in the Veda app.

Q2. What is the purpose of the <head> element in an HTML document?

Beginner
A To define a navigation menu
B To contain metadata and links to resources
C To display the main content of the page
D To create a footer section

Answers and explanations are in the Veda app.

Q3. Which attribute is used to specify a unique identifier for an HTML element?

Beginner
A class
B name
C id
D style

Answers and explanations are in the Veda app.

Q4. What does the <a> element require to create a hyperlink?

Beginner
A src attribute
B href attribute
C link attribute
D url attribute

Answers and explanations are in the Veda app.

Q5. Which HTML element is used to insert a line break?

Beginner
A <br>
B <newline>
C <lb>
D <break>

Answers and explanations are in the Veda app.

Q6. What is the correct way to comment in HTML?

Beginner
A /* comment */
B # comment
C // comment
D <!-- comment -->

Answers and explanations are in the Veda app.

Q7. Which HTML element is used to define a table row?

Beginner
A <th>
B <td>
C <table>
D <tr>

Answers and explanations are in the Veda app.

Q8. Which element is used to define a list item in an unordered list?

Beginner
A <item>
B <ol>
C <ul>
D <li>

Answers and explanations are in the Veda app.

Q9. What is the purpose of the 'src' attribute in the <img> element?

Beginner
A To add a border
B To set the image width
C To provide alternative text
D To specify the image source URL

Answers and explanations are in the Veda app.

Q10. Which HTML element is used to define a paragraph?

Beginner
A <p>
B <para>
C <paragraph>
D <text>

Answers and explanations are in the Veda app.

Q11. Which element is used to define a heading of the highest level?

Beginner
A <h6>
B <h1>
C <heading>
D <head>

Answers and explanations are in the Veda app.

Q12. The <title> element is placed inside the <body> element.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Q13. HTML attributes provide additional information about elements and are always specified in the opening tag.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Building up · 5 questions

Q14. Which attribute is used to provide alternative text for an image in the <img> element?

Intermediate
A title
B desc
C alt
D caption

Answers and explanations are in the Veda app.

Q15. What is the difference between <div> and <span> elements?

Intermediate
A <div> is block-level, <span> is inline
B Both are block-level
C <div> is inline, <span> is block-level
D Both are inline

Answers and explanations are in the Veda app.

Q16. What does the 'target' attribute do in an <a> element?

Intermediate
A Specifies where to open the linked document
B Adds a tooltip
C Specifies the URL
D Sets the link color

Answers and explanations are in the Veda app.

Q17. What does the 'class' attribute do in HTML?

Intermediate
A Assigns one or more class names for styling
B Assigns a unique identifier
C Defines a hyperlink
D Sets the element's display type

Answers and explanations are in the Veda app.

Q18. The <br> element is a void element and does not require a closing tag.

Intermediate
A True
B False

Answers and explanations are in the Veda app.

Flashcards

Tap a card to flip it

18 flashcards in this kit — the app reviews them with spaced repetition so the right card returns on the right day.

Study it properly — free, in the app

The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.