Balise Description And Title

Discuss Search Engine Optimization in relation to Joomla! 4.x. This forum will also have discussions on SEF/SEO Joomla! 4.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
kit73
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Jun 27, 2022 8:29 am

Balise Description And Title

Post by kit73 » Thu Jun 30, 2022 8:43 am

Hello,

Why in the source code the "meta description" tag is displayed before the "Title" .

I have seen this for quite some time on all the sites I have created with Joomla.

Thanks for your feedback. ???

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24985
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Balise Description And Title

Post by pe7er » Thu Jun 30, 2022 9:25 am

kit73 wrote:
Thu Jun 30, 2022 8:43 am
Why in the source code the "meta description" tag is displayed before the "Title" .
Interesting question!

Apparently the order of elements in the head of the HTML document is not important and just a personal preference, see https://adamhollett.com/posts/2016/07/b ... head-tags/

In another discussion at https://www.quora.com/Does-the-order-of ... ags-matter it is said that the meta tag

Code: Select all

<meta http-equiv=”Content-Type" content="text/html" />
should be within the first 1024 bytes.

However, I have not found that info in the W3C HTML5 specifications yet:
https://www.w3.org/TR/2011/WD-html5-201 ... .html#meta
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

kit73
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Jun 27, 2022 8:29 am

Re: Balise Description And Title

Post by kit73 » Fri Jul 01, 2022 9:03 am

Thank you pe7er for your answer, it is true that out of habit since the beginning of the creation of websites, it has always been good practice to put:

<title></title>

<meta name="description" content="">

As a matter of principle and in the doubt that it is not good to put description before, it might be wise to keep the order tilte > description...

If we could have the opinion of several experts :-) that would be cool.

Sorry for the English that I translate with Google... ;-)


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 4.x”