-1

Is this the basic html5 bolier code?

<!doctype html>

` //do I still need this? my title

<body>
    //my body 
</body>

John Barrett
  • 95
  • 2
  • 8

3 Answers3

0

The following stackoverflow answer shows the minimum required valid HTML5 document.

So yes you do need a <title> </title> after your <!doctype html> as a minimum.

fcbsd
  • 180
  • 6
  • 12
0
<!doctype html>
<html lang="en">
    <head>
      <meta charset="utf-8">
      <title>The HTML5 Herald</title>
    </head>
    <body>
    </body>
</html>

This, for me is

Juan Piza Ferra
  • 100
  • 2
  • 11
0

Yes, the title tag is necessary. This is the minimal valid html5 document you can use.

<!doctype html>
<title>I'm the shortest valid HTML5</title>
Joel García
  • 191
  • 4
  • 10