Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Doc type and validation probs, please help!
Old 03-16-2007, 02:04 PM Doc type and validation probs, please help!
Novice Talker

Posts: 5
Name: Justin T
Trades: 0
Hi all

I stopped using Dreamweaver MX about 1/2 years ago and started hand coding but recently I have realised that my webpages dont' validate.
I used:
http://validator.w3.org/check?verbos...reylizard.net/

Not sure if my Character Encoding is wrong right from the start,
bit confused, used to let Dreamweaver do it for me, using this
one at the moment:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Can anyone give me some tips as I'm not quite sure what I need.

My site is at: http://www.greylizard.net/

Regards

Justin
justin t is offline
Reply With Quote
View Public Profile Visit justin t's homepage!
 
 
Register now for full access!
Old 03-16-2007, 02:17 PM Re: Doc type and validation probs, please help!
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Justin - all of the DOCTYPE Declarations are shown here
travelagent is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 02:20 PM Re: Doc type and validation probs, please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
It's not your DOCTYPE - it's your coding:

Quote:
line 19 column 109 - Warning: discarding unexpected </img>
line 27 column 94 - Warning: discarding unexpected </img>
line 30 column 64 - Warning: discarding unexpected </input>
line 31 column 64 - Warning: discarding unexpected </input>
line 32 column 47 - Warning: discarding unexpected </input>
line 40 column 66 - Warning: discarding unexpected </input>
line 44 column 66 - Warning: discarding unexpected </input>
line 49 column 65 - Warning: discarding unexpected </input>
line 50 column 45 - Warning: discarding unexpected </input>
line 51 column 56 - Warning: discarding unexpected </input>
line 52 column 51 - Warning: discarding unexpected </input>
line 53 column 51 - Warning: discarding unexpected </input>
line 54 column 47 - Warning: discarding unexpected </input>
line 55 column 58 - Warning: discarding unexpected </input>
line 56 column 178 - Warning: discarding unexpected </input>
line 57 column 43 - Warning: discarding unexpected </input>
line 64 column 1 - Warning: missing <li>
line 125 column 72 - Warning: unescaped & or unknown entity "&cat"
line 125 column 81 - Warning: unescaped & or unknown entity "&ID"
line 17 column 1 - Warning: <table> lacks "summary" attribute
line 24 column 1 - Warning: <table> lacks "summary" attribute
line 37 column 1 - Warning: <table> lacks "summary" attribute
line 73 column 1 - Warning: <table> lacks "summary" attribute
line 76 column 1 - Warning: <table> lacks "summary" attribute
line 88 column 1 - Warning: <table> lacks "summary" attribute
line 98 column 1 - Warning: <table> lacks "summary" attribute
line 109 column 1 - Warning: <table> lacks "summary" attribute
line 131 column 1 - Warning: <div> anchor "topbox" already defined
line 133 column 1 - Warning: <table> lacks "summary" attribute
line 171 column 1 - Warning: <table> proprietary attribute "bordercolor"
line 171 column 1 - Warning: <table> lacks "summary" attribute
line 172 column 5 - Warning: <table> lacks "summary" attribute
line 69 column 12 - Warning: trimming empty <address>
line 86 column 1 - Warning: trimming empty <p>
line 87 column 1 - Warning: trimming empty <p>
line 96 column 1 - Warning: trimming empty <p>
line 97 column 1 - Warning: trimming empty <p>

0 errors / 37 warnings
The error messages seem pretty clear
- if you're going to define an unordered list, then you must have list items inside the <ul>
<ul>
<li>item1</li>
<li>item2</li>
</ul>

ID's MUST be UNIQUE

It appears you're missing a closing <div> tag.

Scrap the deprecated <font> tags and use CSS properly for styling text.
Scrap the tables and use divs and CSS to lay out your page
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 02:31 PM Re: Doc type and validation probs, please help!
Novice Talker

Posts: 5
Name: Justin T
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Scrap the deprecated <font> tags and use CSS properly for styling text.
Scrap the tables and use divs and CSS to lay out your page
I am using CSS for layout but having trouble using CSS for text formatting as it always seems to force a pagebreak in, like:
<h1>Hello</h1>
<h2>bye</h2>

Will make:

"Hello

bye"

suppose I need some training or something, but what is that point for a silly homesite.

