Forum Moderators: open

Message Too Old, No Replies

unclosed start-tag requires SHORTTAG YES

how to fix?

         

claire2005

1:15 am on Nov 10, 2008 (gmt 0)

10+ Year Member



i did try 'search' in the forum and couldn't find the answer (but i have found a lot of other answers to my other questions!)

this validation output error is actually in my <title>XX, X & XX</title>

there isn't a whole lot there (in that line of code)...for the life of me i can't figure out what the problem is.

thanks

encyclo

1:26 am on Nov 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are probably missing a closing right-angle bracket
>
somewhere before the line in question, probably the previous line. Do you have something like
[b]<head[/b]
instead of
[b]<head>[/b]
?

(Another problem you have is that the

&
should be written as
&amp;
- but that should trigger a different warning.)

claire2005

5:37 pm on Nov 11, 2008 (gmt 0)

10+ Year Member



thanks, i will double check that.

how about 'NET-enabling start-tag requires SHORTTAG YES.' on the following

there is more to the front of this code...but here is the ending /2cJSYOI=" />;

it is putting the 'back slash' and 'closing right angle bracket' in red (and it looks like it saying to remove both of them to make it correct).

essiw

5:39 pm on Nov 11, 2008 (gmt 0)

10+ Year Member



what is your doctype?

claire2005

5:46 pm on Nov 11, 2008 (gmt 0)

10+ Year Member



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

sorry, one more error that seemed to spew out a bunch of lines

required attribute "ALT" not specified.

it has in RED the closing right angle bracket (>) on each of these lines.

thanks

[edited by: eelixduppy at 1:39 am (utc) on Nov. 12, 2008]
[edit reason] disabled smileys [/edit]

essiw

6:19 pm on Nov 11, 2008 (gmt 0)

10+ Year Member



shortagg yes, means the slash ("/") on the end must be deleted (because you don't use xhtml)

attribute alt is only with images if i am right:
alt is for search engines so they can find images ;) so you have to do it like this: <img src="example.jpg" alt="example" title="what you want to let people see if they hover with their mouse over the picture"> alt is required title isn't. you can put an empty alt in there (alt="").
also be warned internet explorer uses alt the same ways as title so if you don't want people see the text you putted in alt you have to put an empty title atribute (title="")