What is the need and use of DOCTYPE?

When you have a question about html you should always go to www.w3.org, the World Wide Web Consortium (W3C) is an international community where member organizations, a full-time staff, and the public work together to develop Web standards.

Now back to the DOCTYPE question I am trying to answer. The very beginning of an html document must start with a declaration that makes sure the document will be parsed the same way by different browsers. For html 5 the declaration is:

<!DOCTYPE html>

It MUST be entered exactly as shown above.

There are several DOCTYPES and W3C lists and explains all of them.

Happy coding!

This entry was posted in Activity, code, curriculum, Education, html, online school records, Panagiotopoulos, project, Software, STEM, support, training. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *