Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML / <script> tag 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
i'm trying to validate my first XHTML document.

i'm getting this error
there is no attribute "language".

for this line
Code:
<script language="JavaScript"

? is that right , you no longer specify the language for the script tag? does it infer that it's Javascript automaticaly.

are there many of these changes in available tag attributes I should be aware of?

thanks
1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I think you have to use the type attribute now


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
excellent, thanks, this XHTML transition is going to drive me mad, i can tell [curse]

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
If you have a look at the web design groups information on any tags, they will tell you what you are supposed to be using e.g.



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
thanks, Dan, ca8msm, got me on the right track, luckily i already new the syntax for type, so new instantly how to chnage it - for once.

I am stuck on this though, and I know i could google but seings i'm here i might as well ask, I need to do the following to get my HTML template to validate.

1. escape <
2. escape >
3. escape "

now I know the code for left chevron is '&lt;' , what's the right one!

also should I escape " (double_quote) or do what i've just done and use ' (single quote) instead.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
thanks, but I actually feel an idiot for asking, as soon as i'd click submit, i remembered, lt (less than) gt (greater than) i knew that!!!!!

oh for an edit / delete function on Tek-Tips!!!!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top