click below
click below
Normal Size Small Size show me how
HTML Studying
Test for Monday
Question | Answer |
---|---|
CSS3 code fragment styles an H2 element only if it is a direct child of a div element? A. div { background-color: #900; } h2 { background-color: #900; } B. div > h2 { background-color: #900; } | B.) div>h2 { background-color:#900; } |
Which CSS property defines which sides of an element where other floating elements are not allowed? A. float B. position C. display D. clear | D. clear |
Which layout can you create by using a single CSS3 region? A. a table layout B. a snaked-column layout C. a multiple column liquid layout D. a multiple column fixed layout | A. a table layout |
In CSS, the flow-into property deposits: A. the flow into the content. B. the regions into a flow. C. the flow into the regions. D. content into the flow. | D. content into the flow. |
Which CSS code fragment centers an image horizontally? A. img.center { text-align:center; } B. img.center { display: blocks; text-align: center; } C. img.center { display:block; } D. img.center {display: block; margin-left: auto; margin-right: auto; } | D. img.center {display: block; margin-left: auto; margin-right: auto; } |
CSS Term value | 1.8em |
property | margin-top |
id selector | #container |
declaration | font-family; Arial; |
class selector | .container |
Which positioning scheme places an object in normal document flow? A. absolute B. relative C. fixed D. float | B. 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. a circle at the given point B. a square at the given point C. a semi-circle at the given point | C. a semi-circle at the given point |
Which three are valid JavaScript variables? (Choose three.) A. xyz1 B. .Int C. int1 D. _int E. 1xyz | A. xyz1 C. int1 D. _int |
Which two events are supported on touch devices? (Choose two.) A. click B. touchstart C. selection D. drag | A. click B. touchstart |
You need to apply the SVG blur filter to the text tag on the page. Which HTML/CSS code should you insert at line 02? A. <style> text{font:48px arial bold; fill:blur;} </style> B. <style> text{font:48px arial bold; filter:url(#blur);} </style> | B. <style> text{font:48px arial bold; filter:url(#blur);} </style> |
.Which JavaScript code fragment will accomplish this? A. vartxtContents =document.getElementById('text1').value; B. vartxtContents = document.getEIementyById('myText').value; | B. vartxtContents = document.getEIementyById('myText').value; |
The data in a specific HTML5 local storage database can be accessed from: A. Different browsers on the same device. B. Different browsers on different devices. C. The same browser on different devices. D. The same browser on the same device. |