|
#1
|
|||
|
|||
|
I have configured our new free HG template #729 (without flash) and it appears to be working well (see Community Communications). We love it.
Today I ran, for the first time, the HTML Validator test and got 45 errors. Yikes! I wanted to see how many errors I had caused and so I installed a default unedited copy of the 729 template without any changes and again got 45 errors. (See below) The first thing I need is to know what doc type to enter at the very top (before <html>)? I'm a old Frontpage user (FP enters all the tags and HTML automatically) Now we use Expressions Web but it too doesn't require much fundamental knowledge about tags and HTML. I don't know how to contact "Roger" the template author. Thanks, Kerry Here's the Validator result of running a clean install of HG's template #729 on /729test/index.htm without any editing. Quote:
Last edited by iKerry; 12-10-2008 at 04:50 PM. |
|
#2
|
||||
|
||||
|
It's HTML 4.01 transitional so use this at the DOCTYPE statement. It must be the first line of the file.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
__________________
- David |
|
#3
|
|||
|
|||
|
Not all templates are W3C Validated, you would need to re-code a little bit to make them work with w3 standards.
|
|
#4
|
||||
|
||||
|
What a great learning experience! It's almost like someone made up some teaching exercises.
|
|
#5
|
|||
|
|||
|
I added <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> before the <html> of 279test/index.htm and it caused the tabs "Home Page, About Us, etc." to mover to the far left. (see default unedited copy of the 729 template ).
Suggestions? Kerry |
|
#6
|
||||
|
||||
|
Quote:
Looks like you test page and your "live" page are slightly different besides the DOCTYPE declaration. Can you copy your "live" page as another test page and use that to experiment with. Begin by inserting the DOCTYPE declaration.
__________________
- David |
|
#7
|
|||
|
|||
|
Here's a copy of the live page. http://www.comcom121.org/279test2/index.htm I removed the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> so that it's just as I installed it.
Sure would be nice if I could get this right. Never in 10 years, with 15 webs, have I done it correctly. Thanks, Kerry |
|
#8
|
||||
|
||||
|
If you are going to use that DOCTYPE you have to specify px in your padding statements.
style="padding:62 0 0 475; has to be style="padding:62px 0px 0px 475px; and so on and so on and so on.... Stephen |
|
#9
|
||||
|
||||
|
After adding px I got some weirdness in the position of the rollovers, I put each on a separate line (make sure no white space in between) and seems to be fixed:
Code:
<div style="padding:7px 0px 0px 110px ">
<a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/mainrol.jpg',1)">
<img src="images/main.jpg" name="Image1" width="98" height="31" border="0"></a><a href="index-1.htm" style="margin-left:3 " onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/aboutrol.jpg',1)">
<img src="images/about.jpg" name="Image2" width="115" height="31" border="0"></a><a href="index-2.htm" style="margin-left:3 " onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/contrrol.jpg',1)">
<img src="images/contr.jpg" name="Image3" width="112" height="31" border="0"></a><a href="index-3.htm" style="margin-left:3 " onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/servrol.jpg',1)">
<img src="images/serv.jpg" name="Image4" width="107" height="31" border="0"></a><a href="#" style="margin-left:3 " onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/control.jpg',1)">
<img src="images/cont.jpg" name="Image5" width="100" height="31" border="0"></a></div>
|
|
#10
|
|||
|
|||
|
|
|
#11
|
||||
|
||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Will force "quirks" mode. It displays ok locally for me in Firefox, IE and Opera, so it should work. Quirks mode forces modern browsers (IE 6+, Netscape 6+, Mozilla 1+, Safari 1+, Opera 6+) to render more like older browsers (IE 5, Netscape 4, etc.), but supporting any new tags. There are reasons not to use quirks mode but the template was probably written using an older browser so should work fine. Stephen |
|
#12
|
||||
|
||||
|
Aloha Kerry,
4.01 Transitional is the closest DOCTYPE to the way your template is coded. To change it to say xhtml you have much more re-coding to do. Looks like the template creator didn't bother to check if the code validated correctly. This is why you may have some visitors with a less than ideal visual experience.
__________________
- David |
|
#13
|
|||
|
|||
|
The Quirks mode DOCTYPE works. http://www.comcom121.org/279test2/. It immediately fixed the tab positioning error.
I'll see what other errors Validator brings up later this week. Thanks everyone, Kerry |
|
#14
|
|||
|
|||
|
Is this OK? It sure looks weird.
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns ="urn:schemas-microsoft-com ffice ffice">It came with the template. Opps, the : and o turn to smilies. Kerry |
|
#15
|
||||
|
||||
|
Quote:
Beats me, some kinda strange MS Word add-on. I doubt you need it. |
|
#16
|
|||
|
|||
|
I've removed it from the /279test2/ template and replaced it with <html> and it doesn't appear to have effected the display when using IE, FF, Safari, or Opera.
Thanks, Kerry |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WANTED : Free HTML Template for Dating Website | AspenIT.co.uk | Web Hosting Services | 1 | 03-20-2008 08:43 AM |
| FREE SPACE ZOOM - World's Latest Free Web Hosting Discussion Forum | ssudaraka | Site Promotion | 0 | 02-10-2008 04:48 AM |
| Spamassassin remove-markup | lsimpson | Shared Hosting Support | 0 | 11-21-2007 06:09 PM |
| Content-type: text/html appearing at top of index.html page | acketon | Shared Hosting Support | 4 | 07-21-2007 11:35 AM |
| html template conversion to Joomla/Mambo | lastprotocol | Web Hosting Services | 4 | 03-12-2007 03:42 AM |
All times are GMT -5. The time now is 02:36 PM.





="urn:schemas-microsoft-com




