|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
are alt tags or less code more important?
Which scenario would be more beneficial...
Code:
<td><img name="empty" src="/images/nav/empty.gif" width="200" height="36" border="0"><a href="/about/index.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('about','','/images/nav/about_f2.gif',1)" ><br>
</a><a href="/about/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','/images/nav/about_f2.gif',1)"><img src="/images/nav/about.gif" alt="About Us" name="about" width="176" height="25" border="0"></a><a href="/about/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','/images/nav/about_f2.gif',1)" >
</a><a href="/books/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('books','','/images/nav/books_f2.gif',1)" ><br>
</a><a href="/programs/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('programs','','/images/nav/programs_f2.gif',1)"><img src="/images/nav/programs.gif" alt="Yoga Teacher Training and Certification, Thai Yoga Training, plus other programs" name="programs" width="176" height="25" border="0"></a><a href="/books/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('books','','/images/nav/books_f2.gif',1)" >
<br>
</a><a href="/books/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('books','','/images/nav/booksNewR.gif',1)"><img src="/images/nav/booksNew.gif" alt="Yoga Books, Yoga CDs, Yoga DVDs" name="books" width="176" height="25" border="0"></a><a href="/books/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('books','','/images/nav/books_f2.gif',1)" >
</a><a href="/library2/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('library','','/images/nav/library_f2.gif',1)" ><br>
</a><a href="/directors/ganga/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('directors','','/images/nav/directors_f2.gif',1)"><img src="/images/nav/directors.gif" alt="Directors Ganga White and Tracey Rich" name="directors" width="176" height="25" border="0"></a><a href="/library2/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('library','','/images/nav/library_f2.gif',1)" >
<br>
<img src="/images/nav/library.gif" alt="Library - Yoga Articles, Yoga Interviews, Yoga Newsletters" name="library" width="176" height="25" border="0">
</a><a href="/library2/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('library','','/images/nav/library_f2.gif',1)" >
<br>
</a><a href="/contact/mailing_list.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('email','','/images/nav/email_f2.gif',1)"><img src="/images/nav/email.gif" alt="Email News" name="email" width="176" height="25" border="0"></a>
<br> <a href="/about/phototour/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('phototour','','/images/nav/phototour_f2.gif',1)"><img src="/images/nav/phototour.gif" alt="Photo Tour" name="phototour" width="176" height="25" border="0"></a>
<BR></td>
or... replace all of this with SSI Code:
<!--#include virtual='/leftNav.inc' --> The code contains descriptive alt tags so I want to weigh the benefit of those against the benefit of having less code on the page. Thanks, Emily |
|
#2
|
|||
|
|||
|
What does leftNav.inc contain?
|
|
#3
|
||||
|
||||
|
Using includes doesn't actually reduce your code when it comes to what a browser sees. Assuming that you are talking about just taking all the code in your first block and placing it in 'leftNav.inc', for it to read your pages, it still has to read the include sections. They just make it tidier when you're coding, plus updates are easier.
And actually, placing your menu on the right hand side is always an option...that way, the spider'll read yr content first. Hope that helps!
__________________
if i've been helpful, please add to my reputation. http://www.gpwebsolutions.com my band's myspace site |
|
#4
|
|||
|
|||
|
includes do make loading faster if more than one page reads the same include
also ALT TAGS!!! yes, they are worth it. (also a lot of people do google image searches and find pages that way) |
|
#5
|
|||
|
|||
|
btw, freejazz is wrong.
EAD specified a SSI 'include' tag. SSI stands for Server Side Include - which means the 'include' is done by the webserver. Making the files SSI instead of plain HTML means the server has more processing to do, and the response may be slower (usually not noticably). However, the exact same HTML is output to the user, and it takes the same time to download it. |
|
#6
|
||||
|
||||
|
Just stumbled upon this thread... I have a great idea; use CSS and XHTML to cut all your code down, and use alt attributes for descriptive explanations of the images, because that's what they're for
![]() Alt attributes really shouldn't be pumped with keywords. Try and be clever with them by making sure you're describing what the picture actually is for someone who is visually impared. If the picture relates to the subject matter of your site then that's good because you will probably be able to slip a couple of keywords in. Search engines read the alt attribute, but the alt attribute isn't for search engines, it's for people who can't see your images. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > are alt tags or less code more important? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|