Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Use HTML Elements

what does it mean by doctype

i dont undertstand that after watching video

index.html
<HTML>

3 Answers

Tomas Pavlik
Tomas Pavlik
26,726 Points

Hi David, doctype means document type. It tells the browser, which document is it working with. In HTML 5, just use this doctype:

<!DOCTYPE html>

Browsers are forgiving these days, so if you forget the document type, the browser should still display your docuemtn correctly.

Tomas

Doctype is when you write

<!DOCTYPE  html>  <!-- that's for html5 -->

To see what doctype means read this.

DOCTYPE describes the HTML used on your page. Browsers use DOCTYPE to render a page as well. Each browser renders a page differently. So the same page on Google chrome will/may look different than lets say Firefox. I hope this helps.

it might be a little intense but if you want to know more about DOCTYPES check out this link

http://en.wikipedia.org/wiki/Quirks_mode#Comparison_of_document_types