Advanced CSS3 & HTML5

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What is <div id="footer">?

An example of an element within a page.

What is <div class="box"><p>Box content</p></div>?

An example of a style you can assign more than once on the same page.

This transform moves an element. Choose all that apply. A. img {transform: translateX(100px) translateY(300px);} B. img {transform: translateX(-200px) translateY(-400px);} C. img {transform: scale(.75);} D. img {transform: scaleX(2.5) scaleY(.25)}

A and B

What is <ul>?

An HTML style for a type of list.

Which of the following is a good reason to use a datalist input type? A. Datalists are stored directly as MySQL database tables. B. It is possible to download datalists as XML files. C. Datalists save user's keystrokes D. Datalists are embedded from a MySQL database.

C. Datalists save user's keystrokes

The CSS code div {transform: scale(.5);} does which of the following? A. Moves the element up one-half line. B. Moves the element down one-half line. C. Decreases the size of an element. D. Increases the size of an element.

C. Decreases the size of an element.

Which of the following technologies lets you validate form data in a browser window rather than on a server? A. PHP B. ASP C. HTML5 D. Ruby

C. HTML5

Which color value system does CSS use for Web colors? A. Color wheels B. IP addresses C. Hexadecimal values D. CMYK

C. Hexadecimal values

What does the date input type do? A. It lets users select a date and time on which to receive site updates. B. It parses (separates) dates into this format: month-day-year. C. It allows users to select a date from a calendar in modern browsers. D. It converts dates into absolute values starting with the year 2000.

C. It allows users to select a date from a calendar in modern browsers.

What is the impact of the following code: .button-label:hover{background:pink;} ? A. It changes the displayed text in a button to "pink." B. It changes the border of a button to pink. C. It changes the background color of an element. D. It changes the displayed text color when you click the button.

C. It changes the background color of an element.

Which of the following is a good reason to use the color input type? A. It allows users to change the page background color to make it easier for them to read the type. B. It requires users to enter color values in hexadecimal format. C. It displays a color picker in modern browser windows. D. It defines text color

C. It displays a color picker in modern browser windows.

Which of the following is a major advantage of HTML5 video? A. All current-generation browsers support the HTML5 video format. B. It allows designers to easily customize player controls. C. It requires no plug-in player. D. Older versions of Internet Explorer support it.

C. It requires no plug-in player.

Which of these is a major advantage of the HTML5 email input type? A. It automatically formats email addresses in forms. B. It automatically inserts a user's email address in forms, so the user does not have to type it in. C. It requires that anything the user enters in that field must look like an email address. D. It automatically checks to see if a user's email address works.

C. It requires that anything the user enters in that field must look like an email address.

Which of these best describes the relationship between semantic markup and media queries? A. Semantic markup and media queries are two alternate approaches to styling pages for multiple viewports. B. Semantic markup should include media queries, but media queries alone do not solve the problem of designing for multiple viewports. C. Media queries should include semantic markup, but semantic markup alone does not solve the problem of designing for multiple viewports. D. Both semantic markup and media queries are supported without any additional scripting in Internet Explorer 8.

C. Media queries should include semantic markup, but semantic markup alone does not solve the problem of designing for multiple viewports.

What is the difference between an HTML5 element and an HTML5 tag? A. HTML5 no longer supports tags; it only supports elements. B. HTML5 has replaced div tags with structure elements. C. Most elements have an opening and closing tag. D. HTML5 no longer supports elements; it only supports tags.

C. Most elements have an opening and closing tag.

Which of the following style attributes can be used to display or hide an image. A. Color B. Image background color C. Opacity D. Link color

C. Opacity

Which of the following techniques is critical to maintaining a website? A. Upgrading your hosting service to support HTML5. B. Upgrading your hosting service to support CSS3. C. Organizing all site content into a single folder. D. Installing JavaScript

C. Organizing all site content into a single folder.

Which of the following is used to add interactivity to CSS transforms? A. The <p> tag B. The <h1> tag C. Pseudo-classes D. The <div> tag

C. Pseudo-classes

The HTML5 <section> element is always embedded in which of the following elements? A. The <img> element B. The <header> tag C. The <article> tag D. The <figcaption> tag

C. The <article> tag

