Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:01:20+00:00 2026-05-29T04:01:20+00:00

When writing the HTML5 doctype what is the correct method? <!DOCTYPE html> or <!doctype

  • 0

When writing the HTML5 doctype what is the correct method?

<!DOCTYPE html>

or

<!doctype html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:01:21+00:00Added an answer on May 29, 2026 at 4:01 am

    In HTML, the DOCTYPE is case insensitive. The following DOCTYPEs are all valid:

    <!doctype html>
    <!DOCTYPE html>
    <!DOCTYPE HTML>
    <!DoCtYpE hTmL>
    

    In XML serializations (i.e. XHTML) the DOCTYPE is not required, but if you use it, DOCTYPE should be uppercase:

    <!DOCTYPE html>
    

    See The XML serialization of HTML5, aka ‘XHTML5’:

    Note that if you don’t uppercase DOCTYPE in an XHTML document, the XML parser will return a syntax error.

    The second part can be written in lowercase (html), uppercase (HTML) or even mixed case (hTmL) — it will still work. However, to conform to the Polyglot Markup Guidelines for HTML-Compatible XHTML Documents, it should be written in lowercase.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The rather terse HTML5 doctype, <!DOCTYPE HTML> , seems to indicate that this the
Been writing web apps for years and this line: <!DOCTYPE html PUBLIC \-//W3C//DTD XHTML
I'm writing HTML code for a Java servlet. I first write the code in
I'm writing an HTML parser in C# and want to include examples of the
I've always used single quotes when writing my HTML by hand. I work with
Writing documentation in html requires some code examples. What to do with characters that
I writing a dynamic HTML parsers functionality. I will want to modify existing parsers
I'm writing a Winforms application and I've been writing these awful HTML reports where
When writing interpreters for PDF, HTML and other documents we need to deal with
Often when writing PHP I'll have it output some HTML like this - echo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.