Code at top of page (HTML view)

3 replies
  • SEO
  • |
Is it proven that having more important parts of the page (i.e. the h1 tag) is more beneficial (seo-wise) than having 100s of lines down? - out of practice I've always tried to get the h1 tags and the starting content within the first 100 lines of the source code, now that our skills are developing in website design we struggle to do this as a lot of javascript and other code will be using up the first 200-300 lines of code.
I can't see how it is that beneficial since the page load isn't that different unless you're dealing with 10s of thousands of lines of code.

I'd like to hear your oppinions!
#code #html #page #top #view
  • Profile picture of the author paulgl
    You are confusing the top of the website with the top of the code.
    They are not the same.

    Content is content. Javascript, flash, etc. are lines of code, not lines of
    content.

    There is that <body> that really defines when content begins. Even then
    you may have lines of code that are not content.

    Viewing your website normally will show you what "content" is on top.
    Sites that use mysql can have a ton of lines of code above the body tag.
    Lots of things need to be defined, updated, accessed, etc.

    Viewing your site normally, again, is generally the true way a search
    engine will view it. They don't index your site on mysql, javascript, php, asp,
    etc.

    Using this thread as an example. View the source code. Tons of lines are
    used for css.

    html is not content.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[3168510].message }}
    • Profile picture of the author LiamMcArthur
      Yes but what I mean is this:

      If I wanted to I could have the navigation (at the very top of the page) display at the bottom of my source code by writing the HTML at the bottom of the project code but using CSS to style it at the top - so, should I try to get my content (where my actual paragraphs, headings etc start) at the top of the source code (by applying CSS styling to display it where I want it to be, even though the HTML thinks my 'content' is at the very top of the source code.
      Signature
      Liam McArthur
      Web Developer | Eden Mobility
      {{ DiscussionBoard.errors[3168712].message }}

Trending Topics