What does this code tell you: <link href="full.css" rel="stylesheet" type="text/css" media="only screen and (min-width:960px)"> ? A. The full.css style sheet applies only to print output. B. The full.css style sheet applies in tablets that have a viewport narrower than 960 pixels. C. The full.css style sheet applies in full-sized browsers. D. The full.css style sheet applies only to mobile phones.

C. The full.css style sheet applies in full-sized browsers.

Which HTML5 video file format does every current-generation browser support? A. MP4 B. WebM C. There is no single HTML5 video file format that every current-generation browser supports. D. Ogg

C. There is no single HTML5 video file format that every current-generation browser supports.

CSS3 transforms can be used to do which of the following? A. They can be used to check an online shopper's order form for errors. B. They can be used to identify an online shopper's location. C. They can be used to allow online shoppers to "zoom in" on a clothing ad to see clothing detail. D. They can be used to check a shopper's past purchasing history and suggest additional purchases.

C. They can be used to allow online shoppers to "zoom in" on a clothing ad to see clothing detail.

Which of the following describes the role of CSS3 transition properties? A. They embed native video B. They process form data on a server. C. They define how interactive CSS properties transform. D. They present alternative page layouts for mobile devices.

C. They define how interactive CSS properties transform.

What is the standard width for page content wrapper div tags when you are designing for desktops and laptops? A. 780 pixels B. 1,080 pixels C. 480 pixels D. 960 pixels

D. 960 pixels

Which of these new HTML5 semantic tags is appropriate for holding groups of links to other sections of the page or to other pages altogether? A. <a> B. <href> C. target D. <nav>

D. <nav>

Which of the following design approaches is best suited to mobile devices? A. Low-contrast color schemes B. Multiple column layouts C. Flash video D. A high-contrast color scheme

D. A high-contrast color scheme

What is media="only screen and (max-width: 480px)"? A. A relative value B. An example of a media used by a style sheet. C. A way to size content based on the width of a user's browser window. D. A media query value for a smartphone.

D. A media query value for a smartphone.

What is @media? A. A relative value B. A way to size content based on the width of a user's browser window. C. An important element of mobile design. D. A selector used in a style sheet that defines multiple viewports.

D. A selector used in a style sheet that defines multiple viewports.

What is fluid design? A. An example of a media used by a style sheet. B. A media query value for a smartphone. C. An important element of mobile design. D. A way to size content based on the width of a user's browser window.

D. A way to size content based on the width of a user's browser window.

Which of the following is the best approach to defining a website color scheme? A. Apply a color scheme to an HTML file using RGB color values. B. Apply random colors using CMYK color values. C. Apply a color scheme to an HTML file using CMYK color values. D. Apply a color scheme to a CSS style sheet using hexadecimal color values.

D. Apply a color scheme to a CSS style sheet using hexadecimal color values.

Which of the following is an advantage of animation with CSS3 compared to embedding traditional video? A. CSS3 animation allows for better quality audio than traditional video. B. CSS3 animation supports more color than traditional video. C. CSS animation does not require knowledge of CSS. D. CSS3 animation is easier to create than traditional video.

D. CSS3 animation is easier to create than traditional video.

Which of the following can help you create a unique look and feel for a full-sized or mobile website? A. Reviews at Yelp B. SEO C. jQuery Mobile D. Goggle Fonts

D. Goggle Fonts

Which of the following improves search engine optimization (SEO)? A. Well-designed color schemes B. Custom fonts C. HTML5 audio or video D. HTML5 structure tags

D. HTML5 structure tags

What does this code do: .hide:checked + .slide {opacity: 0;} ? A. Adds 1 second of timing to a transition. B. Adds 2 seconds of timing to a transition. C. Shows elements when a checkbox is checked. D. Hides elements when a checkbox is checked.

D. Hides elements when a checkbox is checked.

Why is it important to use the font-family property? A. Font families include uppercase and lowercase characters, and you will want the option of using both kinds. B. Internet Explorer does not support some Web fonts. C. Commercial distributors always sell Web fonts in packs. D. If something goes wrong with the Web font, the font-family property provides a backup font.

D. If something goes wrong with the Web font, the font-family property provides a backup font.

