---
title: "Konstigt fel i Validator"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/126330-konstigt-fel-i-validator"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "joel_joel88"
published: "2005-04-13T17:35:07.000Z"
updated: "2005-04-13T18:06:56.000Z"
replies: 7
views: 254
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/html-css/126330-konstigt-fel-i-validator"
---

# Konstigt fel i Validator

## #1 — joel_joel88, 2005-04-13T17:35Z

Hej!

När jag kör en sida genom w3 validator så får jag detta fel....

```
Line 18, column 17: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

<p align="center"><b>Huvudlista till Introduktionsmöte för flygintresserade</b

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that
 are both allowed there and can contain the element mentioned. 
This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
```

eller kolla själv 

<http://validator.w3.org/check?uri=http%3A%2F%2Fwww.segelflygetkarlstad.se%2Fanmalda.asp&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1>

Vad är felet? \<p\> stöd väl i 4.01?

Permalänk: https://www.webforum.nu/p/126330

## #2 — Brantis, 2005-04-13T17:43Z

Titta vad det står på den sista raden.

 *One possible cause for this message is that you have attempted to put a block-level element (such as "**\<p\>**" or "\<table\>") inside an inline element (such as "\<a\>", "\<span\>", or "**\<font\>**").*

Din kod:

```php
<font style="font-family:Verdana;font-size:16px;color:#336699;">
<p align="center"><b>Huvudlista till Introduktionsmöte för flygintresserade</b></p>
</font>
```

Permalänk: https://www.webforum.nu/p/1591529

## #3 — joel_joel88, 2005-04-13T17:53Z

Så\<font\>och \<b\> taggen ska vara utan för \<p\>

Eller är jag trög?

Permalänk: https://www.webforum.nu/p/1591534

## #4 — joel_joel88, 2005-04-13T17:59Z

skrev fel, jag menar ska \<font\> vara inuti \<p\>?

Permalänk: https://www.webforum.nu/p/1591537

## #5 — silfver, 2005-04-13T17:59Z

Tvärt om. Innanför. :) Du kan inte sätta en font-tagg utanför en p-tagg. :)

Permalänk: https://www.webforum.nu/p/1591538

## #6 — joel_joel88, 2005-04-13T18:04Z

Bra, tack nu fungerar det!

Permalänk: https://www.webforum.nu/p/1591543

## #7 — zcorpan, 2005-04-13T18:06Z

Jag skulle ersätta den kodsnutten med 

```
<h1>Huvudlista till Introduktionsmöte för flygintresserade</h1>
```

 och i stilmallen: 

```
h1 {
 font-family:Verdana, sans-serif; 
 font-size:120%; /* eller vad som ser bra ut */
 color:#369;
 text-align:center;
}
```

Permalänk: https://www.webforum.nu/p/1591546

## #8 — OlleBoop, 2005-04-13T18:06Z

/edit: Pucktvåa...

Permalänk: https://www.webforum.nu/p/1591547

---

Tråden på webben: https://www.webforum.nu/amne/html-css/126330-konstigt-fel-i-validator
