Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-15 15:08:46

Batch108
New Member
From: Etwall Derby
Registered: 2009-07-15
Posts: 7
Website

W3C Validated HTML question

We are going to be using TextPattern on our new site, however, I’m very particular about using W3C Validated HTML or XHTML, I currently ensure that the sites that I manage either comply to HTML 4.01 Transitional or XHTML 1.0 Transitional.

Is there a way that you can edit or tweak the HTML code in TP? Because I have seen that it generates good overall code when compared to the good old days of ‘FrontPage’, but the sites that I know that have been developed using TP could do with some tweaks as to the W3C Standards.

A response to my question would be great, it could be that the code is completely accessible and that I’m worrying about nothing, again.

Thanks

Batch108

Offline

#2 2009-07-15 15:16:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: W3C Validated HTML question

The code is indeed completely accessible; furthermore you will find that Txp validates out of the box.


Code is topiary

Offline

#3 2009-07-15 15:20:30

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: W3C Validated HTML question

as far as i’ve seen, generated code from txp has always validated for me. and not to open up a can of worms but you should really be using strict instead of transitional by now :)

looks like xhtml is being phased out completely though to make way for html 5.

Last edited by iblastoff (2009-07-15 15:25:27)

Offline

#4 2009-07-15 15:47:53

Batch108
New Member
From: Etwall Derby
Registered: 2009-07-15
Posts: 7
Website

Re: W3C Validated HTML question

jsoo wrote:

The code is indeed completely accessible; furthermore you will find that Txp validates out of the box.

Thanks jsoo, I look forward to getting started.

Batch108

Offline

#5 2009-07-15 15:50:05

Batch108
New Member
From: Etwall Derby
Registered: 2009-07-15
Posts: 7
Website

Re: W3C Validated HTML question

iblastoff wrote:

as far as i’ve seen, generated code from txp has always validated for me. and not to open up a can of worms but you should really be using strict instead of transitional by now :)

looks like xhtml is being phased out completely though to make way for html 5.

Thanks Steve, that’s the next stage of site implementation.

Batch108

Offline

#6 2009-07-15 16:05:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: W3C Validated HTML question

iblastoff wrote:

not to open up a can of worms but you should really be using strict instead of transitional by now :)

Perhaps so, but in that light it’s odd to note that the default Txp page uses Transitional :)

looks like xhtml is being phased out completely though to make way for html 5.

Such phasing might take a little while.


Code is topiary

Offline

#7 2009-07-16 02:20:13

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: W3C Validated HTML question

I use XHTML 1.0 Strict, and Textpattern-generated code has always validated for me. Well-formed XHTML 1.0 Strict also validates as HTML5, and I have verified that my TXP sites validate as HTML5 also (by using the simple HTML5 doctype).

<!DOCTYPE html>

Last edited by johnstephens (2009-07-16 02:21:13)

Offline

#8 2009-07-16 07:06:14

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,732
Website

Re: W3C Validated HTML question

looks like xhtml is being phased out completely though to make way for html 5.

As far as I understand it, this is a misconception. XHTML2 is being phased out but that is a different thing to XHTML. XHTML as we know it is compatible with HTML5. HTML5 is just less prescriptive about how you choose to do your syntax. You can carry on using XHTML notation as you wish. A change of doctype is all that it entails, and you can still serve it as xhtml+xml if you want to.

See this response to the many misconceptions following zeldman’s article and the easier-to-read article by jeremy keith that clears things up more succintly.


TXP Builders – finely-crafted code, design and txp

Offline

#9 2009-07-16 13:37:49

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: W3C Validated HTML question


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

Board footer

Powered by FluxBB