• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

[ERLEDIGT] [(X)HTML-Validator] Was bedeutet dieser Error ?

Status
Für weitere Antworten geschlossen.
Werbung:
ich habe auch ein problem mit dem Validator:
wenn ich einen doctype einfüge hat das Menü keine Farbe und Formatierung
also die css-Befehle kommen nicht an.

hier die URL

kann mir einer helfen?

mfg Speider
 
Werbung:
Liegt daran, dass du im HTML #navigation schreibst und im CSS #Navigation, mit vernünftigem Doctype sind die Selektoren allerdings case-sensitive.
 
Danke <Thor> jetzt gehts.

Nur bei diesen Fehlern komm ich nicht dahinter was der Validator von mir will:
w3.org; schrieb:
Validation Output: 3 Errors

1. Error Line 16, Column 12: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.

<center>



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>").
2. Error Line 19, Column 10: end tag for element "P" which is not open.

</p>



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
3. Error Line 24, Column 10: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.

<p>



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>").
Link

mfg Speider
 
Werbung:
Das ist nicht das Problem, in HTML 4.01 ist <center> sehr wohl erlaubt, das Problem ist, dass das alles in einem <strong> steht und das ist nicht erlaubt.

PHP:
  <strong>
     <center>
       <p>
         <h1>TuS Winzenheim 1912 e.V.</h1>
       </p>
     </center>
  </strong>
<strong> brauchst du an der stelle nicht, <h1> ist von sich aus schon fett und das <p> brauchst du auch nicht, <h1> hat ebenfalls schon ein margin das du verändern kannst.
Für das <center> bietet sich allerdings trotzdem die von rexini gezeigte Alternative an.
 
Werbung:
<strong> brauchst du an der stelle nicht, <h1> ist von sich aus schon fett
Gewagte Aussage eines Anfängers.

1. Es gibt keine Vorschriften, nur Empfehlungen darüber, wie ein Browser Elemente per default darstellt. Die Aussage "<h1> ist von sich aus schon fett" ist also bisher vielleicht immer wahr gewesen, eine Garantie dafür gibt es aber nicht. Wenn man eine Eigenschaft sicher haben will, muss man sie im Stylesheet angeben.

2. Die Tatsache, dass h1 fett ist und hier <strong> verwendet wird, hat nichts miteinander zu tun. Du vergleichst Äpfel mit Birnen, beides ist Obst, schmeckt aber unterschiedlich. <strong> ist nicht dazu da, etwas fett darzustellen, sondern um etwas als besonders wichtig auszuzeichnen. Dass <strong> womöglich in Deinem Browser per default als fett dargestellt wird, dazu siehe Punkt 1.

Gruß,
-Efchen
 
Werbung:
Was hab ich denn anderes gesagt? Es ist eine Empfehlung, weil sie nicht bindend ist. Und als guter Webmaster weiß man, dass man sich bei Empfehlungen nicht darauf verlassen darf, wenn einem die Eigenschaften wichtig sind.
Wenn jemand unbedingt will, dass h1 fett ausgegeben wird, dann muss er das im Stylesheet angeben. Verzichtet er darauf, die Eigenschaft anzugeben, heißt das, ihm ist es egal, ob die Darstellung fett ist oder nicht.

Kommt mal irgendwann ein Browser, der das nicht so macht, kann man nicht sagen, der Browser habe einen Fehler, da Defaultwerte ja nicht vorgeschrieben sind. Schuld ist dann der Webmaster, der fahrlässig gehandelt hat.

Ganz einfach das alles :-)

Gruß,
-Efchen
 
Nö, aber das ist nunmal eine klassische Anfänger-Aussage. Wenn Du mehr weißt, solltest Du Dich besser ausdrücken, damit das nicht missverstanden wird.
Ein Experte käme nie auf die Idee, strong zu benutzen, um etwas fett darzustellen, ein Experte weiß, dass HTML nicht für die Darstellung da ist.

Sollte aber auch keine Bewertung Deiner Fähigkeiten sein, bestenfalls eine Bewertung der Aussage an sich.

Grüße,
-Efchen
 
Werbung:
Ich hab keine Probleme damit, wie Du eine Aussage deutest und ob das richtig ist oder nicht, ich weiß ja, wie sie gemeint war :-)
 
Werbung:
So, ein Fehler, bei dem ich keine Ahnung habe, wie ich ihn fixen soll, da das nötig ist ö.ö

w3 Validator schrieb:
Line 66, Column 52: cannot generate system identifier for general entity "p".

<a href="?ds=ideas&p=1">Vorschläge: Last 5</a>



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
 
Die Antwort steht doch schon dabei!
Entity references start with an ampersand (&) and end with a semicolon (
icon_wink.gif
. If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben