

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This study guide covers key concepts in html, focusing on responsive design, flexbox, and print media. It presents a series of questions and answers to test understanding of these topics. The guide is particularly useful for students learning web development and design, providing a comprehensive overview of these essential areas.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Which of the following is not a part of responsive design theory? - ANSWERpulldown menus Which attribute do you add to a link element for aural browsers? - ANSWERmedia = "speech" What @rule do you use for braille device? - ANSWER@media braille What @rule loads style rules for screen devices up to a maximum width of 780 pixels? - ANSWER@media screen and (max-width: 780px) What attribute would you add to a link element for screen devices whose width ranges from 480 pixels up to 780 pixels (inclusive)? - ANSWERmedia="screen and (min-width: 480px and max-width: 780px)" In general, what media rules should be listed first in your media queries if you want to support mobile, tablet, laptop, and desktop devices? - ANSWERmobile Which viewport displays the web page content that fits within mobile screen? - ANSWERvisual Which viewport contains the entire content of the page, some of which may be hidden from the user? - ANSWERlayout Which of the following is not a style to display an element as a flexbox? - ANSWERdisplay: -webkit-flex; To display items within a flexbox in a column filled from the bottom upward, use: - ANSWERflex-direction: column-reverse; To set the initial size of a flexbox item to 250 pixels, use: - ANSWERflex-basis: 250px; To set the growth rate of a flexbox item to a rate of 4, use: - ANSWERflex-grow: 4; Which of the following sets the div element to be equal in size regardless of the size of the flexbox container? - ANSWERdiv {flex: 1 1 0px;} To reorder of the placement of a flex item within its flexbox, use: - ANSWERorder To prevent a page break from being placed within any header element, use: - ANSWERheader {page-break-inside: avoid;}
What style do you apply to allow the browser to wrap long strings of text to a new line whenever needed? - ANSWERword-wrap: break-word; To limit the size of widows for all article elements to 3 lines or more, use: - ANSWERarticle {widows: 3;} To center flex items along the flexbox's main axis, use: - ANSWERjustify-content: center; To center flex items along the flexbox's cross axis, use: - ANSWERalign-content: center; What attribute do you add to a link element to indicate that the style sheet is used for printed media? - ANSWERmedia="print" What @rule is used for setting the properties of the printed page box? - ANSWER@page To set the right-side printed page to have a 3 centimeter top/bottom margin and a 5 centimeter left/right margin, use: - ANSWER@page:right {margin: 3cm 5cm;} To apply a page break before every section element, use: - ANSWERsection {break- before: always;} To display the URL of a hypertext link, use the property: - ANSWERattr(url) How is the number of columns in a table determined? - ANSWERBy the maximum number of cells placed within the table rows To mark a cell as a table header, use: - ANSWERth To mark a cell as containing table data, use: - ANSWERtd To display all table elements with collapsed borders, use: - ANSWERborder- collapse: collapse; Two table cells have adjacent borders. One cell has a 5-pixel-wide double border and the other cell has a 6-pixel-wide solid border. If the table borders are collapsed, what type of border will the two cells share? - ANSWER6-pixel solid border To span a cell across two rows and three columns, use the attribute: - ANSWERrowspan = "2" colspan = "3" How do you keep table columns aligned when a cell spans multiple rows? - ANSWERReduce the number of cells in the rows below the spanning cell In the case of conflicting styles, how does HTML resolve the styles of the row group and the column group? - ANSWERThe row group has precedence.