HTML Flashcards

Basic HTML Codecademy (47 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

True or False: HTML is a programming language.

A

False

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

Fill in the blank: The basic structure of an HTML document starts with the _______ tag.

A

<!DOCTYPE html>

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

What is the purpose of the <head> tag in HTML?

A

To contain meta-information about the document.

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

Which tag is used to create a hyperlink?

A

<a></a>

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

What attribute is used to specify the URL of a link?

A

href

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

True or False: The <title> tag is placed inside the <body> tag.</title>

A

False

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

What is the function of the <body> tag?

A

To contain the visible content of the HTML document.

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

Which tag is used for creating a line break?

A

<br></br>

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

What does the <img></img> tag require to display an image?

A

The src attribute

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

What is the correct HTML element for inserting a line break?

A

<br></br>

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

Which tag is used to create an unordered list?

A

<ul>
</ul>

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

What is the purpose of the <meta></meta> tag?

A

To provide metadata about the HTML document.

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

True or False: HTML elements are case-sensitive.

A

False

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

What tag is used to create a table?

A

<table>
</table>

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

Which tag is used for the table header?

A

<th>
</th>

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

Fill in the blank: The _______ tag is used to create a form in HTML.

A

<form>
</form>

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

What attribute is used to specify the action of a form?

A

action

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

What is the default type of the <input></input> element?

20
Q

Which tag is used for creating a dropdown list?

A

<select></select>

21
Q

What do you use to create a checkbox in HTML?

A

<input></input>

22
Q

True or False: The <footer> tag is used to define the footer of a document or section.

23
Q

What is the purpose of the <div> tag?

A

To define a division or section in an HTML document.

24
Q

Which tag is used to create a heading level 1?

25
What is the purpose of the alt attribute in the tag?
To provide alternative text for the image.
26
Fill in the blank: The _______ tag is used to define an ordered list.
27
What does the tag represent?
Important text, typically displayed in bold.
28
What is the function of the tag?
To emphasize text, typically displayed in italics.
29
True or False: The tag is used to link to external CSS stylesheets.
True
30
Which tag is used to create a block of code?
31
What is the purpose of the