MTA 98-375 Flashcards
HTML5 Application Development Fundamentals
Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
div > h2 {
}
Which CSS property defines which sides of an element where other floating elements are not allowed?
clear
How do you apply a SVG blur filter to the text tag on the page?
filter:url(#blur)
Which layout can you create by using a single CSS3 region?
A table layout
In CSS, the flow-into property deposits:
Content into the flow
Which CSS code fragment centers an image horizontally?
display: block; margin-left: auto; margin-right: auto;
Which positioning scheme places an object in normal document flow?
relative
The variable named “ctx” is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);
a semi-circle at the given point
Which three are valid JavaScript variables?
xyz1, int1, _int
Your code includes the following fragment:
You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code fragment will accomplish this?
vartxtContents = document.getEIementyById(‘myText’).value;
Which two events are supported on touch devices?
click, touchstart
The data in a specific HTML5 local storage database can be accessed from:
Different browsers on the same device
You are creating a page by using HTML5. You add script tags to the page. You need to use JavaScript to access an element by id and add a class to the element. Which property or attribute should you use?
the className property
Which code fragment sets up a timer that calls a function named “adjust” every second?
setInterval(adjust, 1000);
Which two HTML properties can JavaScript access to change the text value of an HTML element?
InnerHTML, title
Web Workers define an API for:
Publishing frequently updated works for syndication
Name two WebSocket events
onmessage, onopen
You create an interface for a touch-enabled application.
During testing you discover that some touches trigger multiple input areas. Which situation will cause this problem?
The input areas are too close together.
An HTML5 application can be used without going through a manufacturer’s approval process if:
The browser on the device supports HTML5
Which item specifies resources for an offline HTML5 application?
a CSS style sheet
In HTML5, which two objects in the Web Storage specification are used to store data on the client?
sessionStorage, localStorage