Spring Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium IT Specialist INF-306 Dumps Questions Answers

Page: 1 / 5
Total 68 questions

HTML5 Application Development Questions and Answers

Question 1

You need to complete the code for a registration form that must meet the following criteria:

• The Password must be 6–8 characters long and use only letters and numbers.

• The Member ID must follow the pattern ###-##-###.

Complete the markup by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

Options:

Buy Now
Question 2

You are creating a dietary request form for an upcoming conference. The form must include the following elements:

• The title " Conference Registration Form "

• A Name input field for the attendee ' s name

• A list of food options the attendee can select by using the mouse or typing

Complete the code by moving the appropriate code segments from the list on the left to the correct locations on the right. You may use each code segment once, more than once, or not at all.

Note: You will receive partial credit for each correct response.

Options:

Question 3

You create an interface for a touch-enabled application. Some input buttons do not trigger when tapped. What are two possible causes?

Options:

A.

The input areas are using event handlers to detect input.

B.

The defined input areas are not large enough.

C.

The touch screen is not initialized.

D.

The input areas overlap with other input areas.

Question 4

You need to identify the form elements.

Move the appropriate semantic elements from the list on the left to the correct locations on the right.

Note: You will receive partial credit for each correct response.

Options:

Question 5

Review the grid container requirements and mockup on the left. Which markup should you use to define the grid container?

Options:

A.

Uses grid-template-columns and grid-template-rows with percentage and pixel sizing.

B.

Incorrectly places named area strings under grid-template-rows.

C.

Incorrectly places named area strings under grid-template-columns.

D.

.grid-container { display: grid; grid-template-areas: " heading heading heading heading heading heading " " menu content content content right right " " menu contact contact contact contact contact " ; grid-gap: 10px; background-color: orange; padding: 10px;}

Question 6

The ctx variable is the context of an HTML5 canvas object. What does the following HTML markup draw?

ctx.arc(x, y, r, 0, Math.PI, true);

Options:

A.

A line from one point to another

B.

A square at the given point

C.

A circle at the given point

D.

A semicircle at the given point

Question 7

A form has four buttons with a class of item. You need to apply an event listener to all buttons to invoke the moveElement function when a button is pressed. Your code must ensure bubble capture.

Complete the markup by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

Options:

Question 8

You are creating a script that reads a JSON menu file and displays the Entree, Price, and Description.

Complete the code by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

Options:

Question 9

You are creating a form that requires the category to be entered as a two- or three-letter abbreviation. The input is mandatory.

You need to configure the input validation for the form.

Complete the markup by typing into the boxes.

Note: You will receive partial credit for each correct answer.

Options:

Question 10

Which three methods are associated with the HTML5 localStorage API? Choose 3.

Options:

A.

setItem

B.

removeItem

C.

write

D.

cookie

E.

clear

Question 11

The following form is missing validation attributes:

< form >

< div class= " container " >

< h1 > Register Here < /h1 >

< p > Please fill in the details to create an account with us. < /p >

< hr >

< label for= " ? " > < b > Enter Email < /b > < /label >

< input type= " ? " placeholder= " Enter Email " name= " ? " placeholder= " username@domain.com " >

< label for= " ? " > < b > Password < /b > < /label >

< input type= " ? " placeholder= " Enter Password " name= " ? " >

< label for= " ? " > < b > Confirm Password < /b > < /label >

< input type= " ? " placeholder= " Confirm Password " name= " ? " >

< label for= " phone " > < b > Phone < /b > < /label >

< input type= " tel " id= " phone " name= " phone " placeholder= " 123-45-678 " >

< hr >

< p > By creating an account you agree to our < a href= " # " > Terms & Privacy < /a > . < /p >

< button type= " submit " class= " registerbtn " > < strong > Register < /strong > < /button >

< /div >

< /form >

You need to update the form to enforce the following requirements for visitors:

• All fields must be completed with valid information.

• The users should not be allowed to type passwords longer than 8 characters.

• Passwords must use only numbers and letters.

• Phone numbers and email addresses must follow the configuration of the placeholder text.

• The browser must display an error message that makes it clear what type of input change is needed.

Review the markup on the left.

Complete the sentences by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

Options:

Question 12

What is the effect of applying the CSS float: right property to an image?

Options:

A.

It positions the image to the right of the region and wraps text around the top, left, and bottom.

B.

It positions the image to the right and wraps text to the top and bottom.

C.

It positions the image to the left and displays all of the text to the right of the image.

D.

It positions the image to the left of the region and wraps text around the top, right, and bottom.

Question 13

You want to display a message box showing the user ' s current latitude and longitude as identified by the user’s browser.

Complete the code by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

Options:

Question 14

You want to position a specific element so that it always directly follows the previous element, which is positioned by default, regardless of the viewport characteristics. Which positioning method should you use?

Options:

A.

absolute

B.

fixed

C.

static

D.

sticky

Question 15

Move the appropriate attributes from the list on the left to the correct descriptions on the right. You may use each attribute once, more than once, or not at all.

Note: You will receive partial credit for each correct match.

Options:

Question 16

Which element should you use to rotate an SVG square?

Options:

A.

animateMotion

B.

animateTransform

C.

circle

D.

path

Question 17

You write the following markup to create a page. Line numbers are included for reference only.

01 < !DOCTYPE html >

02 < html >

03 < head >

04 < style >

05

10 < /style >

11 < /head >

12 < body >

13 < svg height= " 500 " width= " 500 " >

14 < defs >

15 < filter id= " f2 " x= " 0 " y= " 0 " width= " 200% " height= " 200% " >

16 < feOffset result= " offOut " in= " SourceGraphic " dx= " 20 " dy= " 20 " / >

17 < feGaussianBlur result= " blurOut " in= " offOut " stdDeviation= " 10 " / >

18 < feBlend in= " SourceGraphic " in2= " blurOut " mode= " normal " / >

19 < /filter >

20 < /defs >

21 < text x= " 10 " y= " 100 " style= " fill:red; " > Blur Me! < /text >

22 Sorry, your browser does not support inline SVG.

23 < /svg >

24 < /body >

25 < /html >

An SVG blur filter is defined in the markup on the left. You need to apply the SVG blur filter to the text element on the page.

Which CSS code should you insert at line 05?

Options:

A.

text { font: 48px arial bold; filter: #blur;}

B.

text { filter: url( " #f2 " ); font-size: 50pt; color: red;}

C.

text { font: 48px arial bold; fill: blur;}

D.

text { font: 48px arial bold; filter: url(blur);}

Question 18

You need to define a grid that meets the following requirements:

• Explicitly sets the width of 6 equal columns of 1 fraction

• Explicitly sets 5 varied sized rows

• Defines 15px of space between each grid column

• Defines 10px between each grid row

Complete the code by selecting the correct option from each drop-down list.

Options:

Question 19

Match each stage of Application Lifecycle Management to the task that occurs during that stage.

Move each stage from the list on the left to the correct task on the right.

Note: You will receive partial credit for each correct match.

Options:

Question 20

Which three events are valid for the HTML canvas element? Choose 3.

Options:

A.

mouseup

B.

scroll

C.

play

D.

datareceived

E.

blur

Page: 1 / 5
Total 68 questions