Select an incorrect CSS entry.
All entries are correct.
  • Omitting the html, head, and body tags is certainly allowed by the HTML specs. The underlying reason is that browsers have always sought to be consistent with existing web pages, and the very early versions of HTML didn't define those elements. When HTML 2.0 first did, it was done in a way that the tags would be inferred when missing.
    In the HTML5 standard, the <html> tag, the <body> tag, and the <head> tag can be omitted. The following code will validate as HTML5:
    <!DOCTYPE html>
    <title>Page Title</title>
    <h1>This is a heading</h1>
    This is a paragraph.

    More details: Stackoverflow: Is it necessary to write HEAD, BODY and HTML tags?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Sign Up Now
or Subscribe for future quizzes