Introduction to Front-End Development

Module Quiz Introduction to HTML and CSS

Week- 2 Module Quiz Introduction to HTML and CSS

Question 1

Which two elements should be added to the html element to make the structure of an HTML document?

1 / 1 point

That’s correct! The head element is added to the html element.

That’s correct! The body element is added to the html element.

====================================================================

Question 4

How many columns exist on the following HTML table?

1 / 1 point

That’s correct. There are 2 columns and 3 rows in this HTML table.

====================================================================

Question 8

Based on the following CSS, what will be the margin-box width for div elements?

1 / 1 point

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.

====================================================================

Question 9

True or false. In document flow, block-level elements always start on a new line.

1 / 1 point

That’s correct. Block-level elements always start on a new line.

====================================================================

Question 10

Based on the following CSS code, how will the text be aligned for the p element?

1 / 1 point

That’s correct. The justify value will spread out the text within the p element so that every line has the same width.

====================================================================

 

Question 2

When using the anchor tag <a>, which attribute determines where the hyperlink links to?

1 / 1 point

That’s correct! The href attribute specifies where the hyperlink links to. <a href=”index.html”>Link</a>

====================================================================

Question 3

When adding an image to a web page, which of the following is the correct HTML tag?

1 / 1 point

That’s correct. The img tag adds an image to a web page. <img src=”image.jpg”>

====================================================================

Question 5

When an HTML form is submitted to a web server, which HTTP methods can be used? Select all that apply.

1 / 1 point

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”>

====================================================================

Question 6

For the following HTML code, which CSS selectors can be used to select the h1 element? Select all that apply.

1 / 1 point

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.

====================================================================

Question 7

In the following CSS code, what is the color: purple; part known as?

1 / 1 point

That’s correct. The CSS properties are defined inside the curly brackets in a CSS rule.

Similar Posts