Re: [WSG] help needed in validating webpage

2006-04-12 Thread Lachlan Hunt

Shawn J. Cassick wrote:

Germ wrote:

Again another thing that im not 100% sure on

the strict DTD for XHTML1.0 doesnt allow javascript right???


What?  Of course it allows javascript.

//

Note: Don't use , as is common for HTML 4
http://lachy.id.au/log/2005/05/script-comments

you need to add another meta tag to define what form of text you are 
using, if it is UTF-8 or 16, Unicode, etc.  if it is utf-8 just add this 
inbetween the 


The character encoding is a completely separate issue and doesn't seem 
relevant to the question about JavaScript; but it is still important to 
get it right.






No, that is wrong for XHTML.  Do not use that meta element in XHTML at 
all, set proper HTTP headers to declare the encoding (even if you're 
serving it as text/html)


http://lachy.id.au/log/2006/01/content-type

--
Lachlan Hunt
http://lachy.id.au/
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-12 Thread Germ
Mmmm it is actually an external _javascript_ file.

I will play around with the other suggestions (look at webpages etc)

On 4/12/06, Peter Williams <[EMAIL PROTECTED]> wrote:
From: Germ> Again another thing that im not 100% sure on> the strict DTD for XHTML1.0 doesnt allow _javascript_ right???> so if u want _javascript_ included u wuld use the loose DTD??> Am i right in saying this???
Use an external _javascript_ file.--Peter Williams**The discussion list for  http://webstandardsgroup.org/
 See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help**
-- GermWorkshttp://www.germworks.nethttp://germworks.blogspot.com/
http://www.germworks.net/Phantom


Re: [WSG] help needed in validating webpage

2006-04-12 Thread Shawn J. Cassick

Germ wrote:

Again another thing that im not 100% sure on

the strict DTD for XHTML1.0 doesnt allow javascript right???

so if u want javascript included u wuld use the loose DTD??

Am i right in saying this???
you need to add another meta tag to define what form of text you are 
using, if it is UTF-8 or 16, Unicode, etc.  if it is utf-8 just add this 
inbetween the 





**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-12 Thread Gunlaug Sørtun

Germ wrote:
Result: Tentatively passed validation  File:Cartoon.html 
Encoding:utf-8 Doctype:XHTML 1.0 Strict Root Namespace: 
http://www.w3.org/1999/xhtml   No Character Encoding Found! Falling 
back to UTF-8.


A couple of W3C pages pointing at the issue...

1: 
2: 

Putting something like the following in the page head won't do much good
anywhere else, but will usually satisfy the validator...





the strict DTD for XHTML1.0 doesnt allow javascript right???


No. All flavors of HTML and XHTML allow for javascript.

Plenty of other potential "traps" when it comes to XHTML though, so if
you want to mark up in accordance with the XHTML standards, then you
you've got no choice but to learn it right and to do it right - all the
way and all the time.

A few hints...



Have a look at the XHTML FAQ for more...



regards
Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



RE: [WSG] help needed in validating webpage

2006-04-12 Thread Peter Williams
From: Germ
> Again another thing that im not 100% sure on
> the strict DTD for XHTML1.0 doesnt allow javascript right???
> so if u want javascript included u wuld use the loose DTD??
> Am i right in saying this???

Use an external javascript file.
 
--
Peter Williams

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-12 Thread Joshua Street
On 4/12/06, Germ <[EMAIL PROTECTED]> wrote:
>  the strict DTD for XHTML1.0 doesnt allow javascript right???
>
>  so if u want javascript included u wuld use the loose DTD??
>
>  Am i right in saying this???

Nope. :-)
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-11 Thread Germ
Again another thing that im not 100% sure on

the strict DTD for XHTML1.0 doesnt allow _javascript_ right???

so if u want _javascript_ included u wuld use the loose DTD??

Am i right in saying this???



Re: [WSG] help needed in validating webpage

2006-04-11 Thread Germ
Ok I have fixed up the problems and worked around them (got rid of "target" etc)

So wen i valiadted I have no 'errors' but i get this message:



Result:


  
Tentatively passed validation
  





  File:Cartoon.html





Encoding:utf-8
Doctype:XHTML 1.0 Strict



  Root Namespace:
  http://www.w3.org/1999/xhtml



  






  
  


No Character Encoding Found!

  Falling back to 

UTF-8.
  
  

  I was not able to extract a character encoding labeling from any of
  the valid sources for such information. Without encoding information
  it is impossible to reliably validate the document. I'm falling back
  to the "UTF-8" 
  encoding and will attempt to perform the validation,
  but this is likely to fail for all non-trivial documents.

  
  
Read the FAQ 
entry on character encoding for more details and pointers on how to fix this problem with your document.
  
  



  

  

Note:
The Validator XML support has
some limitations.


wat does this mean???
Thanks again for all you guys (and girls) help



Re: [WSG] help needed in validating webpage

2006-04-11 Thread Gunlaug Sørtun

Germ wrote:
So u can actually apply the "float: left" to the image instead of 
"align:left"


See: 
...for details about the float-property.

Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-11 Thread Germ
So u can actually apply the "float: left" to the image instead of "align:left"
 > 3.- attribute align doesn´t exists on DTD strict. You can use> text-align:right in your css
