Tags are nested. Certain tags can only happen inside other tags: that is, between certain opening and closing tags. The order in which tags are opened and closed is vitally important, since using them in the wrong sequence will result in a page in disarray. Tags are closed in the reverse order to which they are opened. The rule is: “First in, last out”. That is, the tag that contains a nested series of tags is the last one to be closed. Another way of thinking about this is a series of matryoshka dolls, the Russian figurines which contain other figures inside themselves.
If the <html> tag starts our page immediately after the optional xml prolog and the doctype (which it does), it must therefore be the last one to be closed:
- <html>
- </html>
(Note that for the purposes of simple illustration the html tag is simplified: in a real page, it would have at least one attribute.)
Essentially, the <html> tag indicates that everything that follows it is, unsurprisingly, HTML. The opening <html> tag says “HTML starts here”. The closing </html> tag says “this is where the HTML code ends”.
The rest of our code must be written between these opening and closing tags. There are two major sub-sections: the <head> and <body>.
- <html>
- <head></head>
- <body>
- </body>
- </html>
The body section contains what is going to appear on our page. The head section contains everything else: essentially, a description of our page, like the card catalog entry of a book. All of our page must be written within these two sections.
so we don't need the jQuery minimum length anymore:) cool!


