w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



title ...⁄title, required element

The title element is required.

Valid Syntax
title element present
1
2
3
4
5
6
7
8
9
<!doctype html>
<html>
<head>
<title>...<⁄title>
<⁄head>
<body>

<⁄body>
<⁄html>
Invalid Syntax
title element absent
1
2
3
4
5
6
7
8
9
<!doctype html>
<html>
<head>

<⁄head>
<body>

<⁄body>
<⁄html>

Video demonstration title, required element

HTML5 title required, Tutorial

min video details
00:02 open html demo file in Notepad++
00:06 title tag is missing from head section; the html page syntax is not valid
00:14 <meta charset="UTF-8"> tag is present → we will add the title tag right under it because the charset applies to title too
00:20 adding the title tag to html page and a title (tag's content)
00:34 the html page syntax is now valid
title intro title occurrences title browser display title parents - children title ELEMENT vs title ATTRIBUTE title syntaxtitle lang attribute