Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Xhtml Software, ?To use quotes or not?
Mich
post Jan 10 2006, 01:29 AM
Post #1


Trap17 Maverick
***********

Group: [HOSTED]
Posts: 1,111
Joined: 5-January 06
From: Michigan, USA
Member No.: 16,652



I have gone over to W3C and W3 School to try to bring myself up to date on XHTML. When I use their on site validator, it just doesn't like all the quotation marks in the body of my work. sad.gif I get a tremendous amount of errors all pointing at quotation marks in the body. I get the impression that using them is passe'. Is this true? wub.gif Could somebody please tell me where I can get a HTML software that either doesn't use quotation marks, or has an option to not use them? I am currently using Cute HTML LE and cannot find an option to not use the quotes.
Go to the top of the page
 
+Quote Post
Tyssen
post Jan 10 2006, 01:41 AM
Post #2



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



Are you talking about " or &quot; ? Are the quote marks in your actual content (e.g. "he said blah") or are they used in your tags (e.g. <input type="text" ... )?
Go to the top of the page
 
+Quote Post
jlhaslip
post Jan 10 2006, 01:53 AM
Post #3


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,968
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Maybe post a bit of the xhtml code and the w3c validator message that applies? Or post the URL for us to view the source?
Go to the top of the page
 
+Quote Post
Mich
post Jan 10 2006, 02:48 AM
Post #4


Trap17 Maverick
***********

Group: [HOSTED]
Posts: 1,111
Joined: 5-January 06
From: Michigan, USA
Member No.: 16,652



QUOTE(Tyssen @ Jan 9 2006, 08:41 PM)
Are you talking about " or &quot; ? Are the quote marks in your actual content (e.g. "he said blah") or are they used in your tags (e.g. <input type="text" ... )?
*



Never mind. It is lack of them that it is complaining about. It also seems that I have attributes in my HTML, that XHTML wants put in a ccs file. I run my stuff through CSE HTML Validator and it comes up clean. Their validator is really strict.

Error Line 13 column 27: an attribute value must be a literal unless it contains only name characters.
<BODY text="#d1a9d5" vLink=#808080 alink="#d1a9d5" link="#d1a9d5" bgColor="#0129" background="gardenia/gardenia_maincolor.jpg">
You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary. (IT IS REFERING TO #808080 WHICH IS NOT IN QUOTES)



BUT I DON'T UNDERSTAND THIS ONE! Since when can't you put background in a table?
Error Line 17 column 77: there is no attribute "BACKGROUND".
<table cellspacing=0 cellpadding=1 width="100%" bgcolor="#D3C177" background="gardenia/gardenia_goldstrip.jpg" border=0>


go to W3C

click on the HTML Validator in left column under W3C AtoZ

Put your url in the appropriate box and see what you get. It is really scary.
Go to the top of the page
 
+Quote Post
Tyssen
post Jan 10 2006, 03:24 AM
Post #5



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



If you're designing in XTHML with a strict doctype, you can't have any background information in your HTML. You have to assign a class or ID to the table or cell instead and then put the background info in your CSS. It's not that scary really. Instead of

CODE
<table cellspacing=0 cellpadding=1 width="100%" bgcolor="#D3C177" background="gardenia/gardenia_goldstrip.jpg" border=0>

you'd do this:

CODE
<table id="whatever">

/* CSS */
table#whatever {
width: 100%;
background: #D3C177" url(gardenia/gardenia_goldstrip.jpg) no-repeat;
border: none;
border-collapse: collapse;
}

table#whatever td { padding: 1px; }
Go to the top of the page
 
+Quote Post
jlhaslip
post Jan 10 2006, 03:29 AM
Post #6


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,968
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Must be something else happening there, because the w3schools has a sample here using a jpg as a background in xhtml.
What Doc type are you using, Mich?

This post has been edited by jlhaslip: Jan 10 2006, 03:32 AM
Go to the top of the page
 
+Quote Post
Mich
post Jan 10 2006, 08:04 AM
Post #7


Trap17 Maverick
***********

Group: [HOSTED]
Posts: 1,111
Joined: 5-January 06
From: Michigan, USA
Member No.: 16,652



QUOTE(jlhaslip @ Jan 9 2006, 10:29 PM)
Must be something else happening there, because the w3schools has a sample here using a jpg as a background in xhtml.
What Doc type are you using, Mich?
*

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
BUT when I use the validator it says
This page is not Valid HTML 4.0 Transitional!
I am validating www.websetsbydonna.com/index.html
Go to the top of the page
 
+Quote Post
Tyssen
post Jan 10 2006, 10:46 AM
Post #8



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(Mich @ Jan 10 2006, 06:04 PM)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
BUT when I use the validator it says
This page is not Valid HTML 4.0 Transitional!
I am validating www.websetsbydonna.com/index.html


Well, if having your page validate is important to you, you're gonna have to address the errors.
By the way, just a comment about this:

QUOTE
If you are behind a "FIREWALL" and the graphics are not showing, you may have to adjust your settings or take it down to view this site.

Who do you think is going to go to the trouble of turning their firewall off just to see graphics on your site? Why can't you get your graphics to view properly despite firewall settings? No-one else seems to have any trouble.
Go to the top of the page
 
+Quote Post
Mich
post Jan 11 2006, 05:07 AM
Post #9


Trap17 Maverick
*******