HTML Flashcards

1
Q

What is templating?

A

Data in and HTML out

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

What is the difference between Jade and EJS?

A

Different syntax: EJS (see below)

<h1></h1>

<ul>

<li>
<a>

</a>
</li>

</ul>

Jade (see below)
extends ./layout
block content
  .row
    .col-lg-12
      .page-banner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is doctype?

A

it is an instruction to the web browser about what version of HTML the page is written in. meaning what feature is supported or not.

browsers use a DOCTYPE in the beginning of the document to decide whether to handle it in quirks mode or standards mode

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

What’s the difference between standards mode and quirks mode?

A

Quirks mode refers to maintaining compatibility with ‘quirky’ web browsers like IE5 and earlier.

In full standards mode, the behavior is (hopefully) the behavior described by the HTML and CSS specifications

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

What’s the difference between HTML and XHTML?

A

XML is a software- and hardware-independent tool for storing and transporting data.

HTML stands for Hyper Text Markup Language
HTML describes the structure of Web pages using markup

New HTML5 features like audio/video native support, local storage, location. IE does not support XHTML

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

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

A

use a language attribute on the html tag

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

What are data- attributes good for?

A

data can be stored on markups that not visible to end users, also not violating the standard HTML5. JavaScript can easily access by dataset

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

Describe the difference between a Cookie, Session Storage and Local Storage.

A

They are all stored on the client side. Cookies are small pieces of data represented in key-value pairs and expires.

SessionStorage is persistent data and scope only to current browser window.

LocalStorage is persistent data. Unlike cookies, the storage limit is far larger (at least 5MB) and information is never transferred to the server.

Local storage is per origin (per domain and protocol). All pages, from one origin, can store and access the same data.

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