Dreamweaver, HTML and XHTML


Share this post on Digg | Sphinn | Delicious | Propeller | Reddit | Yahoo! Messenger
Enter your email address to subscribe and receive the latest updates from Tech Watchtower:

by Andrew Whiteman

HTML is a markup language used to create web pages designed to be accessed across the World Wide Web using browser software such as Internet Explorer or Firefox. The version of HTML in current use is referred to as XHTML, a stricter, rationalised version of the original HTML specification. One important fact to note about HTML and XHTML pages is that they describe the content and structure of the page rather than the position and presentation of the elements on the page.

The first difference between an HTML and an XHTML page is the document type definition. There are a variety of ways in which this specification can be made in Dreamweaver. One of the easiest is to go to the Modify menu and choose Page Properties. Here, in the Title/Encoding section, one of the options reads Document Type (DTD).

There are a good few options available in the drop-down menu next to this setting, some relating to HTML version 4 and some to XHTML version 1. These DTD settings control the rules for the mark-up language so that the browsers can render the content correctly. For any new content you are creating, the best specification to choose is XHTML 1.0 transitional since it uses the current XHTML specification while allowing backward compatibility with slightly older browsers.

When looking at an HTML page, the structural content may not always be that obvious. However Dreamweaver provides a number of useful utilities for keeping tabs on the structure of your web page content. One of the most useful is the Tag Selector. Wherever you position the cursor, the HTML code relating to that part of the page is displayed in the bottom left of the page on the Status Bar in an area known as the Tag Selector.

When the browser reads the page, the tags surrounding text and other elements communicate to the browser the structural importance of each element. Thus, for example, the H1 tag tells the browser that a piece of text is a major heading, while the H2 tag signifies a sub-heading, and so on. When these tags are displayed in the Tag Selector, you can get an idea of the structure of the page and you can also click on any tag to select the element(s) it contains.

Although the tags tell the browser the structural importance of each element, the HTML page doesn’t contain any information that helps the browser decide how each element should be displayed. This is the role of CSS (Cascading Style Sheets). An XHTML page is pretty similar to an HTML page. However, its syntax is stricter. Let’s take a look at some examples…

One example of this difference is that XHTML is case sensitive while HTML is not. In XHTML, all tags are lowercase so the H1 tag has to be written h1. In HTML, h1 or H1 can be used.

In XHTML, the closing tag of an element cannot be ommitted: in HTML it is permissible to have an opening tag without a closing tag. One such example is the horizontal rule element (hr) which creates a dividing line between two sections on a webpage. This element is represented by a single tag, since it can never be used as a container for other stuff. In XHTML, there is a special syntax for such non-container elements: a single tag which is both an opening and closing tag (hr/). In HTML, the single opening tag is used without the need for a closing tag (hr).

In summary, XHTML is the current version of HTML and this is the standard that you should use for any new projects. However, existing projects that you may inherit may well contain HTML rather the XHTML. Therefore, you should be aware of both. Remember also that HTML and XHTML describe only the structure of web page content: neither of them should contain information regarding the presentation and display of this content. The display and presentation of web content should be done using CSS.

About the Author:

Related posts:

  1. Creating A Dreamweaver Page Based On A CSS Layout Cascading style shee
  2. Top 3 New Features in Dreamweaver CS4 1. Photoshop Smart O
  3. Configuring Dreamweaver’s Preview In Browser Preferences As you work on your
  4. Adobe Dreamweaver Makes Website Building a Breeze If you have ever wan
  5. Why You Should Get Trained Adobe Dreamweaver A textbook can suppl
  6. Adobe Dreamweaver Training for Independent Contractors If you are someone w
  7. How Adobe Dreamweaver Training Could Benefit You There are many reaso
  8. Adobe Dreamweaver Training for Independent Consultants If you provide web d
  9. Benefits of Adobe Dreamweaver Training Courses There are lots of re
  10. Microsoft Underdog As Expression Web Takes On Dreamweaver In an interesting ch


Posted on January 7, 2009
Filed under: , , , , , , , , , ,

Leave a Reply

  • Reason Why People Do Not Earn Money Online
  • A Few Reasons Why People Do Not Earn Money Online
  • Internet Forex Business Flourishes
  • Understanding Courier Services and Delivery of Wholesale Chinese Goods
  • PCTV: Fulfill Your Entertainment Dreams with TV on PC
  • Know The 5 Tips For Copywriting For The Web
  • How To find Profitable Niches – One Easy Strategy That Could Turn Your Marketing Campaigns Into Money Spinners.
  • HP LaserJet 2015 – Makes for A Great Printer
  • Methods that a Website Optimization Firm Uses to Help Optimize Websites for Search Engines
  • Forex Trading Robots
  • A Website Optimization Firm Can Use Different Methods To Take A Site To The Top
  • Understanding Courier Services and Delivery of Wholesale Chinese Goods
  • The Immense Popularity Of I-pods
  • I-pods From The Beginning
  • HP Color LaserJet 4600 Printer – The Hardest Worker In Your Office
  • HP Color LaserJet 4600 Printer – Professional Output And Gorgeous Prints
  • Troubleshooting Instructions – Runtime Error R6025
  • Internet Business
  • Web Hosting Explained
  • The WoW Cooking Leveling Guide