# Module quiz: HTML deep dive

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 allows the browser to render the element faster.
        
    * <mark>It allows search engines to better rank your pages.</mark>
        
    * <mark>It better describes the meaning of the element to accessibility software</mark>
        
2. **What are the tags that define the basic structure of an HTML page and which order is semantically correct?**
    
    * &lt;header&gt;, &lt;details&gt;, &lt;footer&gt;
        
    * &lt;h1&gt;, &lt;body&gt;, &lt;footer&gt;
        
    * <mark>&lt;header&gt;, &lt;main&gt;, &lt;footer&gt;</mark>
        
    * &lt;header&gt;, &lt;body&gt;, &lt;main&gt;
        
3. **Which of the following meta tags are recommended for modern web pages? Select all that apply.**
    
    * Author
        
    * <mark>Description</mark>
        
    * Keywords
        
    * <mark>Viewport</mark>
        
4. **What are the benefits of using the Open Graph Protocol? Select all that apply.**
    
    * <mark>Provides social media platforms with the correct information for your page.</mark>
        
    * <mark>Allows developers to inform social media platforms what type of content is being linked for a given URL.</mark>
        
    * <mark>Allows developers to set a preview image to display on social media platforms.</mark>
        
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
        
    * <mark>Recommend both client-side and server-side validation</mark>
        
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
        
    * <mark>GET</mark>
        
7. **Your web browser is currently at the URL** [`https://meta.com/hello`](https://meta.com/hello)
    
    **What address will the following form submit to?**
    
    ```xml
    <form action="login">
    ```
    
    * https://meta.com/
        
    * <mark>https://meta.com/hello/login</mark>
        
    * https://meta.com/login
        
    * https://meta.com/hello
        
8. **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.**
    
    * Set several source elements with distinct types
        
    * <mark>Setting the autoplay attribute</mark>
        
    * <mark>Setting the loop attribute</mark>
        
    * Setting the controls attribute
        
9. **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?**
    
    * <mark>Validate that the web page is a trusted source</mark>
        
    * <mark>Apply the allow attribute to the iframe</mark>
        
    * <mark>Apply sandboxing to the iframe</mark>
        
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 provides a good experience for rendering HTML elements.
        
    * <mark>It’s better for thousands of objects and precise manipulation</mark>
        
    * <mark>It’s well suited for graphic intensive games.</mark>
