Web Design All-in-One For Dummies, 2nd Edition
Book image
Explore Book Buy On Amazon

One of the biggest issues with building web pages is ensuring that those pages are cross-browser and device compatible. This means that they should look good and function properly in as many browsers and on as many devices as possible.

Many code editors include some kind of browser compatibility tool that takes a look at all the tags in your files and determines whether those tags and any attending attributes are compliant with the latest W3C recommendations for your selected DTD in the most popular current browsers.

These tools should be able to quickly identify coding issues, such as whether the code contains any deprecated tags like

and , which should be identified and changed or removed.

Though the browser compatibility test typically doesn’t show you how any found errors will look in browsers that don’t support a particular tag or attribute, the test results often list the browser type and version that may have difficulty displaying the identified content so that you can do your own testing to correct the error.

For instance, using Dreamweaver’s Browser Compatibility tool, you might see an error. The tool identifies and describes the Three Pixel Text Jog issue, which cannot be properly displayed in Internet Explorer 6.0.

image0.jpg

To run the browser compatibility test in a single open HTML file in Dreamweaver, follow these steps:

  1. From the Browser Compatibility tab in the Results panel, click the green arrow button in the upper-left corner and choose Check Browser Compatibility from the drop-down menu.

  2. Depending on the number of found issues, the report might take a few minutes to generate. Be patient.

    Like the other tabs in the Results panel, the results for this tool display in a list at the bottom of the Results panel with an Error, Warning, or Message icon next to each issue found. In addition, this panel displays detailed results about each found issue along the right side of the panel.

  3. To correct any issues found, double-click the line in the Results panel that contains the issue, and Dreamweaver automatically opens the page that contains the error.

The code in question is highlighted and/or displayed with a red or green wavy underline in Dreamweaver’s Code view to assist in making a correction or adjustment. To reveal a pop-up tip window within the code that identifies the error and lists the browsers that don’t support it, place your cursor on top of the wavy underline.

image1.jpg

As great as the Browser Compatibility tool is, keep in mind that it checks only for the validity of code within a subset of browsers and browser versions. What it doesn’t do is verify the accuracy of the code or of any functionality of any JavaScript, jQuery, or other code used in the file(s).

About This Article

This article is from the book:

About the book author:

Sue Jenkins is a working designer as well as a design trainer and author. Her design firm, Luckychair, provides design services for web, logo, and print. Sue has also created a series of training DVDs on popular Adobe design tools including Photoshop, Dreamweaver, and Illustrator.

This article can be found in the category: