Chapter 3 Flashcards

1
Q

What are SVG and Canvas graphic elements used for?

A

Ability to create interactive web graphics and animations without using additional software.

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

What are raster graphics?

A

They are image that uses pixels of color

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

What is the difference between raster and vector based graphics?

A

Raster= loses quality when you shrink or grow in size.

Vector based graphics= does not loses quality when you shrink or grow in size.

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

What are SVG great for?

A

run on large screens like PC’s and small mobile and tablet devices because the graphics can scale without losing quality. They are also great for creating graphics with large rendering areas like map overlays. SVG graphics can be animated but is recommended only for short animations and is not recommended for graphic intensive animations like games.

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

What are canvas great for?

A

the canvas is suggested to use for animation of graphics intensive games but is pixel based and uses JavaScript to draw the graphics on the fly, coloring pixels. Because canvas graphics are pixel based the image can’t grow or shrink in size without losing quality like SVG, but renders much faster and therefore is suggested to use for animation of graphics intensive games.

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

What is a DOM?

A

The DOM is used to allow JavaScript and other scripts access to elements that can be dynamically changed through programming. To further understand DOM, the document object model, you need to understand that each element in the document is accessed as an object.

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

What semantic elements are new in HTML5?

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

What are new form control attributes in HTML5?

A

number, date, time, calendar, and range.

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

What are new graphic elements in HTML5?

A

and .

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

New multimedia elements in HTML5?

A

and .

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

What are new HTML5 APLIs?

A
HTML Geolocation
HTML Drag and Drop
HTML Local Storage
HTML Application Cache
HTML Web Workers
HTML SSE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Who created World Wide Web?

A

Tim Berners-Lee created the WWW in 1989

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

What is the complete shiv solution?

A

You put this code in the header so that the browser needs to know about all the new elements before reading them.

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

What is semantics? What is semantics elements?

A

Semantics is the study of the meanings of words and phrases in language.

Semantic elements are elements with a meaning.

A semantic element clearly describes its meaning to both the browser and the developer.

Examples of non-semantic elements: <div> and <span> - Tells nothing about its content.</span>

Examples of semantic elements: , , and <img></img> - Clearly defines its content.</span></div>

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

element?

A

The element specifies independent, self-contained content.

An article should make sense on its own, and it should be possible to read it independently from the rest of the web site.

Examples of where an element can be used:

Forum post
Blog post
Newspaper article

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

What is HTML canvas?

A

The HTML element is used to draw graphics, on the fly, via scripting (usually JavaScript).

The element is only a container for graphics. You must use a script to actually draw the graphics.

Canvas has several methods for drawing paths, boxes, circles, text, and adding images.

17
Q

What is SVG?

A

SVG stands for Scalable Vector Graphics
SVG is used to define graphics for the Web
SVG is a W3C recommendation

The HTML element (introduced in HTML5) is a container for SVG graphics.

SVG has several methods for drawing paths, boxes, circles, text, and graphic images.

18
Q

What are the popular plug-ins for videos?

A

Windows Media Player, Flash Player, and QuickTime

19
Q

element supports which video formats?

A

mp4, WebM, and Ogg video formats that are considered platform independent