Web Standards
  Home arrow Web Standards arrow Page 3 - Web Standards in Dreamweaver Part 3
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB STANDARDS

Web Standards in Dreamweaver Part 3
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2004-09-22

    Table of Contents:
  • Web Standards in Dreamweaver Part 3
  • Adding Page Content
  • Validating the Document
  • Revalidate Your Page in Dreamweaver
  • Set Properties of Table Cells
  • CSS for Layout
  • Create the Navigation
  • The Content Area
  • Browser and Device Issues
  • Media Descriptors
  • Working with Dynamic Data
  • Resources and Summary

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    Web Standards in Dreamweaver Part 3 - Validating the Document


    (Page 3 of 12 )

    After creating any layout, particularly if you are going to create multiple pages based on the same layout, it is a good idea to validate it before continuing. Dreamweaver has its own validator to make this easy. Before using the validator, make sure you checked XHTML 1.0 Transitional to validate against in Edit -> Preferences -> Validator. To run the validator, open the Results panel and click the small green arrow shown in Figure 2-29.

    Dreamweaver 

    Figure 2-29. Dreamweaver’s validator

    You can also validate your document by selecting File -> Check Page -> Validate Markup (for HTML) or File -> Check Page -> Validate as XML (for XHTML).

    You can choose to validate the current document, the entire site, or just selected files in the site. The validator preferences can also be set here. The document should validate as XHTML 1.0 Transitional without needing to be edited by hand.

    Using the W3C Validator

    Although the internal validator is a useful tool when working on your documents within Dreamweaver, validating at the W3C makes a good final check. The URL for the W3C HTML validator is http://validator.w3.org.

    The W3C tool allows you to validate by entering the URL of the page that requires validation or by uploading the document. The easiest way to validate your pages is to FTP them to your web site and then enter the URL into the appropriate box at the validator. If you are using the Dreamweaver validator as you work on your site, you will probably only need to check with the W3C validator as part of your final testing to ensure that all documents, including those that contain dynamic data, are valid.

    Moving to XHTML Strict

    The XHTML Transitional DTD allows the use of deprecated attributes that will be removed from future versions. The Strict DTD does not allow the use of these deprecated attributes.

    To convert your document from the Transitional DTD to the Strict DTD, you must work in Code view. Dreamweaver MX creates XHTML Transitional markup in recognition of the fact that most developers still need to create pages that are backward compatible with older (before version 5) browsers. However, the changes you will need to make are relatively simple.

    Change the Document Type Declaration

    In Code view, change the DOCTYPE at the top of the page to this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

     

    This chapter is from ASP.NET Web Development with Macromedia Dreamweaver MX 2004, by Costas Hadjisotiriou (Apress, 2004, ISBN: 1590593480). Check it out at your favorite bookstore today.

    Buy this book now.

    WEB STANDARDS ARTICLES

    - Completing a Configuration for Chrome and a ...
    - Getting Connected with Firefox and Chrome
    - Configuring Servers and Databases with Chrome
    - Configuring Firefox for Chrome and a Server
    - Designing the Elements of a Web Page
    - Matching div heights with CSS and JavaScript
    - Forms
    - Get Down With Markup
    - If I Said You Had a Beautiful Body...
    - Web Standards in Dreamweaver Part 3
    - Web Standards in Dreamweaver, Part 2
    - Web Forms
    - Making Lists Using XHTML
    - Web Standards in Dreamweaver, Part 1


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway