HTML5 Flashcards

1
Q

What were some of the key goals and motivations for the HTML5 specification?

A

HTML5 was designed to replace older HTML specifications. It provides better semantic support and create better cross-platform support. It also adds new ways of adding rich content (video, audio, cnavas)

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

What are some of the key new features in HTML5?

A

HTML5 adds new semantic tags, form controls, JavaScript API’s (storage, drag-and-drop, geolocation, caching).

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

What are “web workers”?

A

Web workers bring multi-threading to JavaScript.

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

What is the correct usage of ?

A

The element is used to contain introductory and navigational information about a section of the page. This can include the section heading, the author’s name, time and date of publication, table of contents, or other navigational information.

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

What is the correct usage of ?

A

The element is meant to house a self-contained composition that can logically be independently recreated outside of the page without losing it’s meaning. Individual blog posts or news stories are good examples.

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

What is the correct usage of ?

A

The element is a flexible container for holding content that shares a common informational theme or purpose.

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

What is the correct usage of ?

A

The element is used to hold information that should appear at the end of a section of content and contain additional information about the section. Author’s name, copyright information, and related links are typical examples of such content.

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

Can a contain elements? Can an contain elements? Provide usage examples.

A

The answer to both questions is yes; i.e., a can contain elements, and an can contain elements.

For example, a personal dashboard page might contain a for social network interactions as well as a for the latest news articles, the latter of which could contain several elements.

Conversely, an might contain a at the end for reader comments.

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

Can a web page contain multiple elements? What about elements?

A

Yes to both. In fact, both the and tags are designed to serve their respective purposes in relation to whatever their parent “section” may be. So not only can the page contain a header and a footer, but so can every and element. In fact, a should be present for all of these, although a is not always necessary.

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

Can a web page contain multiple elements? What about elements?

A

Yes to both. In fact, both the and tags are designed to serve their respective purposes in relation to whatever their parent “section” may be. So not only can the page contain a header and a footer, but so can every and element. In fact, a should be present for all of these, although a is not always necessary.

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

Describe the relationship between the and <h1> tags in HTML5.</h1>

A

In previous specifications of HTML, only one <h1> element was typically present on a page, used for the heading of the entire page. HTML5 specifies that <h1> represents the top-level heading of a “section”, whether that be the page , or an or element. In fact, every element should at least contain an <h1> element. If there is no natural heading for the section, it is a good indication it should not use an or tag.
</h1></h1></h1>

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

What are some of the key new features in HTML5?

A

HTML5 adds new semantic tags, form controls, JavaScript API’s (storage, drag-and-drop, geolocation, caching).

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

What are “web workers”?

A

Web workers bring multi-threading to JavaScript.

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

What is the correct usage of ?

A

The element is used to contain introductory and navigational information about a section of the page. This can include the section heading, the author’s name, time and date of publication, table of contents, or other navigational information.

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

What is the correct usage of ?

A

The element is meant to house a self-contained composition that can logically be independently recreated outside of the page without losing it’s meaning. Individual blog posts or news stories are good examples.

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

What is the correct usage of ?

A

The element is a flexible container for holding content that shares a common informational theme or purpose.

17
Q

What is the correct usage of ?

A

The element is used to hold information that should appear at the end of a section of content and contain additional information about the section. Author’s name, copyright information, and related links are typical examples of such content.

18
Q

Can a contain elements? Can an contain elements? Provide usage examples.

A

The answer to both questions is yes; i.e., a can contain elements, and an can contain elements.

For example, a personal dashboard page might contain a for social network interactions as well as a for the latest news articles, the latter of which could contain several elements.

Conversely, an might contain a at the end for reader comments.

19
Q

Can a web page contain multiple elements? What about elements?

A

Yes to both. In fact, both the and tags are designed to serve their respective purposes in relation to whatever their parent “section” may be. So not only can the page contain a header and a footer, but so can every and element. In fact, a should be present for all of these, although a is not always necessary.

20
Q

Can a web page contain multiple elements? What about elements?

A

Yes to both. In fact, both the and tags are designed to serve their respective purposes in relation to whatever their parent “section” may be. So not only can the page contain a header and a footer, but so can every and element. In fact, a should be present for all of these, although a is not always necessary.

21
Q

Describe the relationship between the and <h1> tags in HTML5.</h1>

A

In previous specifications of HTML, only one <h1> element was typically present on a page, used for the heading of the entire page. HTML5 specifies that <h1> represents the top-level heading of a “section”, whether that be the page , or an or element. In fact, every element should at least contain an <h1> element. If there is no natural heading for the section, it is a good indication it should not use an or tag.
</h1></h1></h1>