w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



head nested within elements, elements nested within head

Classified as: -

Parents, head

Children, head

Observations:

  • 1 title element is required and allowed
  • only 1 base element is allowed

Examples: head parents, head children

Valid Syntax 1
1
2
3
4
5
6
7
8
9
<!doctype html>
<html>
<head>

<⁄head>
<body>

<⁄body>
<⁄html>
Valid Syntax 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<html>
<head>
<meta>
<title>....<⁄title>
<base>
<link>
<style>....<⁄style>
<script>....<⁄script>
<noscript>....<⁄noscript>
<template>....<⁄template>
<⁄head>
<body>

<⁄body>
<⁄html>

Syntax 1: Valid, the head element can be nested within the html element only
Syntax 2: Valid, meta, title, base, link, style, script, noscript and template elements can be nested within the head element

head intro head occurrences head browser display head syntaxhead lang attribute