Deck 2: HTML Flashcards

(24 cards)

1
Q

What does HTML stand for?
A) HyperText Markup Language
B) HighText Machine Language
C) Hyperlink and Text Markup Language
D) Home Tool Markup Language

A

A

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

What is the main purpose of HTML?
A) Styling web pages
B) Structuring web content
C) Adding interactivity
D) Managing databases

A

B

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

Which tag represents the root of an HTML document?
A) <head>
B) <body>
C) <html>
D) <title></title>

A

C

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

What does the <title> tag define?
A) Main heading
B) Page content
C) Metadata
D) Title shown in browser tab</title>

A

D

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

Which element contains visible content of a webpage?
A) <body>
B) <head>
C) <meta></meta>
D) <link></link>

A

A

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

What is an HTML element composed of?
A) Only a tag
B) Start tag, content, and end tag
C) Only content
D) Only attributes

A

B

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

Which of the following is an example of an empty element?
A) <p>
B) <div>
C) <br></br>
D) <h1>

A

C

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

What does the <h1> tag represent?
A) Paragraph
B) Link
C) Image
D) Large heading

A

D

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

Which tag is used to create a paragraph?
A) <p>
B) <h1>
C) <div>
D) <span></span>

A

A

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

What type of element is <div>?
A) Inline element
B) Block-level element
C) Empty element
D) Semantic element

A

B

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

Which of the following is an inline element?
A) <div>
B) <p>
C) <span>
D) <section></span>

A

C

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

What is a key characteristic of block-level elements?
A) Do not use width
B) Appear inline
C) Only used for text
D) Start on a new line and take full width

A

D

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

What tag is used to create hyperlinks?
A) <a>
B) <link></link>
C) <href>
D) <url></url></href></a>

A

A

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

What does the href attribute specify?
A) Style of link
B) Destination URL
C) Link color
D) Link size

A

B

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

What does target=”_blank” do?
A) Closes the page
B) Reloads the page
C) Opens link in new tab
D) Downloads file

A

C

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

What is an absolute URL?
A) A local file path
B) A relative link
C) A shortened link
D) A full web address

17
Q

Which list type uses bullet points?
A) <ul>
B) <ol>
C) <dl>
D) <li>

18
Q

Which list type uses numbers?
A) <ul>
B) <ol>
C) <dl>
D) <li>

19
Q

Which tag defines a term in a description list?
A) <dd>
B) <li>
C) <dt>
D) <ul>

20
Q

What is a URL?
A) A programming language
B) A database query
C) A design pattern
D) A web address used to locate resources

21
Q

Which part of a URL indicates the type of service (e.g., http, https)?
A) Scheme
B) Domain
C) Path
D) Port

22
Q

What does the domain in a URL represent?
A) File location
B) Website name
C) Protocol type
D) Page content

23
Q

What does the path in a URL indicate?
A) Browser type
B) Server name
C) Location of resource on server
D) File format

24
Q

What is the purpose of the id attribute in bookmarks?
A) Styling
B) Linking external sites
C) Creating forms
D) Navigating to specific sections