BleepingComputer.com: <!Doctype ___>??

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

<!Doctype ___>??

#1 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

  Posted 05 October 2010 - 10:06 PM

Hello

I was reading up on <!Doctype > command and how it works.

http://www.w3schools.com/xhtml/xhtml_dtd.asp

To my understanding its a way of telling the browser what type of script or pages are present. Or something like that... :flowers:
But then it has some additional letters that I do not know why they been added for example:

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

So I guess my question is how should the <!DOCTYPE---> be written?

And why is <!doctype in CAPITAL letters, I thought Xhtml code should be written in lowercase. :trumpet:

Well thanks for the help :thumbsup:

This post has been edited by JUICYboy: 05 October 2010 - 10:08 PM


#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 06 October 2010 - 08:12 AM

Quote

To my understanding its a way of telling the browser what type of script or pages are present.

Not exactly. It tells the browser which 'flavor' of XML it can expect, and the URL where the Document Type Definition is located. The document tag you have included is telling the browser that the document it is about to read adheres to xhtml version 1, type= transitional. If you look further down on the page, it explains the differences in the types.

The doctype is not exactly a tag. It is an identifier.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 06 October 2010 - 02:07 PM

In HTML5 Doctype declaration is much simplified : <!DOCTYPE HTML>. And it is case-insensitive! Yay! No more worrying about transitional, strict and DTD etc. :thumbsup:

#4 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

Posted 07 October 2010 - 09:04 AM

Wow Thank you

that helped a lot. :thumbsup:

Also how are htmls pages created?

Do they add the extension, or is there some coding that is done?

Same thing goes for the new html5?

This post has been edited by JUICYboy: 07 October 2010 - 09:22 AM


#5 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 07 October 2010 - 10:28 AM

Quote

Also how are htmls pages created?

What do you mean? In the browser?
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#6 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

  Posted 07 October 2010 - 08:56 PM

Yes

How is a html secure page created to come out in the browser?

Is it a extension. a.e secure.htmls or is it something else that creates the encrypted page.

Thanks

#7 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 07 October 2010 - 09:05 PM

A secure web page has to do with how data is transferred between the client and the server. The page itself has nothing to do with it.

http://en.wikipedia.org/wiki/HTTP_Secure
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#8 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

Posted 09 October 2010 - 09:41 AM

Thanks a lot :thumbsup:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users