All Coursera Quiz Answers

Module quiz: HTML deep dive Quiz Answers

In this article i am gone to share Coursera Course: HTML and CSS in depth by Meta Week 1 | Module quiz: HTML deep dive Quiz Answers with you..

Enroll Link: HTML and CSS in depth


 

Module quiz: HTML deep dive Quiz Answers

Question 1)
You are including a blog post on your web page. You decide to place the content inside an <article> tag. What are the advantages of using an <article> tag instead of a <div> tag in the scenario? Select all that apply.

  • It better describes the meaning of the element to accessibility software
  • It allows the browser to render the element faster.
  • It allows search engines to better rank your pages.

Question 2)
What are the tags that define the basic structure of an HTML page and which order is semantically correct?

  • <header>, <body>, <main>
  • <header>, <details>, <footer>
  • <header>, <main>, <footer>
  • <h1>, <body>, <footer>

Question 3)
Which of the following meta tags are recommended for modern web pages? Select all that apply.

  • Keywords
  • Viewport
  • Author
  • Description

Question 4)
Your web page’s web address is appearing incorrectly on social media platforms. Which of the following Open Graph Protocol tags should be added to your web page to fix this?

  • Description
  • URL
  • Title

Question 5)
You are tasked with building a login form for a website. The project manager has asked what type of validation you recommend implementing for both security and a good user experience: client-side validation or server-side validation. Which do you recommend?

  • Recommend only client-side validation
  • Recommend only server-side validation
  • Recommend both client-side and server-side validation

Question 6)
You’ve added a form element to your HTML document and set the value of the method attribute to POST. What is the other valid HTTP method for form submission?

  • PUT
  • DELETE
  • GET

Question 7)
Your web browser is currently at the URL

https://meta.com/hello

What address will the following form submit to?

<form action="/login">
  • https://meta.com/
  • https://meta.com/login
  • https://meta.com/hello/login
  • https://meta.com/hello

Question 8)
You are creating a landing page for a local business that includes a audio player. The specification is that the audio automatically plays and can be paused. What are the correct statements for this implementation? Select all that apply.

  • Setting the autoplay attribute
  • Setting the controls attribute
  • Set several source elements with distinct types
  • Setting the loop attribute

Question 9)
Which of the below statements are best practices when adding iframes to your pages? Select all that apply.

  • Skip the allow attribute
  • Use the sandbox attribute to define which privileges are granted to the iframe
  • Add a title attribute
  • Use the lazy loading attribute

Question 10)
What are the main advantages of using the canvas element to draw content on your pages? Select all that apply.

  • It requires less code than HTML sectional tags
  • It’s better for thousands of objects and precise manipulation
  • It’s well suited for graphic intensive games.
  • It provides a good experience for rendering HTML elements.

 

Question 11)
Why is important to choose the correct semantic tags when building your web pages? Select all that apply.

  • It allows the browser to render your pages faster.
  • It allows search engines to better rank your pages.
  • It helps accessibility software for people who are visually impaired.
  • It improves the styling of your pages.

Question 12)
Which tag is most suited to describe the navigation menu of your web page?

  • <div>
  • <main>
  • <nav>

Question 13)
What are the benefits of using the Open Graph Protocol? Select all that apply.

  • Allows developers to set a preview image to display on social media platforms.
  • Provides social media platforms with the correct information for your page.
  • Allows developers to inform social media platforms what type of content is being linked for a given URL.

Question 14)
What is the benefit of adding the required attribute to an input element?

  • It will ensure that the form data submitted is valid.
  • It will ensure that the form data is sent securely.
  • It will ensure that the user provides a value to the form field.

Question 15)
Which of the following HTTP methods can be used to submit a HTML form? Select all that apply.

  • DELETE
  • PUT
  • GET
  • POST

Question 16)
You are creating a landing page for a local business that includes a video player. The specification is that the video automatically plays, can’t be paused and it loops. What are the correct statements for this implementation? Select all that apply.

  • Setting the controls attribute
  • Setting the loop attribute
  • Set several source elements with distinct types
  • Setting the autoplay attribute

Question 17)
Which of the following are possible using the canvas HTML element?

  • 2D graphics rendering
  • 3D graphics rendering
  • Manipulating HTML elements

Question 18)
You’ve been asked to embed another web page within your web page using an iframe. Which of the following tasks should be done to maintain security?

  • Validate that the web page is a trusted source
  • Apply the allow attribute to the iframe
  • Apply sandboxing to the iframe