HTML5 Coding Flashcards

1
Q

The ___ element is used to contain meta tags, links to style sheets, and the title element.

A

<head>...</head>

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

The ___ declaration identifies the version of HTML used to create the webpage.

A

doctype

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

The ___ element is used to specify information about the document, such as a character set, author, and viewport.

A

<meta></meta>

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

The ___ element contains the entire document code.

A

<html>...</html>

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

The ___ element is used to reference an external style sheet.

A

<link...>
</link...>

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

The ___ element identifies the document title.

A

<title>...</title>

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

The ___ element contains all visible webpage content.

A

<body>...</body>

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

Identify the attribute: <p class ="special">Weekly Special</p>

A

class

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

Identify the value: <p class ="special">Weekly Special</p>

A

special

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

True or False? HTML comments should be used to inform others about important elements used with in the webpage code.

A

True

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

True or False? HTML comments should be used to ensure that the addition of random white space will not affect rendering in browsers.

A

False

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

True or False? HTML comments can be used to remind yourself why you inserted a particular piece of code.

A

True

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

True or False? HTML comments can be used to disable code to see how a page will appear without a particular markup element.

A

True

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

Which of the following are block-level elements? Select all the apply.

A

div, footer, h1, hr, p

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

True or False? Head elements are the same as header elements

A

False

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

True or False: Heading elements may be nested within header elements.

A

True

17
Q

Examples of HTML5 semantic tags

A

footer, header, nav

18
Q

What is true about HTML Entities?

A

Special symbols/characters that start with & and end with ;

19
Q

True or False? The Internet and the WWW are the same thing.

A

False

20
Q

What are examples of container tags?

A

article, h3, p

21
Q

Which of the following are examples of empty/void element tags

A

br, hr, img, meta

22
Q

File path for logo.png located in a sub-directory named “images”

A

images/logo.png

23
Q

File path for services.html webpage in the higher level directory.

A

../services.html

24
Q

File path for product1.jpg in a different directory, at the same level named images

A

../images/product1.jpg