Html: 18 flashcards

All 18 flashcards from this kit, free and with no sign-up.

1. What does HTML stand for?

Show the answer

HyperText Markup Language

2. What is the purpose of the <!DOCTYPE html> declaration?

Show the answer

It tells the browser that the document uses HTML5.

3. What are the two main sections inside an HTML document?

Show the answer

The <head> and the <body>.

4. Which element is the root element of every HTML page?

Show the answer

The <html> element.

5. What is the difference between an opening tag and a closing tag?

Show the answer

An opening tag is written as <tagname> and a closing tag as </tagname>. The closing tag includes a forward slash before the tag name.

6. What is an HTML attribute?

Show the answer

An attribute provides additional information about an element and is always specified in the opening tag, usually as name="value".

7. What does the <a> tag define?

Show the answer

A hyperlink.

8. Which attribute is used to specify the URL for a hyperlink in an <a> tag?

Show the answer

The href attribute.

9. What is the purpose of the <img> tag?

Show the answer

It embeds an image in the HTML page.

10. Name two required attributes for the <img> tag.

Show the answer

src (source file path) and alt (alternative text).

11. What is the difference between a block-level element and an inline element?

Show the answer

A block-level element starts on a new line and takes up the full width available (e.g., <div>, <p>). An inline element does not start on a new line and only takes up as much width as necessary (e.g., <span>, <a>).

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

Show the answer

The <p> element.

13. What do the <h1> to <h6> tags represent?

Show the answer

Heading levels, where <h1> is the most important (largest) and <h6> is the least important (smallest).

14. What is the purpose of the <title> element?

Show the answer

It defines the title of the document, which appears in the browser's title bar or tab.

15. How do you write a comment in HTML?

Show the answer

<!-- This is a comment -->

16. What does the <ul> tag create?

Show the answer

An unordered (bulleted) list.

17. What is a void (self-closing) element? Give one example.

Show the answer

A void element does not have a closing tag and cannot contain content. Example: <br> (line break) or <img>.

18. Which attribute is used to add inline CSS styling to an HTML element?

Show the answer

The style attribute.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages