---
title: "html/xhtml"
url: "https://www.typo3.net/d/68517-htmlxhtml"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2007-09-24"
last_reply: "2007-09-24"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# html/xhtml

TYPO3 › TypoScript · 4 Antworten · gestartet 2007-09-24

## Eröffnungsbeitrag

**andres** · 2007-09-24 · [Beitrag #1](https://www.typo3.net/d/68517-htmlxhtml/1)

hallo
ich habe mein setup auf xhtml konfiguriert:

```typoscript
config.doctype = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
```

in meiner vorlage habe ich <html> gelöscht und trotzdem wird im frontend
<html> reigeschrieben.
weiss jemand warum?
andres

## Antworten

### [#2](https://www.typo3.net/d/68517-htmlxhtml/2) · SLAng · 2007-09-24

Warum so kompliziert?

```typoscript
config {
	doctype = xhtml_trans
	xhtml_cleaning = all
}
[browser = msie] && [version = < 7.0]
config.doctypeSwitch = 1
[global]
```

### [#3](https://www.typo3.net/d/68517-htmlxhtml/3) · andres · 2007-09-24

danke
ich habe nun das am laufen:

```typoscript
##Doctype als XHTML definieren
config.doctype = xhtml_trans
config.xhtml_cleaning = all
config.htmlTag_langKey = de
config.xmlprologue = none
```

kannst du mir noch erklären was das bedeutet?

```typoscript
#[browser = msie] && [version = < 7.0]
#config.doctypeSwitch = 1
#[global]
```

### [#4](https://www.typo3.net/d/68517-htmlxhtml/4) · einpraegsam.​net · 2007-09-24

> **andres schrieb:**
>
> kannst du mir noch erklären was das bedeutet?
>
> ```typoscript
> [browser = msie] && [version < 7.0]
> config.doctypeSwitch = 1
> [global]
> ```

Wenn Browser InternetExplorer 6 oder älter dann
Doctype switchen (XML wird nicht in die erste Zeile gesetzt)

### [#5](https://www.typo3.net/d/68517-htmlxhtml/5) · SLAng · 2007-09-24

Genau, ansonsten schaltest du ja den XML-Prologue komplett aus mit config.xmlprologue = none, was ja nicht nötig ist

---

Quelle: „html/xhtml“, typo3.net, https://www.typo3.net/d/68517-htmlxhtml
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
