Docsity

Unit 5 Quizes - Web design CodeHS revision test questions, Exams of Advanced Education

Toggle sidebar
bg1
1 / 6
Unit 5 Quizes - Web design CodeHS revision test questions
1. 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:
<head>
<link
rel="stylesheet"
type="text/css"
href="style.css">
</head>
2. 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?:
<a href="about.html">About This Site</a>
3.
What
are
IFrames?:
HTML
elements
and
pages
embedded
inside
of
other
HTML
pages
4. True or False: It is possible to embed any website inside IFrames.:
False
5.
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
6.
Which of the following correctly uses div to style multiple elements the
same
way?:
<div
class="intro">
<h2>Welcome</h2>
<p>Hi,
welcome
to
my
page.</p>
</div>
7.
What is the difference between <span> and <div>?: <span> is used to group
and style
inline
elements,
while
<div>
creates
a
line
break
8. Which of the following selects all p tags with the class alert and
makes them
red?: p.alert {
color:
red;
}
9. How can I select all h1 tags that are immediate children of div tags?:
div > h1 {
...
}
10.
What is the reasoning behind the Don't Repeat Yourself
principle?: Repeated
code
makes
it
harder
to
read
and
edit
pf3
pf4
pf5

Partial preview of the text

Download Unit 5 Quizes - Web design CodeHS revision test questions and more Exams Advanced Education in PDF only on Docsity!

Unit 5 Quizes - Web design CodeHS revision test questions

  1. 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:

  2. 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

  3. What are IFrames?: HTML elements and pages embedded inside of other HTML pages

  4. True or False: It is possible to embed any website inside IFrames.: False

  5. 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

  6. Which of the following correctly uses div to style multiple elements the same way?: Welcome

    Hi, welcome to my page.

  7. What is the difference between and ?: is used to group and style inline elements, while creates a line break

  8. Which of the following selects all p tags with the class alert and makes them red?: p.alert { color: red; }

  9. How can I select all h1 tags that are immediate children of div tags?: div > h1 { ... }

  10. What is the reasoning behind the Don't Repeat Yourself principle?: Repeated code makes it harder to read and edit

  1. What are some ways to cut down on repetitive code in your website?: Group together multiple selectors with commas Strategically plan ahead to make sure the site is coded concisely

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

  1. Open https://start.duckduckgo.com in a new tab or new window.You will need to refer to it to answer the following questions. What is the ID of the body tag?: pg-index
  2. Open the website for the Nelson Mandela Metropolitan Art Museum in a new tab or window (link below). http://www.artmuseum.co.za/ Did you open the website in a new tab or window?: Yes
  3. Inspect the menu item that says "The Museum" at the top of the page. What did this web developer use to create the navigation bar?:
  4. Use the inspector to inspect one of the exhibit tiles at the bottom of the page. What did this web developer use to create these tiles?:
  5. Inspect the large picture in the middle of the page. What class does this element have?: header
  6. Open Calvin's homepage in a new tab or window: Calvin's Homepage Have you opened Calvin's Homepage in a new tab or window?: Yes
  7. What is the value for the attribute display for the tag that says "Wel-come to Calvin's Homepage"?: block
  8. What is the font-style of the span with the ID css?It can be found in the second paragraph, around the word "CSS".: italic
  9. Inspect the picture of Karel, which is the first picture on the page.When you look at its style, you should see it has the width:250pxClick on 250px. Change it to 800px. What happens?: The picture gets bigger.
  10. Inspect the body. What is the background color?: #8CF5F
  11. Which of the following is not a part of the box model?: background
  12. For the given div, what is the size of the right padding? div { width: 10px; height: 10px; padding: 15px 10px 5px 20px; }: 10px
  13. True or False: An image can have more than one CSS filter.:

True

  1. Which of the following applies a grayscale filter to all images?: img { filter: grayscale(100%); }

  2. 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;} }

  3. Which of the following applies an animation named grayscaleFilter over 10 seconds to every img tag?: img { animation: grayscaleFilter 10s; }

  4. 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.

  5. True or False: You can only transition one property at a time.: False You can transition multiple properties by separating them with a comma.

  6. 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:

  7. 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?:

  8. Which of the following selects all elements with the class footer that are inside of divs?: div .footer { ... }