>> i might play around with tat idea, makes senseYou have a few options.Since it is images you want to align, you should apply 'float: right;'directly to the image instead. You've got 'float:left' and ':right', but
no ':center' of course.To center an image: apply 'text-align: center;' to the element/containerthe image is inside. Note that this will also center text, so paragraphsinside the same element/container will need 'text-align: left;' defined
on them.regardsGeorg--http://www.gunlaug.no**The discussion list for  
http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help
**-- GermWorkshttp://www.germworks.net
http://germworks.blogspot.com/http://www.germworks.net/Phantom


Re: [WSG] help needed in validating webpage

2006-04-11 Thread Gunlaug Sørtun

Germ wrote:
The reason i have the "target" is so it can open up in a new page. 
but it culd dispaear if its easier


Plenty of dispute around the (un)usefulness / (un)friendliness of
opening new windows/tabs.
My advice is: don't use 'target' and don't open new windows/tabs.
That way you can also keep your markup at a Strict level, which will
probably make all future work less problematic.

3.- attribute align doesn´t exists on DTD strict. You can use 
text-align:right in your css


i might play around with tat idea, makes sense


You have a few options.
Since it is images you want to align, you should apply 'float: right;'
directly to the image instead. You've got 'float:left' and ':right', but
no ':center' of course.
To center an image: apply 'text-align: center;' to the element/container
the image is inside. Note that this will also center text, so paragraphs
inside the same element/container will need 'text-align: left;' defined
on them.

regards
Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-11 Thread Germ
The reason i have the "target" is so it can open up in a new page. but it culd dispaear if its easier

3.- attribute align doesn´t exists on DTD strict. You can use text-align:right
in your css

i might play around with tat idea, makes sense


On 4/11/06, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
Peter Williams wrote:>> http://www.germworks.net> Short answer: Change your doctype to transitional, it will allow> those attributes.Not a good solution, but if that 'target' *must* stay in there, then it
is probably the best one.> Long answer: Standby for Lachlan's reply on the evils of serving> XHTML as text/html.Someone must be riding the wrong pony here... :-)...or maybe the pony ran away ;-)
regardsGeorg--http://www.gunlaug.no**The discussion list for  
http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help
**-- GermWorkshttp://www.germworks.net
http://germworks.blogspot.com/http://www.germworks.net/Phantom


Re: [WSG] help needed in validating webpage

2006-04-11 Thread Gunlaug Sørtun

Peter Williams wrote:

http://www.germworks.net


Short answer: Change your doctype to transitional, it will allow 
those attributes.


Not a good solution, but if that 'target' *must* stay in there, then it
is probably the best one.

Long answer: Standby for Lachlan's reply on the evils of serving 
XHTML as text/html.


Someone must be riding the wrong pony here... :-)
...or maybe the pony ran away ;-)

regards
Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



RE: [WSG] help needed in validating webpage

2006-04-11 Thread Peter Williams
From: Germ
> I have a webpage (http://www.germworks.net) 
> Error Line 35 column 9: there is no attribute "target".


Short answer:
Change your doctype to transitional, it will allow those attributes.

Long answer:
Standby for Lachlan's reply on the evils of serving XHTML as text/html.

--
Peter Williams
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] help needed in validating webpage

2006-04-10 Thread felix . zapata

hi, about your problems:

1.- target attribute doesn´t exists on DTD strict.

http://domscripting.com/blog/display/56
http://www.456bereastreet.com/archive/200603/the_target_attribute_and_opening_new_windows/

2.- attribute language is not necessary so you can remove it
3.- attribute align doesn´t exists on DTD strict. You can use text-align:right
in your css
4.- equal that point 3, you can use text-align:center to move your content..





Quoting Germ <[EMAIL PROTECTED]>:


Hi
My name is Jermayn Parker and a new member (so please excuss me ignorance in
how this works etc)

I have a webpage (http://www.germworks.net) and as i was validating it via
extension on Firefox and i recieved the following errors:

I was wondering how would i get around these problems, is there some code i
could use instead or would I have to have my doctype as the loose instead of
strict

Thanks in advance for any help

Below are the results of checking this document for XML
well-formednessand
validity.

  1. Error *Line 35 column 9*: there is no attribute "target".

target=*"*_blank">example) or an interactive website? (http://www.g

   You have used the attribute named above in your document, but the
  document type you are using does not support that attribute for this
  element. This error is often caused by incorrect use of the "Strict"
  document type with a document that uses frames (e.g. you must use the
  "Transitional" document type to get the "target" attribute), or by using
  vendor proprietary extensions such as "marginheight" (this is usually fixed
  by using CSS to achieve the desired effect instead).

  This error may also result if the element itself is not supported in
  the document type you are using, as an undefined element will have no
  supported attributes; in this case, see the element-undefined error message
  for further information.

  How to fix: check the spelling and case of the element and attribute,
  (Remember XHTML is all lower-case) and/or check that they are both allowed
  in the chosen document type, and/or use CSS instead of this attribute.


✉
  2. Error *Line 40 column 19*: there is no attribute "language".