HTML HTML Basic MCQ Question #4774
MCQ Single Best Answer Not Set

QWhat is the right HTML5 doctype syntax?

ID: #4774 HTML Basic MCQ 170 views
Question Info
#4774Q ID
Not SetDifficulty
HTML Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A
    
    <!doctype html>
    
  • B
    
    </doctype html>
    
  • C
    
    <?doctype html>
    
  • D
    
    <doctype html>
    
Correct Answer: Option A

Explanation

The HTML5 doctype is used to declare the type of document being used.
In this case, the doctype is declaring that the document is an HTML5 document.
The doctype is used by the browser to determine how to render the content of the webpage. By using the correct doctype syntax, the browser knows to expect and render the content as HTML5.
This helps ensure that the webpage is displayed correctly and consistently across different browsers.

Share This Question

Challenge a friend or share with your study group.