
Customizing Dreamweaver
539
tag_type
*
Determines whether the tag is empty (as with
img
), or whether
it contains anything between its opening and closing tags (as with
code
). This
attribute is required for normal (non-string-delimited) tags. It’s ignored for
string--delimited tags, since they’re always empty. Valid values are
"empty"
and
"nonempty"
.
render_contents
*
Determines whether the contents of the tag should appear
in the Document window’s Design view, or whether the icon appears instead. This
attribute is required for nonempty tags, and ignored for empty tags. (Empty tags
have no content.) This attribute applies only to tags that appear outside of
attributes; the contents of tags that appear inside the values of attributes of other
tags are not rendered. Valid values are
"true"
or
"false"
.
content_model
*
Describes what kinds of content the tag can contain and
where in an HTML file the tag can appear. Valid values are
"block_model"
,
"head_model"
,
"marker_model"
, and
"script_model"
:
•
block_model
Specifies that the tag can contain block-level elements such as
div
and
p
, and that the tag can appear only in the
body
section or inside other
body-content tags such as
div
,
layer
, or
td
.
•
head_model
Specifies that the tag can contain text content, and that it can
appear only in the
head
section.
•
marker_model
Specifies that the tag can contain any valid HTML code, and
that it can appear anywhere in an HTML file. The HTML validator in
Dreamweaver ignores tags that are specified as
marker_model
. However, the
validator doesn’t ignore the contents of such a tag; so even though the tag itself
can appear anywhere, the contents of the tag may result in invalid HTML in
certain places. For example, plain text can’t appear (outside a valid
head
element) in the
head
section of a document, so you can’t place a
marker_model
tag that contains plain text in the
head
section. (To place a custom tag
containing plain text in the
head
section, specify the tag’s content model as
head_model
instead of
marker_model
.) Use
marker_model
for tags that
should be displayed inline (inside a block-level element such as
p
or
div
—for
example, inside a paragraph). If the tag should be displayed as a paragraph of its
own, with line breaks before and after it, don’t use this model.
•
script_model
Allows the tag to exist anywhere between the opening and
closing HTML tags of a document. When Dreamweaver encounters a tag with
this model, it ignores all of the tag’s content. Used for third-party markup (like
certain ColdFusion tags) that Dreamweaver shouldn’t parse.
start_string
Specifies a delimiter that marks the beginning of a string-
delimited tag. String-delimited tags can appear anywhere in the document where a
comment can appear. Dreamweaver does not parse tags or decode entities or
URLs between
start_string
and
end_string
. This attribute is required if
end_string
is specified.
end_string
Specifies a delimiter that marks the end of a string-delimited tag.
This attribute is required if
start_string
is specified.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...