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
Please help my site stay W3C valid
Old 04-15-2008, 08:06 AM Please help my site stay W3C valid
Super Talker

Posts: 144
Trades: 0
Dear friends,

I have implemented Google custom search engine in http://www.tutorialsroom.com, now my site generate 4 warnings in W3C validation

All with the same error: " NET-enabling start-tag requires SHORTTAG YES." and pointing to a slash like this:
<input type="hidden" name="cof" value="FORID:11" />

I didn't really understand the error and why it's there!
I use DOCTYPE HMTL 4.01 Traditional.
I have learned from this form years ago that validation is important so I emailed Google asking them for a permission to remove this slash but I wanted to learn more about this error and how to fix it without removing the slash if they didn't allow me.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
AHelpingHand is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-15-2008, 09:01 AM Re: Please help my site stay W3C valid
A Monkey Typing's Avatar
Super Talker

Latest Blog Post:
Valid Markup and the W3C
Posts: 117
Location: Northeastern PA
Trades: 0
You don't need self-closing tags in HTML, they are used in XHTML.

Code:
      <!-- Google CSE Search Box Begins  -->
      <form action="http://www.tutorialsroom.com/search.html" id="cse-search-box">
        <input type="hidden" name="cx" value="015920113099017421260:rbumrqn-d-8" >
        <input type="hidden" name="cof" value="FORID:11" >
        <input type="text" name="q" size="25" >
        <input type="submit" name="sa" value="Search" >
      </form>
      <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
      <!-- Google CSE Search Box Ends -->
__________________

Please login or register to view this content. Registration is FREE
Webdesign Monkeybusiness
A Monkey Typing is offline
Reply With Quote
View Public Profile Visit A Monkey Typing's homepage!
 
Old 04-15-2008, 09:28 AM Re: Please help my site stay W3C valid
Webmaster Talker

Posts: 560
Trades: 0
Also, you may want to eventually consider changing to XHTML/CSS. I believe DOCTYPE HMTL 4.01 Traditional is a bit outdated.

Matt
__________________

Please login or register to view this content. Registration is FREE
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 09:45 AM Re: Please help my site stay W3C valid
Super Talker

Posts: 144
Trades: 0
Quote:
Originally Posted by A Monkey Typing
You don't need self-closing tags in HTML, they are used in XHTML.
I know this would fix it, but wouldn't that be a violation to Goggle TOS about modifying the code?

Quote:
Originally Posted by 170 Designs
Also, you may want to eventually consider changing to XHTML/CSS. I believe DOCTYPE HMTL 4.01 Traditional is a bit outdated.
I'm already using css, I do not use any html for formatting, please tell my what I need to modify in order to move to XHTML, I only use standard usual HTML tags
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
AHelpingHand is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 09:51 AM Re: Please help my site stay W3C valid
Webmaster Talker

Posts: 560
Trades: 0
Well you would of course need a different DOCTYPe. See here for more info regarding this:
http://htmlhelp.com/tools/validator/doctype.html

And then your HTML code would of course change as well. It would basically be replacing/editing, not so much adding, your existing HTML. Here's a reference guide with the proper XHTML tags. Just click on the ones you "need" for more info:
http://www.w3schools.com/tags/default.asp

Matt
__________________

Please login or register to view this content. Registration is FREE
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 10:07 AM Re: Please help my site stay W3C valid
A Monkey Typing's Avatar
Super Talker

Latest Blog Post:
Valid Markup and the W3C
Posts: 117
Location: Northeastern PA
Trades: 0
Quote:
Originally Posted by AHelpingHand View Post
I know this would fix it, but wouldn't that be a violation to Goggle TOS about modifying the code?
Do you really think Google cares if you do or don't have the trailing slashes? I don't. With or without the warnings, your page is still valid HTML Transitional.

Quote:
Originally Posted by AHelpingHand View Post
I'm already using css, I do not use any html for formatting, please tell my what I need to modify in order to move to XHTML, I only use standard usual HTML tags
You will have to fix 101 errors if you want to switch to XHTML Strict. Most of them are because XHTML requires the self-closing tags, and you simply need a slash. You'll also have to remove your target attribute from your anchor tags. It also seems to be giving an error with your google form.

Code:
# Error  Line 47, Column 58: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag .

        <input type="hidden" name="cof" value="FORID:11" />

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
# Error Line 48, Column 47: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag .

        <input type="text" name="q" size="25" />

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
I don't think it's worth it
__________________

Please login or register to view this content. Registration is FREE
Webdesign Monkeybusiness
A Monkey Typing is offline
Reply With Quote
View Public Profile Visit A Monkey Typing's homepage!
 
Old 04-15-2008, 10:22 AM Re: Please help my site stay W3C valid
Super Talker

Posts: 144
Trades: 0
Yes, I agree with you, changing to XHTML seems a lot of work for nothing in return (at least for my site). So I only have three choices left, take the risk and remove the slashes, live with those 4 warnings for the rest of my life or change the search completely with another free one!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
AHelpingHand is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 10:28 AM Re: Please help my site stay W3C valid
A Monkey Typing's Avatar
Super Talker

Latest Blog Post:
Valid Markup and the W3C
Posts: 117
Location: Northeastern PA
Trades: 0
Take the risk and live dangerously

__________________

Please login or register to view this content. Registration is FREE
Webdesign Monkeybusiness
A Monkey Typing is offline
Reply With Quote
View Public Profile Visit A Monkey Typing's homepage!
 
Old 04-15-2008, 02:25 PM Re: Please help my site stay W3C valid
Super Talker

Posts: 144
Trades: 0
You know, the worst thing about Google search is that your visitors could only search what Google has indexed which is not good. I was searching for a free search engine script and found many on the web (ie Sphider, mnoGoSearch...etc) I'm just worried about security, I don't know which one is the most secure!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
AHelpingHand is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 03:44 PM Re: Please help my site stay W3C valid
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
What is HTML 4.01 Traditional? I've never heard of that...
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-15-2008, 05:42 PM Re: Please help my site stay W3C valid
Super Talker

Posts: 144
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
What is HTML 4.01 Traditional? I've never heard of that...
It's a typo I meant
HTML 4.01 Transitional
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
AHelpingHand is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 06:39 PM Re: Please help my site stay W3C valid
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
lol, tranditional
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 09:32 PM Re: Please help my site stay W3C valid
Ako
Ako's Avatar
Average Talker

Posts: 22
Trades: 0
Quote:
Originally Posted by AHelpingHand View Post
It's a typo I meant
HTML 4.01 Transitional
Lol, this is too traditional......( get it)

OK, I am out.
Ako is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Please help my site stay W3C valid
 

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.91976 seconds with 12 queries