Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

<!Doctype ___>??


  • Please log in to reply
7 replies to this topic

#1 JUICYboy

JUICYboy

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:04:12 PM

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:

Edited by JUICYboy, 05 October 2010 - 10:08 PM.


BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:02:12 PM

Posted 06 October 2010 - 08:12 AM

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.

#3 Romeo29

Romeo29

    Learning To Bleep


  • BC Advisor
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:03:12 PM

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 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:04:12 PM

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?

Edited by JUICYboy, 07 October 2010 - 09:22 AM.


#5 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:02:12 PM

Posted 07 October 2010 - 10:28 AM

Also how are htmls pages created?

What do you mean? In the browser?

#6 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:04:12 PM

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 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:02:12 PM

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

#8 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:04:12 PM

Posted 09 October 2010 - 09:41 AM

Thanks a lot :thumbsup:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users