introduction to front end development coursera week 2 quiz answers
Knowledge Check - Getting started with HTML
1. An HTML document begins with ______________.
- The html tag
- The DOCTYPE declaration
- The head tag
- The body tag
2. To display a link to another HTML document, the ______________ tag is used.
- link
- html
- anchor (a)
- img
3. To add an image to a webpage, the ______________ tag is used.
- img
- image
- anchor (a)
- link
4. To represent the HTML document in JavaScript, the browser builds _____________.
- an HTML Element Model
- an HTML Script
- Document Object Model
5. Which of the following answer choices improves web accessibility for people with disabilities? Select all that apply.
- Correct HTML structure
- Accessible Rich Internet Application (ARIA) techniques
- Appropriate use of HTML elements
Knowledge check: CSS basics
6. To reference a CSS file in an HTML document, you use the ______________ tag.
- head
- script
- style
- link
7. In the following CSS rule, the `h1` part of the rule is called the ______________.
- Box model
- Selector
- Inheritance
- HTML
8. What is the padding box width of the following CSS rule?
- 10 pixels
- 30 pixels
- 50 pixels
- 70 pixels
9. Which CSS property and value change the HTML element to a block-level element?
- align-content
- content
- list-style
- display: block
10. Which CSS property and value change the text to center alignment?
- text-align: center
- align-self
- vertical-align
- align-items
Module Quiz: Introduction to HTML and CSS
11. Which two elements should be added to the html element to make the structure of an HTML document?
- <p>
- <div>
- <head>
- <body>
12. When using the anchor tag , which attribute determines where the hyperlink links to?
- link
- src
- href
13. When adding an image to a web page, which of the following is the correct HTML tag?
- <img>
- <image>
- <link>
15. When an HTML form is submitted to a web server, which HTTP methods can be used? Select all that apply.
- DELETE
- POST
- PUT
- GET
16. For the following HTML code, which CSS selectors can be used to select the h1 element? Select all that apply.
- Element Selector
- ID selector
- Class Selector
- Descendant Selector
17. In the following CSS code, what is the color: part known as?
- CSS Selector
- CSS Attribute
- CSS Rule
- CSS Property
18. Based on the following CSS, what will be the margin-box width for div elements?
- 10 pixels
- 20 pixels
- 30 pixels
- 40 pixels
19. True or false. In document flow, block-level elements always start on a new line.
- True
- False
20. Based on the following CSS code, how will the text be aligned for the p element?
- The text will be spread out so that every line of the text has the same width within the p element.
- The text will be aligned to the left of the p element.
- The text will be aligned to the right of the p element.
- The text will be centered inside the p element.