Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the <title> element need to be in the <head> element?

Tags:

html

I don't have access to update the title element for many of the pages on my site (a limitation in the e-commerce software I'm using) and I'm wondering if the <title> element can be placed within the <body> element.

like image 707
FrogWeb Avatar asked Feb 22 '23 04:02

FrogWeb


1 Answers

This is what the W3C has to say about it:

7.4.2 The TITLE element

Every HTML document must have a TITLE element in the HEAD section.

So no, you can't put the <title> tag inside the <body> tag.

Contact the developer(s) of said e-commerce software and see if there's a way to change the title of the page, either through the HTML directly or through the administration user interface of the e-commerce software. If you can't, get a different e-commerce software solution.

like image 180
In silico Avatar answered Mar 05 '23 14:03

In silico