INF-306試験無料問題集「IT Specialist HTML5 Application Development 認定」

You need to use CSS to create the layout shown:

Review the layout shown on the left.
Complete the markup by selecting the correct option from each drop-down list.
Note: You will receive partial credit for each correct selection.
正解:

Explanation:
First blank: display: grid;
Second blank: grid-template-columns: auto auto auto auto;
Third blank: grid-gap: 10px;
The layout shown is a CSS Grid layout with eight items arranged into four equal-width columns and two rows. The first required declaration is display: grid;, which turns the .grid-container element into a grid container. The second declaration is grid-template-columns: auto auto auto auto;, which defines four columns, matching the four visible boxes in each row: Mickey, Minnie, Luna, and George on the first row, then Bilbo, Bella, Madeline, and Groucho on the second row. The third declaration is grid-gap: 10px;, which creates spacing between the grid cells, matching the visible blue gaps around each item. The background-color:
#336699; creates the blue container background, while padding: 10px; adds space around the outer edge of the grid. The child rule .grid-container > div styles each grid item with a light background, centered text, padding, and larger font size.
You have created custom error messages for a form. When a user attempts to submit the form with invalid data, the data must remain in the form and error messages must be displayed. Which Event property or method should you use?

解説: (GoShiken メンバーにのみ表示されます)
Which two application features should you implement by using session storage? Choose 2.

解説: (GoShiken メンバーにのみ表示されます)
Which two functions support 2D transformations in CSS3? Choose 2.

解説: (GoShiken メンバーにのみ表示されます)
Which markup segment creates an SVG ellipse?

解説: (GoShiken メンバーにのみ表示されます)
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.
正解:

Explanation:
First drop-down: flex boxes
Second drop-down: background-size
Third drop-down: cover
The layout changes from a stacked mobile layout to a multi-column desktop layout without relying on media queries. That behavior is commonly achieved with responsive flex boxes, where items can wrap naturally based on the available width. The header image must fill the available header area on both mobile and desktop. For that requirement, the correct CSS property is background-size, and the correct value is cover.
background-size: cover scales the image so the entire header area is filled, even if part of the image is cropped. contain would preserve the full image but could leave empty space, and auto would keep the image at its natural size.
Which value does the following JavaScript code fragment store in the variable num?
var num = localStorage.length;

解説: (GoShiken メンバーにのみ表示されます)