XHTML
From TYPO3Wiki
<< Back to FAQ
Contents |
[edit] Please Consider
TYPO3 is a framework to develop websites. It is not however a webdesign tool or is responsible for judging the way a template file is made.
It is up to the web designer to create XHTML compliant web pages.
This page is a draft in the moment.
[edit] Requirements
[edit] TYPO3
[edit] Template
[edit] CSS
[edit] Validate
To validate a website just use the following link and add your web address after ?uri=.
http://validator.w3.org/check?uri=your web address
or
http://validate.sourceforge.net ((X)HTML Validator on SourceForge)
Mozilla/Firefox-Users might want to use a great extension here, which has a built-in bookmarklet to w3c-validators:
Download http://www.chrispederick.com/work/firefox/webdeveloper/download/
Feature-List http://www.chrispederick.com/work/firefox/webdeveloper/features/
[edit] W3C
[edit] Configuration
[edit] In the Template File
[edit] In the Template
[edit] Constants
[edit] Setup
The following lines at the top of the setup of your TYPO3 template should bring the expected result.
htmlTag_setParams can be used to create your own <html> element settings.
htmlTag_langKey will change "xml:lang" and "lang" attributes in the <html> element.
# General Document config ############################################## config.doctype = xhtml_trans config.metaCharset = utf-8 config.xhtml_cleaning = all # to get MSIE working in "standardsmode" config.xmlprologue = none # # override standard setting config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" # config.htmlTag_langKey = en-US
If you use XML-Language de (german)
# override standard setting config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"
I recommend to use the appropriate HTML-Tag-Key too:
config.htmlTag_langKey = de-DE
Or set the HTML-Tag-Parameters to english...
# override standard setting config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
[edit] Available Documents
http://www.schwangau.de/fileadmin/gov/TYPO3_accessibility_2004.pdf [translate]
