Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-2007, 10:11 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 7,200
Rep Power: 66
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default XHTML - Transitional or Strict?

Ok I have an assigment, and I'm making it XHTML Strict 1.0, but the validator validates it as even transitional valid. So I say.. what is the actual difference between the two?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-28-2007, 11:11 AM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,408
Last Blog:
CherryPy(thon)
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

Strict is more strict than transitional, when it comes to different tags, etc. Transitional supports some of the old stuff from HTML 3.2 - 4.1, while they're removed when using strict.
In generally, you can say that everything which works in strict will work in transitional, but everything which works in transitional will not work in strict.

An example could be the U-tag. It's not supported in strict, but supported in transitional.
Code:
<!-- This work with a transitional doctype, -->
<!-- but not with a strict doctype. -->
<u>Hello, World!</u>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-28-2007, 04:27 PM
Death Slaught's Avatar   
Death Slaught Death Slaught is offline
Newbie
 
Join Date: Nov 2007
Posts: 20
Rep Power: 3
Death Slaught is on a distinguished road
Default

Use this validator The W3C Markup Validation Service. It's made by the W3C themselves.


- Death
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-28-2007, 04:51 PM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 7,200
Rep Power: 66
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default

Yeah, I used that to validate my project.

Thanks for the validation, so transitional is more 'tolerant'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-20-2008, 12:16 PM
Fjeddy's Avatar   
Fjeddy Fjeddy is offline
Newbie
 
Join Date: Jan 2008
Location: Sweden
Posts: 17
Rep Power: 3
Fjeddy is on a distinguished road
Default

I think of it more as a way to ease oldtimers with HTML into XHTML. W3schools has a list of tags and that shows which tags are deprecated and not.

[url]http://www.w3schools.com/tags/default.asp[url]

To the right in the list there is a row called "DTD" this shows which Doctype Definition the tag works in:

S - Strict
T - Transitional
F - Frameset

As you might notice those that only work in "T" and "F" are "Deprecated", these are to be avoided, since they will be removed totally in the future. Most of the deprecated ones are tags that are used to format text or similar things that should be done with CSS.

Also, this is a nobrainer really, but did you declare the correct Doctype Definition?
__________________
Spräng kommer! ETTtusen, TVÅtusen, TREtusen!

Last edited by Fjeddy; 01-21-2008 at 11:16 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-21-2008, 10:48 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 7,200
Rep Power: 66
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default

Yeah of course I did declare it as strict, but when I changed the doctype from Strict 1.0 to Transitional 1.0 it still showed no errors.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xhtml strict 1.0 vs xhtml 1.1 Jaser HTML Programming 3 11-08-2007 12:34 PM
Is a Mix of XHTML Strict and Transitional Pages OK? Carrym HTML Programming 4 04-10-2007 09:49 AM
What is HTML, DHTML and XHTML? Lop HTML Programming 5 08-09-2006 11:00 AM
The ultimate xHTML / DHTML / HTML 301 redirection thread! Dan HTML Programming 5 07-04-2006 05:57 PM


All times are GMT -5. The time now is 04:13 PM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 65%

Ads