



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Unit 5 Quizes - Web design CodeHS revision test questions
Assume you have two files for your website, and these files exist in the same folder: home.html style.css Which of the following is the proper way to apply the CSS code inside style.css to the home.html file?: Inside home.html:
Assume you have two files for your website, and these files exist in the same folder: index.html about.html Which of the following is the proper way to link to the about.html page from the index.html page?: About This Site
What are IFrames?: HTML elements and pages embedded inside of other HTML pages
True or False: It is possible to embed any website inside IFrames.: False
What is the function of the div tag?: To define a section of an HTML page To group a block of elements together to format them with CSS To eflciently apply the same style to several ditterent elements All of the above
Which of the following correctly uses div to style multiple elements the same way?: Welcome
Hi, welcome to my page.
What is the difference between and ?: is used to group and style inline elements, while creates a line break
Which of the following selects all p tags with the class alert and makes them red?: p.alert { color: red; }
How can I select all h1 tags that are immediate children of div tags?: div > h1 { ... }
What is the reasoning behind the Don't Repeat Yourself principle?: Repeated code makes it harder to read and edit
window.You will need to refer to it to answer the following questions. What kind of element has the ID search_form_input_homepage ?: in the search bar
True
Which of the following applies a grayscale filter to all images?: img { filter: grayscale(100%); }
Which of the following defines an animation increase-font that increases the font size from 5px to 20px?: @keyframes increase-font { from {font-size: 5px;} to {font-size: 20px;} }
Which of the following applies an animation named grayscaleFilter over 10 seconds to every img tag?: img { animation: grayscaleFilter 10s; }
img { width: 100px; height: 100px; transition: width 2s, height 2s; } img:hov-er { width: 200px; height: 200px; } What would be the resulting difference if the line transition: width 2s, height 2s; was removed from the first CSS rule?: There would no longer be a smooth transition for the image:hover rule.
True or False: You can only transition one property at a time.: False You can transition multiple properties by separating them with a comma.
Assume you have two files for your website, and these files exist in the same folder: about.html style.css Which of the following is the proper way to apply the CSS code inside style.css to the about.html file?: Inside about.html:
You are trying to apply the same style to several different elements in a block, with line breaks before and after. Which tag should you use?:
Which of the following selects all elements with the class footer that are inside of divs?: div .footer { ... }