You are developing an HTML5 page that has an element with an ID of picture. The page
includes the following HTML.
You need to move the picture element lower on the page by five pixels.
Which two lines of code should you use? (Each correct answer presents part of the
solution. Choose two.)
Explanation Explanation: We use relative position to move the position 5 pixels lower on page. Using a negative value would move the picture higher on the page. Note: * The top property sets or returns the top position of a positioned element. This property specifies the top position of the element including padding, scrollbar, border and margin. Syntax Set the top property: Object.style.top="auto|length|%|inherit" Where: Length defines the top position in length units. Negative values are allowed
Question ID 14883
You are developing a customer web form that includes following HTML.
<input id= "textAccountType"/>
You need to develop the form so that customers can enter only a valid account type
consisting of two English alphabet characters.
Which code segment should you use?
Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
Correct Answer
B
Explanation Explanation: HTML pattern Attribute The pattern attribute specifies a regular expression that the element's value is checked against. Example An HTML form with an input field that can contain only two letters (no numbers or special characters): Reference: HTML pattern Attribute http://www.w3schools.com/tags/att_input_pattern.asp