IT Specialist INF-306 HTML5 Application Development Exam Practice Test
HTML5 Application Development Questions and Answers
The following two images show a web page that uses a responsive layout displayed on a mobile device and on a PC.
Displayed on a mobile device:
The layout stacks the content vertically.
Displayed on a computer monitor:
The layout displays the content cards horizontally in multiple columns.
Review the images on the left.
Complete the statements by selecting the correct option from each drop-down list.
You need to create the following form:
Complete the code by selecting the correct option from each drop-down list.
Which markup segment creates an SVG ellipse?
Which element should you use to rotate an SVG square?
Which JavaScript method is used to draw a circle on a canvas?
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.
You need to display the following user interface:
Motorcycle
Truck
Boat
Car
Bicycle
Complete the markup by selecting the correct option from each drop-down list.
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.
Review the grid container requirements and mockup on the left. Which markup should you use to define the grid container?
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.
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.
Which markup segment uses the output element to display the combined value of two input elements in HTML5?
You write the following JavaScript code. Line numbers are included for reference only.
01 < script >
02
03 beststudent = new Student( " David " , " Hamilton " );
04 document.write(beststudent.fullname + " is registered. " );
05 < /script >
You need to write a function that will initialize and encapsulate the member variable fullname.
Which code fragment could you insert at line 02 to achieve this goal?
Note: Each correct answer presents a complete solution.
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?
Which two statements correctly describe media queries? Choose 2.
You need to implement media queries for the responsive layout of a new website.
Low-resolution wireframes for the desktop, tablet, and mobile layouts are shown.
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.
You are creating a form that asks a user to enter their phone number. The form must be submitted only if the phone number field is not empty and matches the format 111-444-7777. Which markup should you use?
Review the following markup segment:
< form action= " process.js " method= " get " >
< label for= " secretcode " > Secret Code < /label >
< input type= " text " name= " secretcode "
pattern= " [a-zA-Z]{4}-[0-9] {2}-[0-9]{4}-[a-zA-Z] {4} "
placeholder= " secretcode " >
< input type= " submit " value= " Submit " >
< /form >
Which entry will validate successfully according to the required pattern?
You are given the design for an app. The project manager asks you to outline the steps you must take to release and maintain the app.
Move each step from the list on the left to its correct sequence in the application lifecycle on the right.
Note: You will receive partial credit for each correct response.