What does the poster parameter do in HTML5 video? A. It allows a viewer to generate a poster for print or online distribution. B. It automatically generates a poster from a defined frame in a video. C. It customizes the control bar for a video. D. It displays an image when a video is not playing.

D. It displays an image when a video is not playing.

What does this parameter do: <video autoplay muted>? A. It turns off muting, so a video will play with the audio turned up. B. It allows users who do not have HTML5-compatible browsers to view the video quickly and easily. C. It turns off autoplay, so a video will not play until the user turns off the mute feature. D. It plays a video as soon as a page opens, but it makes sure the audio does not play.

D. It plays a video as soon as a page opens, but it makes sure the audio does not play.

Which of these provides different styling for different viewports while maintaining the same HTML file for each viewport? A. Native video B. HTML5 semantic tags C. CSS3 transforms D. Media queries

D. Media queries

Which of the following describes the default styling for the HTML5 <header> element? A. Most browsers display the <header> element in 24-pixel bold type. B. Most browsers display the <header> element in 22-pixel bold type. C. Most browsers display the <header> element in 18-pixel bold type. D. There is no default styling for the <header> element.

D. There is no default styling for the <header> element.

Which of the following identifies a way in which CSS transforms have impacted online sales? A. They allow online sellers to provide hi-res video. B. They allow designers to use digital audio. C. They expedite online data collection. D. They allow shoppers to zoom in on product details.

D. They allow shoppers to zoom in on product details.

Which of the following best describes the role of keyframes? A. Designers keyframes to different browser viewports. B. High-level coders use JavaScript to define keyframes. C. They define how data is validated. D. They create animation

D. They create animation

HTML5 semantic elements have which of these properties? A. Most of them provide built-in text formatting styles. B. They enforce defined color schemes. C. They provide built-in page layout styles. D. They define the meaning of the content within them.

D. They define the meaning of the content within them.

Which of these is a significant advantage of using CSS3 gradient backgrounds? A. They get better support from older browsers, especially Internet Explorer 6, 7, and 8. B. CSS3 backgrounds require no coding. C. They support more colors than image-based backgrounds do. D. They download faster than image-based backgrounds do.

D. They download faster than image-based backgrounds do.

How do ease transitions work? A. They always decrease opacity B. They change background color C. They always increase opacity D. They start slow, speed up, then slow down.

D. They start slow, speed up, then slow down.

What is the minimum number of stops required to define a CSS3 linear gradient? A. Five B. None; CSS3 linear gradients are not defined with stops C. Sixteen D. Two

D. Two

When you are creating a submit button, which of these words do you include in the program to indicate what text you want to display on the button? A. Enctype B. Label C. Script D. Value

D. Value

Which scenario is ideal for using HTML5 semantic elements? A. You are creating a page that most people will view in Internet Explorer 8. B. You are designing a page that is almost entirely native video. C. You are designing a page that is almost entirely a JavaScript slide show. D. You are designing a page that has substantial text content.

D. You are designing a page that has substantial text content.

Which of the following defines a CSS3 gradient that will work in Firefox? A. background: -ms-linear-gradient(left, red 0%, yellow 100%); B. background: -o-linear-gradient(45deg, red 0%, yellow 100%); C. background: -webkit-linear-gradient(45deg, red 0%, yellow 100%); D. background: -moz-linear-gradient(45deg, red 0%, yellow 100%);

D. background: -moz-linear-gradient(45deg, red 0%, yellow 100%);

This transform changes all four angles of an element. Choose all that apply. A. img {transform:skew(3deg,5deg);} B. img {transform:skew(1deg,2deg);} C. img {transform: rotate(-65deg);} D. img {transform: scaleX(2.5) scaleY(.25)}

A and B

In the context of web design, what is validation?

A way to ensure that your site\'s working the way you want it to.

What are semantic tags useful for? Choose all that apply. A. Making it easier for search engines to index your pages' content. B. Organizing your Web pages based on content, not form. C. Helping site visitors find a particular date and time. D. Inventing your own sets of class and ID styles. E. Creating Content that is compatible with all browsers.

A, B, and C

Which of these elements works best when you want to allow users to enter multiple lines of comments? A. <textarea> B. <button> C. <select> D. <input>

