aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes What is doctype HTML 5? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is doctype HTML 5?" Watch "What is doctype HTML 5?" New topic
Author

What is doctype HTML 5?

william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 125
Hi I am way ahead of my professor, I am not asking people to do my homework because I really like to become a web developer and learn as much as I can, but I want to just learn all of this on my own but I am already doing like my 3rd assignment and I am using netbeans.

Anyhow, this is what its saying


#3
Add a folder named ec1 in Web Pages.
Add a new JSP to the ec1 folder.
Be sure that the file uses the new HTML 5 DOCTYPE. If the Netbeans templates do not use the correct DOCTYPE, you will have to edit files created by Netbeans so that they use the correct DOCTYPE.
Be sure that the file contains valid HTML 5. As long as you include the meta tag for the charset, you will not lose points for a warning about the charset. You will not lose points if you receive an error about the form tag missing an action. You will lose points for all other errors and warnings.

this is what I opened up netbeans with

Do I just add <!DOCTYPE html5> the "5" at the end?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

No. It's fine as is.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 125
Bear Bibeault wrote:No. It's fine as is.


oh ok thank you

But what does he mean by it. Like I am just confused about the "doc type has to be html 5" concept
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

In contrast to one of the many HTML4/XHTML DOCTYPE variants such as:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

whereas the HTML 5 DOCTYPE is just:

<!DOCTYPE html>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is doctype HTML 5?