Week- 2 Module Quiz Introduction to HTML and CSS
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.
How many columns exist on the following HTML table?
That’s correct. There are 2 columns and 3 rows in this HTML table.
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.
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.
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.
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>
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”>
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”>
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.
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.