A. <textarea>

Which of the following CSS rules defines animation? A. @keyframes B. @move C. translate D. @animate

A. @keyframes

Which of these is a simple, script-free technique for collecting form data? A. A mail-to action B. PHP C. ASP D. All techniques require scripts if you want to collect form data.

A. A mail-to action

In the context of advanced responsive design, what is 100%? A. A relative value B. A way to provide distinct style sheets for different viewpoints. C. An important element of mobile design. D. An absolute value

A. A relative value

In the context of advanced responsive design, what is print? A. An example of a media used by a style sheet. B. A media query value for a smartphone. C. A selector used in a style sheet that defines multiple viewports. D. A way to size content based on the width of a user's browser window.

A. An example of a media used by a style sheet.

Which of these is a good reason to use CSS to animate objects? A. Animations grabs the attention of users. B. Animation replaces HTML C. Animation enhances a website's SEO rating. D. Animation speeds up pages

A. Animations grabs the attention of users.

How are keyframes handled in old browsers that do not support CSS3? A. Content is displayed but without animation. B. Form data is collected but without validation. C. Pages do not adapt to mobile device viewports. D. Users do not see the object to which a keyframe has been applied.

A. Content is displayed but without animation.

Which of the following best defines responsive design? A. Creating different CSS files for different viewports. B. Creating sites that work well in Internet Explorer 8. C. Allowing for user feedback through forms. D. Defining widths in percentages instead of pixels.

A. Creating different CSS files for different viewports.

What does this code do: <link href="style.css" rel="stylesheet" type="text/css" media="only screen and (min-width:481px) and (max-width:960px)">? A. Defines a media query for a CSS file that applies to tablets. B. Defines a media query for mobile phones. C. Defines a media query for a CSS file that applies to laptops and desktops. D. Defines a style sheet for printers.

A. Defines a media query for a CSS file that applies to tablets.

Which of the following best describes how designers apply styling to HTML5 semantic tags? A. Designers create CSS selectors (rules) that define how each tag will look. B. A centrally distributed style sheet provides styles for HTML5 semantic tags. C. Each browser provides its own styling for HTML5 semantic tags. D. All HTML5 semantic tags have built-in styling.

A. Designers create CSS selectors (rules) that define how each tag will look.

Effective Web color schemes have how many colors (not counting neutral colors like black, white, and gray)? A. Five B. There is no set number of colors in an effective website color scheme. C. Twelve D. Between six and ten

A. Five

If you wanted to create a slide show that could run in any browser, which would be the best technique to use? A. HTML5 and CSS3 transforms and transitions. B. PHP C. Semantic markup D. Form input types

A. HTML5 and CSS3 transforms and transitions.

Which of the following is a significant drawback to using HTML5 and CSS3 for slideshows instead of an off-the-shelf purchased JavaScript-based widget? A. HTML5 and CSS3-based slideshows generally require some knowledge of HTML to update. B. CSS3 is not supported in every browser. C. HTML5 and CSS3 slideshows cannot use any transition effects. D. HTM5 and CSS3 slideshows require much more high-level coding to create compared to JavaScript slideshows.

A. HTML5 and CSS3-based slideshows generally require some knowledge of HTML to update.

Which of the following describes this value: 157.166.226.26 ? A. It looks like a website IP address. B. It looks like a domain name. C. It looks like an HTML version. D. It looks like a Web color hexadecimal value.

A. It looks like a website IP address.

How will the following code display in a browser: <!--left-column ID style is floated left and used for navigation-->? A. It will not display in a browser. B. This code creates a navigation bar. C. It will display as a left-floated column. D. The display depends on the definition of the left-column ID style.

A. It will not display in a browser.

What technology do Web designers use to create play/pause buttons for HTML5 video? A. JavaScript B. jQuery Mobile C. PHP D. Java

A. JavaScript

When you use CSS3 to create a slide show, you customize the images that display in that slide show by editing which of the following elements? A. The HTML code B. HTML5 input types C. The HTML5 <video> tag D. The content is not customizable.

A. The HTML code

What is the actual transition that takes place when a user clicks on a new slide button? A. The opacity changes B. The position changes C. The overflow changes

A. The opacity changes

