Ik wil graag mijn website bouwen met doctype XHTML Strict.
Nu heb ik alleen de metatags etc gedaan, en krijg nu al 2 fouten, dus het begint lkkr.
Het gaat om de verwijzing van de css.
Zouden jullie me kunnen helpen hoe ik deze foutjes er uit moet krijgen?
Volgende:there is no attribute "REL".
<LINK HREF="Stylesheet/css_basic.css" REL="stylesheet" TYPE="text/css"/> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
there is no attribute "TYPE".
<LINK HREF="Stylesheet/css_basic.css" REL="stylesheet" TYPE="text/css"/>
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
- XHTML Strict valideren!
-
10-01-2008, 08:40 #1
- Berichten
- 22
- Lid sinds
- 17 Jaar
XHTML Strict valideren!
-
-
10-01-2008, 08:45 #2
- Berichten
- 22
- Lid sinds
- 17 Jaar
EDIT: Gevonden, had hoofdletters gebruikt!
-
06-02-2008, 10:25 #3
- Berichten
- 366
- Lid sinds
- 18 Jaar
heheh, het antwoord stond er namelijk al bij ;)
-
08-02-2008, 10:25 #4
- Berichten
- 68
- Lid sinds
- 17 Jaar
XHTML STRICT is onderandere kleine letters gebruiken, alle tags goed afsluiten, quots gebruiken en goed nesten. Dit zijn diegene die ik nu 1, 2, 3 kan bedenken maar er zijn natuurlijk meer.
Handige tutorial: http://w3schools.com/xhtml/default.asp
Daar staat ook de syntax en de DTD in.
Veel succes,
Bryan
-
08-02-2008, 11:44 #5
- Berichten
- 138
- Lid sinds
- 17 Jaar
Als je een afbeelding erin zet ook altijd een tag toevoegen. Verder gewoon alles netjes afsluiten en nooit dit doen <a><b></a></b> want dat mag niet. Eigenlijk is het gewoon netjes werken en dan komt het allemaal goed.
-
14-02-2008, 13:05 #6
- Berichten
- 250
- Lid sinds
- 17 Jaar
Onthoud ook goed dat er een aantal dingen niet met gewone html mogelijk zijn met xhtml strict, zoals bijvoorbeeld het gebruiken van target in een link. Om pagina's in een nieuw venster te openen zul je dus iets van JavaScript moeten gebruiken (op mijn eigen site ook zo gedaan).
-
14-02-2008, 13:10 #7
- Berichten
- 765
- Lid sinds
- 19 Jaar
Origineel gepost door illutic
Onthoud ook goed dat er een aantal dingen niet met gewone html mogelijk zijn met xhtml strict, zoals bijvoorbeeld het gebruiken van target in een link. Om pagina's in een nieuw venster te openen zul je dus iets van JavaScript moeten gebruiken (op mijn eigen site ook zo gedaan).
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic