Not detecting the <!DOCTYPE> tag


Tells me to add the tag when it's already been added

   ` <!DOCTYPE>



No =space= character allowed infront of your <!DOCTYPE html>
you will have to use a closing-HEAD-tag </head>
before your body-Tag


There isn't a space. Just the accidental ` caused a space.




Please paste in your code, error and lesson so we can help you


I am having the same issue,

my code:

1st lesson ''Every house needs a frame''

Oops, try again. Make sure you put in your tag!



I think it is better, if one understands the concept.

It all start's with you,
using a Browser
in which you load a HTML-file,
which we will call the HTML-Document.

This document has a minimal build of

<!DOCTYPE html>
          <title> </title>
       <!-- here you insert your HTML-code -->

The Browser =load's= this document into Memory
in a pattern that is described as
the Document Object Model
in short the DOM.
( the interpretation of the DOM is Browser & Version specific )

       |            |
     head          body

In the description of your document in DOM-talk...
you will encounter terms like:
parent children sibling descendants ascendants...

The HTML-Element has no parent
but is a parent to 2 child-Element's
the 'head'-Element
the 'body'-Element.

The 'head'- and 'body'-Element,
both being children to the 'html'-Element
are siblings to each-other.

The 'head'-Element is parent to the 'title'-Element...
the 'title'-Element is a child of the 'head'-Element
the 'title'-Element is also a descendant of the 'html'-Element.

The DOM has several interface's
over which you can access the data**/**information
held by the DOM.

One of the interface's is the Element-interface
you can divide the interface into
properties ( consisting of a property-key and it's associated VALUE )
methods ( giving you the functionality to manipulate the Elements )


Oh, ok :slight_smile:
Thanks for the explanation n_n


Brilliant explanation!


Thank you so much for this articulate explanation.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.