Justin
justin t is offline
Reply With Quote
View Public Profile Visit justin t's homepage!
 
Old 03-16-2007, 02:42 PM Re: Doc type and validation probs, please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Well, Hx tags are meant to be HEADINGS, they are BLOCK LEVEL elements, so they extend across the entire width of the container and have default spacing above and below.

In your CSS, you can zero out the default margin and padding for everything, including HX tags:

h1, h2, h3, h4{
margin: 0;
padding: 0;
}

You should also always zero out the margin and padding on the body too.

Then when you use an H1 tag, you add back margin and padding as needed, as well as changing color, font size, etc.

As long as you are using tables for structure, you are not properly using divs and CSS.

Quote:
but what is that point for a silly homesite.
Would you deliberately build yourself a shack to live in if you were building a HOME ? No, so your own personal site should be built to be the best you can make it. Why settle for a hovel when you can build a mansion ??? You have to start learning somewhere.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 02:58 PM Re: Doc type and validation probs, please help!
Novice Talker

Posts: 5
Name: Justin T
Trades: 0
Quote:
Originally Posted by LadynRed View Post
- if you're going to define an unordered list, then you must have list items inside the <ul>
<ul>
<li>item1</li>
<li>item2</li>
</ul>

I messed up my <li> tags because when I checked the cashe page on google the items went one after the other like this:

1

2

3

4

5

and not 1 2 3 4 5

I could not convince myself this would not have a negative impact on my search engine results (I thought google looks at items at the top of the page as most important.

Justin
justin t is offline
Reply With Quote
View Public Profile Visit justin t's homepage!
 
Old 03-16-2007, 04:36 PM Re: Doc type and validation probs, please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Not necessarily. You might want to look at Google's Webmaster Central.

If you want a horizontal list rather than vertical, you need to do it this way :

menu li{
display: inline;
}
http://css.maxdesign.com.au/listutorial/index.htm
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 04:44 PM Re: Doc type and validation probs, please help!
Novice Talker

Posts: 5
Name: Justin T
Trades: 0
I have changed one row of my top menu (on the inner site www.greylizard.net/justinssquat.php) to be inline horizontal.

Ok I don't want to make this a 'tell justin how to do css' thread but I had one thing to ask which I can't find the answer to anywhere on the net

if I want 2 sizes of <ul> how would I do that?
ie my top menu has two rows:

The first nav row
the second nav row

I was also looking at how to have more text formatting strings rather than just <h1,2,3etc>

Justin

Last edited by justin t; 03-16-2007 at 04:46 PM..
justin t is offline
Reply With Quote
View Public Profile Visit justin t's homepage!
 
Old 03-16-2007, 06:38 PM Re: Doc type and validation probs, please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Create 2 classes, (or ids), 1 for each UL.
Specify the sizing, color, etc. for each class.

.navRow{
font-size: 150%;
color: blue;
list-style: none;
margin: 2px 5px 3px 5px;
padding: 0;
}

.secondNav{
font-size: 80%;
color: green;
margin: 6px 2px 3px 2px;
padding: 2px;
}

Then in your HTML you use
<ul class="navRow">
<li><li>
</ul>
<ul class="secondNav">
<li>items</li>
</ul>

You can format any text you want using any styling. You can style whole paragraphs, or style just parts of a paragraph or word using the <span> tag. The point is to use SEMANTIC markup - make a heading a HEADING, make a list a LIST, etc.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 07:29 PM Re: Doc type and validation probs, please help!
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Dang -- we're still messing with this all day today, after the original question was about the correct DOCTYPE Declaration?

Maybe it's time to punt and start over...
travelagent is offline
Reply With Quote
View Public Profile
 
Old 03-16-2007, 07:52 PM Re: Doc type and validation probs, please help!
Novice Talker

Posts: 5
Name: Justin T
Trades: 0
Maybe its time I went to css school
justin t is offline
Reply With Quote
View Public Profile Visit justin t's homepage!
 
Old 03-16-2007, 07:55 PM Re: Doc type and validation probs, please help!
Banned

Posts: 905
Name: Travel Agent
Trades: 0
LOL -- I tried to send you to W3C school this moring...
travelagent is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Doc type and validation probs, please help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37276 seconds with 12 queries