Module Quiz Introduction to HTML and CSS
Week- 2 Module Quiz Introduction to HTML and CSS
1.
Question 1
Which two elements should be added to the html element to make the structure of an HTML document?
That’s correct! The head element is added to the html element.
That’s correct! The body element is added to the html element.
4.
Question 4
How many columns exist on the following HTML table?
That’s correct. There are 2 columns and 3 rows in this HTML table.
====================================================================
8.
Question 8
Based on the following CSS, what will be the margin-box width for div elements?
That’s correct. The margin-box width = content width + padding width + border width + margin width. In this scenario, the margin-box width is 30 pixels.
====================================================================
9.
Question 9
True or false. In document flow, block-level elements always start on a new line.
That’s correct. Block-level elements always start on a new line.
====================================================================
10.
Question 10
Based on the following CSS code, how will the text be aligned for the p element?
That’s correct. The justify value will spread out the text within the p element so that every line has the same width.
====================================================================
2.
Question 2
When using the anchor tag <a>, which attribute determines where the hyperlink links to?
That’s correct! The href attribute specifies where the hyperlink links to. <a href=”index.html”>Link</a>
====================================================================
3.
Question 3
When adding an image to a web page, which of the following is the correct HTML tag?
That’s correct. The img tag adds an image to a web page. <img src=”image.jpg”>
====================================================================
5.
Question 5
When an HTML form is submitted to a web server, which HTTP methods can be used? Select all that apply.
That’s correct. A GET method can be used for the form submission. <form method=”get”>
That’s correct. A POST method can be used for the form submission. <form method=”post”>
====================================================================
6.
Question 6
For the following HTML code, which CSS selectors can be used to select the h1 element? Select all that apply.
That’s correct. The element selector can be used to select the h1 element based on its h1 tag.
That’s correct. The ID selector can be used to select the h1 element based on its ID attribute.
7.
Question 7
In the following CSS code, what is the color: purple; part known as?
That’s correct. The CSS properties are defined inside the curly brackets in a CSS rule.