Web Standards
  Home arrow Web Standards arrow Page 4 - Web Standards in Dreamweaver, Part 1
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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 1
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2004-08-04

    Table of Contents:
  • Web Standards in Dreamweaver, Part 1
  • The Rules of Writing XHTML
  • Empty Elements
  • Lists
  • XHTML in Dreamweaver MX 2004
  • Authoring Valid CSS
  • The Basics of CSS

  • 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
     
     
    ADVERTISEMENT


    Web Standards in Dreamweaver, Part 1 - Lists


    (Page 4 of 7 )

    Mark Lists As Lists

    In HTML 4.01 and XHTML there are three nondeprecated list definitions to choose from: ordered list, unordered list, and definition list. It is important to use the correct type of list when entering your information—do not simply choose one for visual effect. Once again, if you are going for a certain look, use CSS to achieve it.

    Ordered Lists

    Use ordered lists for a list of items numbered in sequential order, for example, a list of step-by-step instructions or ranked items.

    <ol>

         <li>list item one</li>

         <li>list item two</li>

    </ol>

    This is displayed in most browsers as shown in Figure 2-2.

    dreamweaver 

    Figure 2-2. Ordered list in a browser

    Unordered Lists

    Use unordered lists for a list of unordered items, for example, a list of attributes.

    <ul>
         <li>list item one</li>
         <li>list item two</li>
    </ul>

      This is displayed in most browsers as shown in Figure 2-3.

      dreamweaver 

      Figure 2-3. Unordered list in a browser

      Definition Lists

      Use a definition list if you have a list of items and explanations. By using this type of list, you make it clear to someone using an assistive technology such as a screen reader (or other device that can only see the structure of the document) that the list contains items and their definitions.

      If you create this kind of list just by altering the presentational aspects of the page, your intentions may not be clear to someone who cannot see that presentation. The definition list includes <dt> tags for terms and <dd> tags for definitions.

      <dl>
           <dt>the term</dt>
           <dd>the definition</dd>
           <dt>another term</dt>
           <dd>another definition</dd>
      </dl>

      This markup is displayed in most browsers as shown in Figure 2-4.

      dreamweaver 

      Figure 2-4. Definition list in a browser

      Special Characters

      When inserting special characters such as brackets (< >) or the ampersand (&), you should always use the correct Unicode character entities. When you enter common characters into Design view, Dreamweaver MX enters the correct character code for you, for example, Dreamweaver adds < in place of < and & in place of &. However, if you are working in Code view or need to insert a character that is not on your keyboard, there are additional characters available from the Text tab of the Insert toolbar that you can insert into the document. The Text tab is shown in Figure 2-5.

      dreamweaver 

      Figure 2-5. Character entities in the Insert toolbar

      The more unusual characters can be found by clicking the button on the right of the Characters tab (or clicking the arrow on the far right and selecting Other Characters). This opens a panel of characters to choose from and insert into your document, as shown in Figure 2-6.

      dreamweaver 

      Figure 2-6. More character entities

      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.

      More Web Standards Articles
      More By Apress Publishing


       

      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







      © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
      For more Enterprise Application Development news, visit eWeek