
Editing HTML in Dreamweaver
329
The Tag, Object, or Style (depending on which book you have selected) pop-up
menu displays the tag, object, or style that you selected in the Code view (or Code
inspector). To view information about another tag, object, or style, select a new
one from the menu.
Next to the Tag, Object, or Style pop-up menu is a menu that contains the list of
attributes for the tag you choose. The default selection is Description, which
displays a description of the chosen tag. You can also select an attribute from the
menu to view more information about it. Attributes are used to format the
content in the tag. For example, you can use the
align
attribute to specify the
alignment of an image within the image tag:
<img src="image.gif"
align="left">
.
About Roundtrip HTML
Roundtrip HTML is a unique feature in Dreamweaver that lets you move your
documents back and forth between a text-based HTML editor and Dreamweaver
with little or no effect on the content and structure of the document’s original
HTML source code. Dreamweaver even maintains and renders some HTML that
is technically invalid (such as a
font
tag enclosing multiple
p
tags) if such code is
supported by browsers. However, the HTML source code that Dreamweaver
generates as you edit graphically is always technically valid.
The following are key features of Roundtrip HTML:
•
By default, Dreamweaver rewrites overlapping tags, closes open tags that aren’t
allowed to remain open, and removes extra closing tags when you switch back to
Dreamweaver from an external HTML editor or when you open an existing
HTML document. If you don’t want Dreamweaver to rewrite any HTML,
choose Edit > Preferences, then select Code Rewriting to turn off all rewriting. See
“Setting Code Rewriting preferences” on page 346. If you turn off code rewriting,
any HTML that Dreamweaver would have rewritten is displayed as invalid.
•
When Highlight Invalid HTML is turned on, Dreamweaver highlights invalid
HTML (that it does not support) in yellow. When you select an invalid tag,
Dreamweaver displays information in the Property inspector about how to
correct the error. Highlight Invalid HTML is turned on by default in the Code
view (or Code inspector). To turn it off, choose Highlight Invalid HTML from
the Options menu in the Code view (or Code inspector) window. Error
highlighting is always on in the Design view.
Note:
Enable/Disable Invalid HTML Highlighting is only available in the Code view (or
Code inspector). Design view always displays error highlighting.
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...