HTML Flashcards

1
Q

What does a doctype do?

A

Tells the browser what version of HTML and how to render the page.

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

What’s the difference between full standards mode, almost standards mode and quirks mode?

A
  • Full standards mode is default, and has been since IE 6.

- There are no valid reasons to use anything but

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

What’s the difference between HTML and XHTML

A
  • HTML is the universal standard

- XHTML is essentially defunct.

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

How do you serve a page with content in multiple languages?

A

Adding “lang” attribute to the html element

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

What are data- attributes good for?

A

Storing extra data on an element

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

What are the building blocks of HTML5?

A
  • HTML defines structure (title, header, tables, inputs)
  • CSS defines style (font, color, formatting)
  • JS defines dynamic behavior
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are cookie, sessionStorage and localStorage?

A

Client side storage techniques

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

Describe the difference between script, script async, and script defer tags.

A
  • script interrupts page rendering until script runs
  • script async does not interrupt rendering, runs when script is available. Think CDNs.
  • script defer runs after rendering
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is it generally a good idea to position CSS links between head tags and JS scripts just before body tags?

A
  • link tags at the beginning to prevent FOUC

- Scripts at the end to prevent rendering interruptions (unless defer/async)

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

What is progressive rendering?

A

-Chunking the HTML into separate blocks that load when each is rendered

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

HTML templating languages

A

Jade, Handlebars

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