html Flashcards

(10 cards)

1
Q

What does the DOM do?

A

defines the logical structure of documents and the way a document is accessed and manipulated

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

What does a doctype do?

A

instructs the web browser about what version of HTML the page is written in.

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

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

A

Set the language html tag to a default and provide rules for displaying content in multiple languages using different language elements.

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

What kind of things must you be wary of when design or developing for multilingual sites?

A
  • Mistranslation
  • Content organisation (right to left, left to right)
  • Cultural awareness when it comes to stock images and color palate
  • Encoding and special characters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are data- attributes good for?

A

data-* attributes allow us to store extra information on standard, semantic HTML elements, but it’s not encouraged.

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

Consider HTML5 as an open web platform. What are the building blocks of HTML5

A

Semantics, Connectivity, Offline and storage, Multimedia, 2D/3D graphics and effects, Performance and integration, Device access, Styling

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

Describe the difference between a cookie, sessionStorage and localStorage

A

cookie
Expiry — Manually set
Persistent across browser sessions — Depends on whether expiration is set
Have domain associated — Yes

localStorage
Expiry — Forever
Persistent across browser sessions — Yes

sessionStorage
Expiry — On tab close
Persistent across browser sessions — No
Have domain associated — No

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

Describe the difference between , and

.
A

script: rendered with html
script async: executed asynchronously with HTML
script defer: executed after HTML has rendered

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 s between and JS s just before

A

placing at the top allows the page to render progressively which improves user experience
Downloading the scripts at the bottom will allow the HTML to be parsed and displayed to the user first

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

What is progressive rendering?

A

the name given to techniques used to render content for display as quickly as possible, (e.g., lazy loading or prioritising visible content)

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