Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have seen a website that has a doctype of

<!DOCTYPE html>

This website uses HTML Tags that I have never seen before like <section>.

My Question:

1.) Is this kind of "generic Doctype" recommended for a normal website? (I've never seen this this before, what are the pro and cons?)

2.) When is it valid to use such "self defined" HTML Tags? Is this valid with this doctype Declaration?

share|improve this question
This book may be of use: diveintohtml5.org – Jamie Schembri Sep 9 '11 at 11:23
up vote 8 down vote accepted

This is the doctype for HTML 5.

  1. You are safe to use this Doctype as it won't break older browsers and modern browsers will understand it.

  2. This is a valid tag for HTML 5. If you really want custom tags, you'd need to create a custom doctype for your document to reference, but that's discouraged.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.