Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Website section questions I've been doing some tidying up on my site recently and have been making some minor adjustments to the section of each page (primarily to cut out any potential

@Nimeshi995

Posted in: #Headers #Html #HttpHeaders #MetaTags #Tags

I've been doing some tidying up on my site recently and have been making some minor adjustments to the section of each page (primarily to cut out any potential duplication). However, I just have a couple of niggling questions which I thought I'd ask you experts here for your advice on...

1) Does the order of the meta tags make a difference?
2) Does the mixed use of ' or " make a difference for SEO-purposes? - ie: below in my example the canonical line uses " and then ' for the actual href (if that makes sense?

My example

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="/styles.css" />
<title>Example Page Title</title>
<link rel="canonical" href='http://www.example.com/examplepage/' />
<meta name="description" content="This is an example description"/>
</head>


Also, I have the following above my head - is this even needed any more?:

<!--[if IE 8]><html class="no-js lt-ie9" lang="en" ><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

3 Comments

Sorted by latest first Latest Oldest Best

 

@Kaufman445

In most cases, browser does not have a problem to render your pages because of meta tags , However the better the order the better for you to keep track of what you adding into the site. It is on best practice to put all meta tags on head section.

10% popularity Vote Up Vote Down


 

@Barnes591

I would say whether it is the order of tags or using a single vs double quote, it should be fine to use.

The only thing I would say is, go with the best practice and mostly it's double quote and as far as order is concerned I would say the same.

Browsers: Generally browser renders it fine but you never know some rare issue may come in.

SEO: From SEO side it doesn't matter much as Google does beautiful job dealing with incorrect markup also.

Note: Clean code with best practice will avoid any possible issues and it also helps you manage it effectively. For example: If you need to do a bulk find and replace multi-line heard code then consistency will play an important role.

Hope this helps.

10% popularity Vote Up Vote Down


 

@Margaret670

The order of meta tags does not make a difference.

You can use both ' and " in html5.

The conditional comments can be useful if you want to create specific CSS for Internet Explorer 8. However in many sites the number of IE8 users is small, so it's up to you to decide if it's worthwhile (and needed) to do it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme