Online Resources

eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
Business & Money
Technology
Women
Health
Education
Family
Travel
Cars
Entertainment
SD Editorials
Online Guide and article directory site.
Foodeditorials.com
Over 15,000 recipes & editorials on food.
Lyricadvisor.com
Get 100,000 Lyric & Albums.
  • Business & Money
    • A Guide to Business
    • Guide to Finance
    • Ideas for Marketing
    • Legal Guide
    • Guide to Insurance
    • Lettre De Motivation
    • Guide to the Stock Market
    • Human Resource Career
    • Sales Marketing
    • Forex & Trading
    • Advertising & Marketing
    • Startup Guide
  • Technology
    • Guide to Technology
    • Cell Phones
    • Computer Software
    • IT Hardwares
    • Internet
    • Online Security
    • Cameras
    • Search Engine Optimization
    • Science & Technology
  • Women
    • Guide to Women
    • Relationship Advice
    • Marriage
    • Jewelry
    • Pregnancy
    • Fashion Style
    • Divorce Guide
    • Wedding Guide
    • Dating Guide
    • Natural Beauty
  • Health
    • Guide to Health
    • Guide to Medical
    • Plastic Surgery
    • Weight Loss
    • Sports
    • Body Wellness
    • Cancer Treatment
    • Common Illness
    • Health & Lifestyle
  • Education
    • Military Service
    • Politics and Policy
    • Arts & Humanities
    • Education and Teaching
    • Learn Languages
    • Colleges & Universities
  • Family
    • Quality Home Improvement
    • Hobbies and Interests
    • Family Guide to
    • Pet Guide
    • Loans Guide
    • Credit Cards
    • Gardening Guide
    • Home Security
    • Real Estate
    • Home Decor
    • Gift & Present
  • Travel
    • The Travel Guide
    • Adventure Travel
    • Cruise Ships
    • Beach Holiday
    • Travel Accommodation
    • Holiday Destinations
  • Cars
    • Information on Cars
    • Traffic Violations
    • Auto Insurance
    • Trailers
    • Sport Cars
    • The Bikes
  • Entertainment
    • Entertainment Guide
    • World Music
    • Photo & Video
    • Television & Games

Difference Between Html And Xhtml

    View: 
HTML is a simple markup language used to create documents designed to be accessed across the World Wide Web using browser software such as Internet Explorer or Firefox. The current version of HTML is known as XHTML, a stricter, rationalised version of the original HTML specification. One key 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 XHTML page is the document type definition. There are several ways in which this specification can be made in Dreamweaver. One of the simplest is to go to the Modify menu and choose Page Properties. Here, in the Title/Encoding category, one of the options reads Document Type (DTD).

There are several 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 specify the rules for the mark-up language so that the browsers can render the content correctly. For any new content that you create, 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 be immediately apparent. However Dreamweaver provides a number of useful tools for keeping tabs on the structure of your web page content. One of these is called the Tag Selector. Wherever the cursor is positioned, 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 tell the browser the structural importance of each element. The H1 tag tells the browser that a piece of text is a major heading. The H2 tag signifies a sub-heading, and so on. As 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 the tags to select the element they contain.

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 should be used for any new projects. However, existing projects that you may inherit may well contain HTML code rather the XHTML. Therefore, it makes sense to be aware of both. Remember also that HTML and XHTML describe only the structure of web pages : neither of them should contain information regarding the display and presentation of this content. The appearance of web content should be specified using CSS.
More Articles from
10 Best Online Casinos
10 Day Weight Loss
10 Places To See
10 Things About Women
10 Things I Hate Poem
10 Things I Like About You
10 Ways To Go Green
10 X 8 Metal Shed
10 Year Green Card
100 Financing For First Time Home Buyers
100 Financing Investment Properties
100 Gallon Fish Aquarium
100 Million Dollars Video
100 Names For Boys
100 Oz Engelhard Silver Bars
100 Pound Propane Tank
1000 Pieces Jigsaw Puzzles
101 Best Businesses For Pet Lovers
12 Months Of Year
1200 Calorie Diabetic Diet
» More on
  • Related Articles
  • Author
  • Most Popular
•Difference Between Bandwidth And Throughput, by Yousaf Fayyaz
•Difference Between Cd And Dvd, by Logan Rokwild
•Difference Between Children And Adults, by James Ellison
•Difference Between Cold And The Flu, by Darrell Miller
•Difference Between Ddr2 And Ddr3, by Faraz Ahmed
Andrew Whiteman has sinced written about articles on various topics from Microsoft Word Office 2007, Microsoft Excel Office and Computers and The Internet. The writer of this article is a developer and trainer with , an independent computer training company offering. Andrew Whiteman's top article generates over 12100 views. to your Favourites.
Causes Of Chronic Bronchitis
Chronic bronchitis as a respiratory condition progresses slowly but unfortunately it has no cure and the only treatments are directed in towards relieving of presenting symptoms
 
A Guide to Business | Guide to Technology | Guide to Women | Guide to Health | Family Guide to | Travel & Vacations | Information on Cars

With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors