Dreamweaver enables you to create web pages with elements that are supported by all major graphical browsers (such as images and text), as well as with elements that are supported only by newer browsers (such as CSS styles).
You should determine who the audience for your site is likely to be, and what browsers theyre likely to use. If most of your users will be using Netscape 4 (as is still true in some academic intranet environments, for example), you should avoid using tags that arent supported in that browser.
The Check Target Browsers feature tests the code in your documents to see if any of the tags, attributes, CSS properties, or CSS values are unsupported by your target browsers. The check does not alter the document in any way.
The target browser check gives information about three levels of potential problems: errors, warnings, and informational messages. The following descriptions explain the differences between those levels:
img
tags galleryimg
attribute isnt supported in some browsers, but those browsers ignore that attribute, so it has no visible effect.By default, Dreamweaver automatically performs a target browser check whenever you open a document. You can also run a target browser check manually on a document, on a folder, or on an entire site.
NOTE |
|
The target browser check is not updated continually. After you make changes to code, run the target browser check manually to confirm that youve eliminated code that doesnt work with your target browsers. |
The target browser check does not check scripts in your site. Also, the target browser check is not a syntax validator; it detects only markup that isnt supported in your target browsers.
NOTE |
|
The Check Target Browsers feature uses text files called browser profiles to determine which tags particular browsers support. For information on how to modify the existing profiles or to create new ones, see "Customizing Dreamweaver" at www.macromedia.com/go/dreamweaver_support. |
The Check Target Browsers dialog box appears.
For example, to verify that all of the documents markup is supported in Microsoft Internet Explorer 3.0 and later and Netscape Navigator 4.0 and later, select the checkboxes next to those browser names, and select 3.0 from the Microsoft Internet Explorer pop-up menu and 4.0 from the Netscape Navigator pop-up menu.
A wavy red underline appears under the name of every item thats considered an error in one of your target browsers. (Warnings and informational messages are not marked in Code view; to view warnings and informational messages, view the report for the entire document.) If Dreamweaver finds no unsupported markup, then nothing is underlined, and the Target Browser Check menu icon in the Document toolbar changes to indicate that there are no errors.
TIP |
|
To easily use various commands related to target browser checks, select a command from the context menu by right-clicking (Windows) or Control-clicking (Macintosh) any red-underlined item. |
A tooltip appears, indicating which browsers dont support that item.
The Results panel group appears, with the Target Browser Check panel selected. Errors are marked with a red exclamation mark icon, warnings are marked with a yellow exclamation mark icon, and informational messages are marked with a word-balloon icon.
A Description dialog box appears, displaying the full text of the selected error message.
The unsupported markup is selected in Code view.
The report appears in the Target Browser Check panel (in the Results panel group).
The report appears in the Target Browser Check panel (in the Results panel group).
NOTE |
|
The target browser check report is not saved automatically; if you want to keep a copy for future reference, save it. |
That type of error is changed to a warning, and Dreamweaver stops underlining that type of error in all documents.