Gå til innhold

Noe gikk galt med .html filen, men hva?


Anbefalte innlegg

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Testing</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>

<DIV id="header">
<span></span>
</DIV>

<DIV id="sidebar"> 
 <ul>
 <li><a href="this.html">This</a></li>
 <li><a href="that.html">That</a></li>
 <li><a href="theOther.html">The Other</a></li>
 <li><a href="theNext.html">The Next</a></li>
 <li><a href="The Scary">The Scary</a></li>
 <li><a href="theNextGen.html">The Next-Gen</a></li>
 <li><a href="theLast.html">The Last</a></li>
 </ul>
</DIV>

<DIV id="main">
<h3>Dolor Sit Amet</h3>

 <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
 Quisque viverra mi et orci. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. 
 Nunc sit amet lacus. Aenean ac augue a arcu ultricies dictum. Mauris ligula lorem, egestas quis, auctor at, dignissim ut, neque. Quisque a nisl.
 Sed feugiat. In adipiscing semper arcu. Mauris bibendum felis id ipsum. Aliquam ullamcorper pede in ligula. 
 Morbi vel neque id lorem ullamcorper sollicitudin. Vivamus accumsan mi vitae libero. Sed a massa eu mi pulvinar molestie. Morbi nec dolor at tortor pharetra varius.
 Aenean vel ipsum. 
 In leo mi, eleifend rutrum, congue ut, pharetra eu, enim. Sed pede. Sed sit amet purus. Sed ornare justo. Ut ornare mauris non mi. 
 Aenean fringilla, nulla ac scelerisque congue, lorem lectus faucibus ipsum, fermentum vestibulum eros nisl sit amet risus. 
 Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed vitae mauris. 
 Duis mi. Donec ipsum massa, mattis quis, aliquet non, vestibulum in, pede. Mauris vehicula.</p> 
</DIV>

<DIV id="footer">
 <a href="theLast.html">Om Oss</a> - 
 <a href="theLast.html">Kontakt Oss</a> - 
 <a href="theLast.footer>html">Blankt?</a>
</DIV>

</body>
</html>

 

Ingen ting fungere, bare tekst som vises, og ikke desginet som jeg har i .css filen.

Alt fungerte for noen minutter tilbake, så jeg må ha greid å fjernet noe.

I html validator så sier den dette:

# Error  Line 6 column 6: end tag for element "HEAD" which is not open.

 

</head>

 

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 occured in a script section of your document, you should probably read this FAQ entry.

 

 

# Error Line 7 column 5: document type does not allow element "BODY" here.

 

<body>

 

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

 

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

 

 

Hva er problemet? skjønner at det er noe med head/body taggene, men alt ser ut til å være riktig.

Endret av Nitrius
Lenke til kommentar
Videoannonse
Annonse
prøv uten doctype og/eller

 

href="style.css" /> (mellomrom før /)

7399491[/snapback]

 

 

Det med doctypen skjønte jeg ikke helt?

 

Ordnet opp det mellomrommet, men har fortsatt de 2 errorene som du ser i første post, plus av at alt av farger/grafikk og oppsett ikke fungere.

Lenke til kommentar

Tips: Tagger kan, i HTML 4.0, skrives med store bokstaver, men bør skrives utelukkende med små bokstaver. Dette vil bare plage deg om du har en fil med tagger med store bokstaver og skal konvertere det til XHTML, hvor alle tagger og verdier skal være med små bokstaver.

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...