Difference between revisions of "Sp 111"

From Htmlpedia
Jump to: navigation, search
m
 
(Added examples and a solution.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
+
== OpenSP: An attribute value literal can occur in an attribute specification list only after a VI delimiter ==
== OpenSP: an attribute value literal can occur in an attribute specification list only after a VI delimiter ==
 
 
=== Cause: ===
 
=== Cause: ===
 
Have you forgotten the "equal" sign marking the separation  
 
Have you forgotten the "equal" sign marking the separation  
Line 7: Line 6:
  
 
=== Example: ===
 
=== Example: ===
<bad>textexample textexample</bad>
+
<bad>&lt;div class"post"&gt;</bad>
<good>textexample textexample</good>
+
<good>&lt;div class="post"&gt;</good>
 
=== Solution: ===
 
=== Solution: ===
textexample textexample
+
Make sure your attribute/value pairs are separated by an equals sign.
 
=== References: ===
 
=== References: ===
 
* W3 validator: http://validator.w3.org/
 
* W3 validator: http://validator.w3.org/

Latest revision as of 17:16, 3 March 2008

OpenSP: An attribute value literal can occur in an attribute specification list only after a VI delimiter

Cause:

Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".

Example:

Bad<div class"post">
Good<div class="post">

Solution:

Make sure your attribute/value pairs are separated by an equals sign.

References: