HTML Quiz5 1. Which of the following is the correct syntax for a <div> tag? <div class=”example”> <div id=”example”> <div style=”color: red;”> All of the above 2. What is the purpose of the <form> tag in HTML? To define an image To define a hyperlink To define a section of an HTML page To create a form for user input 3. Which attribute is used to assign a class to a <div> element? id src class href 4. What is the <iframe> tag used for? To define an image To define a hyperlink To embed another HTML page into the current page To define a form element 5. What is the purpose of using the <div> tag with CSS? To create a hyperlink To style and position content on a web page To define a form element To display an image 6. Which attribute is used to specify the URL of the page to be embedded in an <iframe>? href src target name 7. Which attribute is used to merge two or more table cells into a single cell? align valign colspan rowspan 8. Which attribute is used to specify the method used for submitting form data to the server? action target method type 9. Which attribute is used to specify the default value of a text input field? value default text placeholder 10. What is formatting tag from the following <br > <ol > <u > <ul > Loading … Question 1 of 10