HyperText Markup Language Flashcards

(20 cards)

1
Q

What does HTML stand for?

A

HyperText Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is HTML used for?

A

Structuring web pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does <!DOCTYPE html> do?

A

Declares the document as HTML5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the root element of a webpage?

A

<html>
</html>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is inside the <body> tag?

A

Visible page content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is inside the <head> tag?

A

Metadata (title, links, scripts)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which tag creates the largest heading?

A

<h1>
</h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which tag is used for paragraphs?

A

<p>
</p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What attribute specifies a link’s destination?

A

href

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you create a hyperlink?

A

<a>Text</a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you add an image?

A

<img></img>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the alt attribute do?

A

Describes the image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What tag creates an unordered list?

A

<ul>
</ul>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What tag creates a numbered list?

A

<ol>
</ol>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a block element?

A

Takes full width (e.g., <div>)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What tag represents a list item?

12
Q

What is an inline element?

A

Takes only needed space (e.g., <span>)</span>

13
Q

What is the purpose of semantic tags?

A

Give meaning to content

14
Q

Name one semantic tag

A

<header> (also <nav>, <main>, etc.)
</main></nav></header>

15
Q

How do you write a comment in HTML?

A

<!-- comment -->