Which of the following moves an element? A. The transform and translate CSS3 properties. B. The move CSS3 property C. The relocate and change CSS3 properties. D. The CSS3 opacity value

A. The transform and translate CSS3 properties.

Which of these is a good reason to use Web-based fonts? A. They work in any browsing environment. B. Web fonts are available in a wider range of colors than other fonts are. C. Adobe gets a royalty on every Web-based font, and it is reasonable for them to recoup some profit from their investment. D. As a general aesthetic rule, every Web page should display at least a dozen fonts.

A. They work in any browsing environment.

When is it appropriate to use the doctype declaration <!DOCTYPE HTML> ? A. This doctype declaration is appropriate for any HTML document. B. This doctype declaration is appropriate only in HTML documents that use new HTML5 semantic tags. C. This doctype declaration is appropriate only for HTML files that will not be opened in older versions of Internet Explorer. D. This doctype declaration is appropriate only for Web pages that use Western alphabets.

A. This doctype declaration is appropriate for any HTML document.

Which of the following is an important reason to test a website on a server, not just on your computer? A. To test scripts that manage form data. B. You can only test JavaScript interactivity on a server. C. To test HTML5 form validation. D. To test CSS3 effects and transforms.

A. To test scripts that manage form data.

What are CSS transitions? A. Tools for defining animation. B. Techniques for making pages adapt to mobile devices. C. Techniques for managing data that visitors to your website submit to you through various interactive forms. D. Techniques for validating form data before a user submits a form.

A. Tools for defining animation.

Which of the following CSS transforms moves an element? A. Translate B. Move C. Skew D. Scale

A. Translate

A form output element lets you add a simple calculator to your site. A. True B. False

A. True

Advance web design requires testing on a remote hosting server. A. True B. False

A. True

Data lists are great for visitors who have trouble with spelling. A. True B. False

A. True

Every form must have a submit button. A. True B. False

A. True

Responsive design changes depending on size of the user's browsing window. A. True B. False

A. True

You can set up your site to select a check box by default. A. True B. False

A. True

You can use placeholder text to supplement a form label or instead of a form label. A. True B. False

A. True

Which of the following style definitions creates a CSS style that applies to both <h1> and <h2> elements? A. h1,h2 {margin-left:15px;} B. h1 h2 {margin-left:15px;} C. h1 and h2 {margin-left:15px;} D. h1 {margin-left:15px;}

A. h1,h2 {margin-left:15px;}

Which of the following makes pages load faster in mobile devices? A. jQuery Mobile B. Color schemes C. Slide shows D. CSS3 transforms

A. jQuery Mobile

What is /* The left-column ID style is floated left */?

An example of a comment in CSS3.

What is <!--The clear class style clears (removes) float-->?

An example of a comment in HTML5.

What is background-color?

An example of a property in CSS3.

What is .box:hover {background-color: white;opacity: 1;}?

An example of a psuedo-class style in CSS3.

Which of these form elements is best for collecting email addresses? A. A submit button B. An input element C. A check box D. A set of radio buttons

B. An input element

This transform resizes an element. Choose all that apply. A. img {transform:skew(1deg,2deg);} B. img {transform: scaleX(2.5) scaleY(.25)} C. img {transform: scale(5);} D. img {transform: scale(.75);}

B, C, and D

Which of the following HTML5 semantic tags could you use to define content that supplements either an article or a section? A. <img> B. <aside> C. <time> D. <nav>

B. <aside>

Which of these would be especially helpful for mobile viewers at a website? A. Defining all link states (unvisited, visited, hovered, and active) with the same color. B. A large link button C. Applying HMTL5 semantic elements. D. Native video

B. A large link button

Which type of CSS3 gradient defines a gradient blend that begins on the left side of an element, follows a straight line, and ends on the right side of the element? A. Interactive CSS3 gradients B. A linear gradient C. A radial gradient D. An angled gradient

B. A linear gradient

Which of these form field types is a good option if you want visitors to choose one and only one option from a set of choices in a form? A. A series of check boxes. B. A select menu C. A text area element D. A form element

B. A select menu

Which of the following can be built with just HTML5 and CSS3 transform and transition properties? A. Back end data form management. B. A slideshow C. Form input validation D. JavaScript widgets

