HTML: Semantics Flashcards

1
Q

HTML5?

A

Latest evolution of the standard that defines HTML.

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

Googling ‘HTML Spec’ will show what?

A

Shows the HTML Standard

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

What does Doctype do?

A

Informs the browser of the type of markup it should expect.

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

Explain Inline vs Block Elements and give an example of each.

A

Inline Elements - fit in alongside other elements ie, anchor tag

Block level Elements - take up a whole block of space ie, paragraph and header tags.

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

What are 2 generic container elements?

A

<div></div>

  • Block level element used to group elements together.

<span></span> - Inline element generic container.

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

The Thematic Break Element

A

<hr></hr>

  • Horizontal Rule, represents a thematic break between paragraphs ie change of scene in a story or shift of topic within a section.

*No closing tag, no content, no attribute

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

The Line Break Element

A

<br></br> - produces a line break in text. Useful for poems

*No closing tag, no content, no attribute

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

Superscript Element

A

- Inline text elevated off baseline; exponents and citations.

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

Subscript Element

A

- Inline text displayed with a lowered baseline; for chemicals and fractions.

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

What are Entity Codes?

A

HTML Entities are used to display reserved characters and special characters.

  • Start with & and end with ;
  • Google Character Entity Reference Chart
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Semantic Markup?

A

Defined as meaningful markup or markup that relates or pertains to the meaning of the content of that element. For example, a website that just uses div containers for entirety of page.

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

What are examples of some Semantic Elements?

A

Main - Main content of a page.
Nav - Navigation links
Section - Represents a standalone section which doesn’t have a more specific semantic element.
Article - Self contained composition like a widget, blog, etc.
Aside - related note section
Header - heading of page. Can have multiple
Footer - footer of page. Can have multiple

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