網頁製作加入空的script檔案

password318發表於2010-05-07

In your index.html file, add your CSS import link within the header file. Note the empty javascript link tag. This is recommended by CSS Zen Garden to correct the unsightly "Flash of Unstyled Content". For more information check out: http://www.bluerobot.com/web/css/fouc.asp:
<head>
<title>My New Joomla! 1.5 Template Title</title>
<script type="text/javascript" src=""></script>
<style type="text/css" media="screen">
@import url("css/template.css");
</style>
</head>

 

為何要把導航條放在正文下方呢?

Moving navigation to the bottom: Some SEO experts believe that another reason to semantically push the navigation items as far as possible down the page after the body of content is that it encourages search engine bots to crawl and index more of the page's content before wandering off down the first link it comes to. The more content the bot can index at a time, the sooner you'll have it displayed on the search engine. Apparently, it can take months before a site is fully indexed depending on its size. I have no idea if this is actually true, but it's in-line with my semantic structure based on usability, so no harm done. You'll have to tell us at Packt Publishing if you think your content is getting better SE coverage based on this structure.

相關文章