B. A slideshow

What is a low-contrast color scheme? A. An example of a media used by a style sheet. B. A style best suited to full-screen devices. C. An important element of mobile design. D. A media query value for a smartphone.

B. A style best suited to full-screen devices.

What is responsive design? A. An example of a media used by a style sheet. B. A way to provide distinct style sheets for different viewpoints. A selector used in a style sheet that defines multiple viewports. A way to size content based on the width of a user's browser window.

B. A way to provide distinct style sheets for different viewpoints.

Which of the following attributes makes websites more accessible to users who have disabilities? A. Color schemes with the appropriate number of colors. B. ALT properties in image tags. C. Tested links D. A registered domain name.

B. ALT properties in image tags.

Which of the following is more of a challenge in mobile design than in designing for a full-size device? A. Support for HTML5 B. Accessible color schemes C. Support for CSS3 D. Support for HTML5 native video

B. Accessible color schemes

In the context of advanced responsive design, what is 960px? A. An important element of mobile design. B. An absolute value C. A media query value for a smartphone. D. A style best suited to full-screen devices.

B. An absolute value

What does the following code do: animation:shape-shift 2s 5; /* W3C */? A. Applies a shape-shift transform with a duration of 2 seconds, and 5 repeats. B. Applies an animation called shape-shift with a duration of 2 seconds and 5 repeats. C. Applies an animation called shape-shift with a duration of 2 repeats and 5 seconds. D. Defines a keyframe with a duration of 2 seconds and 5 repeats.

B. Applies an animation called shape-shift with a duration of 2 seconds and 5 repeats.

Which of the following techniques allows a user to change the appearance of a form label by hovering over it or clicking it? A. Semantic markup B. CSS3 transforms and transitions C. Media queries D. The <hover> and <click> HTML tags.

B. CSS3 transforms and transitions

Which of the following techniques allows you to create interactive animation with just HTML5 and CSS3? A. Embedding native video B. CSS3 transforms and transitions C. Server-side PHP coding D. JavaScript

B. CSS3 transforms and transitions

What is the advantage of using a datalist instead of a select menu? A. Select menus require JavaScript B. Datalists prompt users with options after the user types only the first few letters of an answer. C. Select menus have been discontinued in HTML5. D. Datalists work in any browser, while select menus work only in modern browsers that support HTML5.

B. Datalists prompt users with options after the user types only the first few letters of an answer.

All modern browsers support all validation rules. A. True B. False

B. False

Every form must have a reset button. A. True B. False

B. False

The best way to collect form data on a server for a mailing list is with Javascript. A. True B. False

B. False

To web designers, coherence refers to how often certain keywords appear in your site text. A. True B. False

B. False

Unlike a data list, a select menu can filter results. A. True B. False

B. False

You can collect email addresses using the email element (tag). A. True B. False

B. False

Which of the following sites tells you if a domain name is available? A. Adobe's Kuler site B. Networksolutions.com C. Any link-checking site D. The WC3 Site's Domain Name pages

B. Networksolutions.com

Which video player plug-in must a user have if he or she wants to view HTML5 video? A. QuickTime Player B. No player is required C. Flash Player D. Windows Media Player

B. No player is required

Which of these formats does HTML5 video support? A. RM B. Ogg C. MOV D. WMV

B. Ogg

Which of these technologies lets you validate form field input on a server rather than in a browser window? A. HTML5 B. PHP C. jQuery D. JavaScript

B. PHP

Which of the following values tells a browser how to submit a form? A. Redirect B. Post C. Edit D. Upload

B. Post

Which HTML5 video parameter allows videos to download even before the video starts to play? A. Autoplay B. Preload C. Controls D. Download

B. Preload

Which of the following is accomplished by applying a negative Y value for a translate transform to an element? A. The element moves left B. The element moves up C. The element moves down D. The element moves right

B. The element moves up

What change takes place to an object when the CSS style transform: rotate(-45deg) is applied to it? A. The object rotates 45 degrees clockwise. B. The object rotates 45 degrees counter-clockwise. C. The opacity of the object changes 45 degrees. D. The opacity of the object changes by a negative value of 45 degrees.

