Web Application Technologies and Django | Week 4

Course Name: Django for Everybody

Sub-course: Web Application Technologies and Django

Course Link: Django for Everybody

Sub-course Link: Web Application Technologies and Django

These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz


CSS Quiz

Q1. Which of the following is NOT a way to include CSS in an HTML page?

  • Using the <font>tag to enclose other tags
  • Directly on an HTML tag using the style= attribute
  • External Style Sheet
  • Using the <style> tag inline in the HTML document

Answer: Using the <font>tag to enclose other tags


Q2. Which HTML tag does nothing to the text it surrounds and has as its sole purpose to create a “handle” so as to be able to apply CSS to the text.

  • <handle>
  • <span>
  • <embed>
  • <h1>

Answer: <span>


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz


Q3. Why is there more than one font listed in the following CSS rule?

  • They are listed in descending preference order if the fonts specified are not present in the browser
  • They are the preferred fonts for Windows, Mac, Linux, and “Other” systems
  • This is a syntax error, square braces [ ] should be used for the CSS rule
  • This is a syntax error, the rule should start with “font-name”

Answer: They are listed in descending preference order if the fonts specified are not present in the browser


Q4. Which CSS selector controls how a link (anchor tag) looks while the user mouses over the link (i.e., while hovering)?

  • a:hover
  • hover
  • :hover

Answer: a:hover


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz

See also  Using JavaScript and JSON in Django | Week 1

Q5. Which of these CSS rules make text appear in a bold face font?

  • strong: yes
  • font-style: bold
  • font-weight: bold
  • font-bold: on
  • font-expand: 10%

Answer: font-weight: bold


Q6. What CSS selector would style a tag that looks like this:

  • .puppy { …
  • puppy !important { …
  • %puppy { …
  • puppy { …
  • _puppy { …

Answer: .puppy { …


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz


Q7. What CSS rule allows you include a tag in markup but hide it from view in the browser?

  • font-size: -1px;
  • right: 0;
  • status: off;
  • display: block;
  • visibility: hidden;

Answer: visibility: hidden;


Q8. Which of the following CSS selectors is between the content area and the border? (CSS box model)

  • edge
  • margin
  • pixels
  • perimeter
  • padding

Answer: padding


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz


Q9. What tag is used to import a style sheet into an HTML document?

  • <link
  • link
  • <link>

Answer: <link>


Q10. Which of the following statements are true?

  • A tag can only have a “class” attribute or an “id” attribute but not both
  • It is recommended to use an “id” attribute many times in an HTML file
  • An “id” attribute should only be used once in an HTML file
  • A “class” attribute can only be used once in an HTML file
  • A “class” attribute can be used many times in an HTML file

Answer: An “id” attribute should only be used once in an HTML file, A “class” attribute can be used many times in an HTML file


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz

See also  Using JavaScript and JSON in Django | Week 2

Q11. For the following HTML, which description of the “style=” attribute is most accurate?

  • It is an HTML syntax error and will be ignored
  • It changes the color of the tab for this page in the browser to be red
  • It allows the application of the specified CSS rule to the content of the paragraph
  • It contains JavaScript to be executed when the user’s mouse hovers over the paragraph
  • It changes the background color of the paragraph to red

Answer: It allows the application of the specified CSS rule to the content of the paragraph


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz


More Weeks of this course: Click Here

More Coursera Courses: http://progiez.com/coursera


These are answers of Web Application Technologies and Django Week 4 Answers Coursera Quiz