MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Uživatelský manuál Strana 21

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 28
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 20
Customizing Macromedia Dreamweaver MX 21
You can include !Error and !Warning within the !ELEMENT or the !ATTLIST area.
!msg messages can contain only plain text.
HTML comments (<!-- -->) cannot be listed as tags in browser profiles because they
interfere with parsing. Dreamweaver does not report an error for comments, because all
browsers support them.
The syntax for a tag entry is as follows:
<!ELEMENT htmlTag NAME="tagName" >
<!ATTLIST htmlTag
unsupportedAttribute1!Error !msg="The unsupportedAttribute1
attribute of the htmlTag tag is not supported. Try using
supportedAttribute1 for a similar effect."
supportedAttribute1
supportedAttribute2( validValue1 | validValue2 | validValue3 )
unsupportedAttribute2!Error !msg="Don’t ever use the
unsupportedAttribute2 attribute of the htmlTag tag!"
>
The elements shown in the above syntax are defined as follows:
htmlTag is the tag as it appears in an HTML document.
tagName is an explanatory name for the tag; for example, the name for the HR tag is “Horizontal
Rule.” The
NAME attribute is optional. If specified, tagName is used in error messages; if you do
not supply a name, htmlTag is used in error messages.
unsupportedAttribute is an attribute that is not supported. Any tags or attributes not
specifically mentioned as supported attributes are assumed to be unsupported. Specify
unsupported tags or attributes only when you want to create a custom error message.
supportedAttribute is an attribute that is supported by htmlTag. Only tags listed without an
!Error designation are considered to be supported by the browser.
validValue indicates a value that is supported by the attribute.
The following example shows an entry for the
APPLET tag that would be accurate for Navigator 3:
<!ELEMENT APPLET Name="Java Applet" >
<!ATTLIST APPLET
Align ( top | middle | bottom | left | right | absmiddle |
absbottom | baseline | texttop )
Alt
Archive
Class !Warning !msg="This browser ignores the CLASS attribute for the APPLET
tag."
Code
Codebase
Height
HSpace
ID !Warning !msg="This browser ignores the ID attribute for the APPLET tag.
Use NAME instead."
Name
Style !Warning !msg="This browser ignores the STYLE attribute for the APPLET
tag."
VSpace
Width
>
Zobrazit stránku 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 27 28

Komentáře k této Příručce

Žádné komentáře