B. The object rotates 45 degrees counter-clockwise.

Which of the following is a valid reason to apply Web fonts? A. Web fonts provide more options for hexadecimal color values. B. They allow designers to use fonts that are not installed on a user's computer. C. Web fonts are actually graphic images, so they are supported in any environment. D. Web fonts download faster than fonts installed on a user's computer do.

B. They allow designers to use fonts that are not installed on a user's computer.

What is the significance of "2s" and "5" in this code: animation:shape-shift 2s 5;? A. They define a duration of 5 seconds, and 2 repeats for an animation. B. They define a duration of 2 seconds, and 5 repeats for an animation. C. They link the animation to an @keyframe rule. D. They define the name of the animation.

B. They define a duration of 2 seconds, and 5 repeats for an animation.

Which of these is a key advantage of using HTML5 semantic tags? A. They make pages more accessible in Internet Explorer 8. B. They make page structuring easier for designers. C. Nearly all HTML semantic tags come with built-in styling. D. They replace traditional HTML elements like <h1> and <p>.

B. They make page structuring easier for designers.

Why are radio buttons a more useful element in building slideshows than checkboxes? A. Radio buttons are supported in browsers, checkboxes are not. B. Users can only select one radio button in a group of radio buttons. C. Radio buttons can be connected to label style but checkboxes cannot. D. Radio buttons were specifically designed for slideshow.

B. Users can only select one radio button in a group of radio buttons.

Which of the following is a valuable site for testing code? A. Any online link-checking site B. WC3's validation pages C. Adobe Kuler D. Any online spell-checking site

B. WC3's validation pages

Why do websites have to be hosted by special Web hosting servers? A. Web hosting servers automatically provide link testing, so you do not have to spend your time checking and rechecking every link on your site. B. Web hosting servers support all the features of Web pages, including the ability to manage data posted in a form. C. Web hosting servers check site accessibility, which means that visitors with text-to-speech software and other innovations can use your site just as well as any other user can. D. Web hosting servers automatically check code, which saves you from embarrassing errors, reduced functionality, and user complaints.

B. Web hosting servers support all the features of Web pages, including the ability to manage data posted in a form.

Which of these is a major feature of CSS3 gradient backgrounds? A. They require the use of SVG format image files. B. You can create them without using image files. C. You need to use animated GIF image files with them. D. They require the use of vector image files.

B. You can create them without using image files.

What is the difference between an ID style and a class style? A. Class styles can be used to define a box background color, while ID styles cannot. B. You can use a particular ID style only once in an HTML document, but you can use a class style multiple times. C. Class styles apply to text, while ID styles define boxes. D. There is no difference. Class styles and ID styles are different terms for the same element.

B. You can use a particular ID style only once in an HTML document, but you can use a class style multiple times.

Which of the following HTML5 parameters displays text in a text field before a user enters anything in that field? A. prompt B. placeholder C. datalist D. autocomplete

B. placeholder

This transform turns an element on its axis. Choose all that apply. A. img {transform: translateX(100px) translateY(300px);} B. img {transform: translateX(-200px) translateY(-400px);} C. img {transform: rotate(45deg);} D. img {transform: rotate(-65deg);}

C and D

Which of the following elements is essential for a form to work? A. <select> B. <data> C. <form> D. <input>

C. <form>

When you design a page that includes semantic tags, which of these elements would you use to define a wrapper or container that constrains the width of the entire page? A. An <aside> tag B. An <article> tag C. A <div> tag D. A <header> tag

C. A <div> tag

What is the difference between a client-side script and a server-side script? A. You need a remote server to test a client-side script. B. Client-side scripts are simple enough for clients and other inexperienced Web users to understand. C. A client-side script runs in a browser, and a server-side script runs on a server. D. A client-side script is for managing data submitted in a form, and a server-side script is for managing different programming languages.

C. A client-side script runs in a browser, and a server-side script runs on a server.

Which of these should you use to tell a user what to enter into a form field? A. An autoprompt element B. An autocorrect element C. A label element D. A length element

C. A label element

Which of the following page elements could you create with JavaScript? A. An effective color scheme B. Back-end server scripts to manage form data C. A slide show D. An inviting page layout

C. A slide show

What does this code tell you: @media only screen and (min-width : 481px)? A. A style selector is being defined for smartphones. B. A style sheet is being defined for a tablet, desktop, or laptop computer. C. A style selector is being defined for a tablet, desktop, or laptop computer. D. A style sheet is being defined for mobile phones.

C. A style selector is being defined for a tablet, desktop, or laptop computer.

Which of these buttons is essential for a form to function? A. A radio button B. A hidden button C. A submit button D. A reset button

C. A submit button

What is a high-contrast color scheme? A. An absolute value B. A way to size content based on the width of a user's browser window. C. An important element of mobile design. D. A relative value

C. An important element of mobile design.

Which browser supports the following CSS3 code: background: linear-gradient(to bottom, red 0%,yellow 100%); ? A. Chrome and other Web-based applications from Google and Webkit. B. Safari, the Web browser developed by Apple and included with the Mac OS X and iOS operating systems. C. At this point, no browser supports this generic CSS3 code, but browsers may support it in future. D. Firefox and other Web-based applications from Mozilla, a free software community.

C. At this point, no browser supports this generic CSS3 code, but browsers may support it in future.

Which of the following explains the significance of this CSS code: -webkit-animation:shape-shift 2s 5; /* Safari & Chrome */ A. This code is necessary for CSS3 animation to work in any environment using Safari and Chrome. B. This code prevents users from experiencing animation. C. This code was necessary before CSS3 animation was uniformly supported in all browsers. D. This code prevents CSS3 animation from working in any environment using Safari and Chrome.

C. This code was necessary before CSS3 animation was uniformly supported in all browsers.

Which of the following is a good reason to use keyframes? A. To protect a user's login credentials. B. To make a page response. C. To create animation with CSS3. D. To validate user form input.

C. To create animation with CSS3.

Where would you use an @media selector? A. To open media files in a new browser window. B. To embed native audio or video in HTML5. C. To define multiple styles for different viewports in a single CSS file. D. To define multiple styles for different viewports in multiple CSS files.

C. To define multiple styles for different viewports in a single CSS file.

What is the effect of the following style definition: .box:hover {background-color:white;} ? A. When someone hovers a cursor over an element that has a white background, that element turns into a box. B. Hovered-over links appear with a white background. C. When someone hovers a cursor over a box, the box's background turns white. D. The box opacity changes from 50% to 100% (fully opaque).

C. When someone hovers a cursor over a box, the box's background turns white.

What is the effect of a CSS style with this coding: #banner h1 {color: white;}? A. A white color is applied to ID styles named banner that are inside an <h1> element. B. White color is applied to both <h1> elements and ID styles named banner. C. White color is applied to <h1> elements within an ID style named banner. D. The style definition has no effect because the syntax is incorrect.

C. White color is applied to <h1> elements within an ID style named banner.

Which of these is a good reason to use HTML5 video? A. HTML5 video looks, feels, and plays the same in every browser. B. HTML5 video formats download faster than other formats do. C. You can define posters that display before the video plays. D. HTML5 provides a wide range of custom video player skins.

C. You can define posters that display before the video plays.

Which of the following input types defines a phone number? A. phone B. number C. tel D. mobile

C. tel

What does @charset "UTF-8"; do?

It tells browsers to interpret a wide range of characters and symbols from different alphabets.

What does <div class="clear"></div> do?

It tells browsers to stop doing something.

What does <!DOCTYPE HTML> do?

It tells browsers what kind of file they are dealing with.

Describe how "accessible" works in the context of web design.

This kind of site works well even for vision-impaired or hearing-impaired users.


Set pelajaran terkait

chp 1 leader, chp 2 leadership, cpt 3 lship, cp 4 ldership, cp 5 ldership, cp 6 ldership, cp 7 ldership, cp 8 ldership, cp 9 ldership, cp 10 ldership

View Set

Sonography exam review chapter 11 spleen

View Set

Environmental Science Final Exam Study Guide

View Set

real estate practice (missed questions pt3)

View Set

*NUB 330 Ch. 3: Assessment and Health Promotion (Maternal Child Nursing Care)*

View Set

Intro to Business: Final exam study guide

View Set

prepU ch 13 Fluid and Electrolyte

View Set