2.1 html Flashcards

1
Q

What is the principle of markup language in HTML?

A

Tags are commands to display styles (color, format, location). Elements become objects in the browser

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

What is the minimal structure of an HTML5 file?

A

<!DOCTYPE html>\

<html>\
<head> <title> Our first document </title>\
<meta></meta>\
</head>\
<body>\
</body>\
</html>

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

What does the <p> element do?

A

Places text in a paragraph, inserts a blank line

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

What does the <br> tag do?

A

Breaks the current line, no blank line, no closing tag

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

What does the <pre> tag do?

A

Displays text exactly as entered

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

What is the difference between <h1> and <h6>?

A

<h1> is the largest heading, <h6> is the smallest

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

What does the <b> tag do?

A

Bold text

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

What does the <strong> tag do?

A

Important text, usually bold

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

What does the <i> tag do?

A

Italic text

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

What does the <em> tag do?

A

Emphasized text, usually italic

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

What does the <mark> tag do?

A

Marked text

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

What does the <small> tag do?

A

Smaller text

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

What does the <del> tag do?

A

Deleted text

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

What does the <ins> tag do?

A

Inserted text

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

What does the <sub> tag do?

A

Subscript text

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

What does the <sup> tag do?

A

Superscript text

17
Q

What does the <code> tag do?

A

Program code, often in Courier font

18
Q

What is the purpose of <meta charset="UTF-8">?

A

Character encoding for many characters

19
Q

What are character entities used for?

A

Use to display reserved characters or symbols

20
Q

What does &nbsp; represent?

A

Non-breaking space

21
Q

What does &lt; represent?

A

Less than sign (<)

22
Q

What does &gt; represent?

A

Greater than sign (>)

23
Q

What does &amp; represent?

A

Ampersand (&)

24
Q

What does &quot; represent?

A

Double quotation mark (“)”
“What does &apos; represent?”,”Single quotation mark (‘)”

25
What does the `
` tag do?
Sets off a block of text, often indented
26
What is the purpose of the `` element?
Provides document information for search engines
27
What does `text` do?
Displays an image, 'alt' is the alternate text
28
What are the characteristics of the GIF image format?
8-bit color, animation
29
What are the characteristics of the JPEG image format?
24-bit color, good compression
30
What are the characteristics of the PNG image format?
Newer, lossless, supports transparency
31
What does `Link Text` do?
Creates a hyperlink
32
What does `target="_blank"` do in a hyperlink?
Opens a link in a new window or tab
33
How do you link to an ID within the same page or a different page?
34
What are the default colors for links?
Unvisited: blue, underlined; Visited: purple, underlined; Active: red, underlined
35
How can you change the default colors for links using CSS?
Use `a:link`, `a:visited`, `a:hover`, `a:active` to change colors