Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

XHTML

From TYPO3Wiki
Jump to: navigation, search

<< Back to FAQ

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.

Requirements

TYPO3

Template

CSS

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/

W3C

Configuration

In the Template File

In the Template

Constants

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"

Available Documents

http://www.schwangau.de/fileadmin/gov/TYPO3_accessibility_2004.pdf