HTML Flashcards Preview

Interview Questions > HTML > Flashcards

Flashcards in HTML Deck (11)
Loading flashcards...
1
Q

What does a doctype do?

A

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

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

3
Q

What’s the difference between HTML and XHTML

A
  • HTML is the universal standard

- XHTML is essentially defunct.

4
Q

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

A

Adding “lang” attribute to the html element

5
Q

What are data- attributes good for?

A

Storing extra data on an element

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
7
Q

What are cookie, sessionStorage and localStorage?

A

Client side storage techniques

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
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)

10
Q

What is progressive rendering?

A

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

11
Q

HTML templating languages

A

Jade, Handlebars