Czy ktoś mogłby mi je wytłumaczyć??
<?php
echo "<script language="Javascript
">"; echo " function gb_smilie(thesmile) {"; echo " document.commentform.cmttext.value += " "+thesmile+" ";"; echo " document.commentform.cmttext.focus();"; ?>
<?php
<a href=java script:gb_smilie(':x')><img title='Mad' src='components/com_datsogallery/smilies/icon_mad.gif' alt='Mad' border='0' />
?>
<?php
# Error Line 186 column 86: an attribute value specification must be an attribute value
literal unless SHORTTAG YES is specified.
...ign
='center' valign
='middle'><a href
=java script
:gb_smilie
('
')><img title
='V
✉
# Error Line 186 column 106: an attribute value must be a literal unless it cont
ains only name characters.
...'middle'><a href=java script:gb_smilie(':D')><img title='Very Happy' src='comp
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
.
✉
# Error Line 187 column 12: an attribute value specification must be an attribut
e value literal unless SHORTTAG YES is specified.
<a href=java script:gb_smilie(':)')><img title='Smile' src='components/com_da
✉
# Error Line 187 column 32: an attribute value must be a literal unless it conta
ins only name characters.
<a href=java script:gb_smilie(':)')><img title='Smile' src='components/com_da
✉
# Error Line 187 column 38: document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag.
<a href=java script:gb_smilie(':)')><img title='Smile' src='components/com_da
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 188 column 12: an attribute value specification must be an attribut
e value literal unless SHORTTAG YES is specified.
<a href=java script:gb_smilie(':(')><img title='Sad' src='components/com_dats
?>