HTML Flashcards

1
Q

What does HTML stand for?

A

Hyper Text Markup Language

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

What is the purpose of HTML?

A

To describe human-readable documents on the Internet, including content, presentation instructions, metadata, and code for browsers.

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

What is hypertext?

A

Text containing hyperlinks to other documents or parts of documents, allowing navigation by clicking the links.

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

What is the basic structure of an HTML element?

A

An element consists of a start tag, content, and an end tag (e.g., <p>Content</p>)

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

What are HTML attributes?

A

Key-value pairs in the start tag that provide additional information about an element (e.g., <p id="intro">)

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

What is the minimal structure of an HTML document?

A

<!DOCTYPE html>

<html>
<head>
<title>Title</title>
</head>
<body>Content</body>
</html>

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

What does the head element contain?

A

Document metadata like title, meta tags, links to stylesheets, and scripts

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

What is the difference between block-level and inline-level elements?

A

Block-level elements (e.g., div, p) are rendered separately, while inline-level elements (e.g., span, a) flow with the text

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

How do you create a hyperlink in HTML?

A

<a>Link Text</a>

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

What is the difference between absolute and relative URLs?

A

Absolute URLs include protocol, host, and path (e.g., https://example.com/page), while relative URLs are interpreted relative to the current document (e.g., page.html)

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

How do you include an image in HTML?

A

<img></img>

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

How do you create an ordered list?

A

<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>

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

What is the purpose of the table element?

A

To organize data into rows and columns using tr, td, and th elements.

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

How do you create a text input field?

A

<input></input>

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

What is the purpose of the form element?

A

To group input controls and specify where and how data is sent (using action and method attributes).

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

How do you write a comment in HTML?

A

<!-- This is a comment -->