Link to home
Start Free TrialLog in
Avatar of oaktrees
oaktrees

asked on

Get 250 Lines of Code from In Between My Meta Tags and Page Body

Hi!

To help web spiders better read my page content we are trying for the absolute minimum of code between the Meta Tags and where the text of my page actually begins: the H1 and the <p> tags where all the content is.

In the code of the page we've moved all JavaScript to the bottom.  That's good.  But, on the Front End of the page, at the top, there are various navigation tabs, drop downs, dynamic banners and things.  This results in about 250 lines in the code that sit between the Meta Tags and the H1 and <p> tags where the content begins.  This code is all HTML.

An engineer friend has made the page - and he says these 250 lines must be coded under the Meta Tags and can't be relocated lower.  He says that if we put them lower, they will actually move the location of the items on the page, so that the various navigation tabs, drop downs, dynamic banners and things, all designed to be at the top of the page, would actually migrate down underneath the text.

So, here's my question - is there any way we can get that code to still render things at the top of the page that should be rendered at the top AND change the position of the code so that it's not siting between the meta tags from the main text content.

Thanks!
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

The structure of an HTML document is set - You have the HEAD and then you have the BODY - certain things belong in the HEAD (title, meta tags, styles, scripts etc). Scripts and Styles can go in the body, but it's considered bad form. If you have CSS or JS in the head, the put these into external files.

Often, if you've got 250 lines of code before getting to your content, then your design is poor, or at the very least, the semantic structure of your document hasn't been thought through effectively.

Can't really comment on specifics unless we can see a link to your page.

This always ring alarm bells:

An engineer friend has made the page

Would you ever ask a Web Designer to fix your car? If you want a proper web design, ask a proper web designer ;)
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The idea is backward, out of date, and not good SEO.

You might actually hurt your ranking if you end up with code that is not technically valid or semantically correct.

The heavy weighting is for quality content.  the rest contributes substantially less.  It does not matter if H1 is not the first tag in the body, but its relevance is the key; only a single one is necessary, and the subheadings should be using h2 and h3.

If you start screwing around with very old methods for SEO, you will not only gain nothing, but you run the risk of Google thinking you are trying to game the results and getting penalized.

In the end Google wants quality content, valid code, and accessibility gained through semantic tagging.  Keywords are still considered, but the weighting is well down on the Google weighting scale.

Cd&
Avatar of oaktrees
oaktrees

ASKER

Thanks!