Mark Forums Read
  #1  
Old 01-14-2009, 05:35 AM
ajit22 ajit22 is offline
Member
 
Join Date: Jan 2009
Posts: 54
ajit22 is on a distinguished road
Default Convert HTML to XHTML

There are a few basic rules you need to apply to convert an HTML 4 document to XHTML.

1. Stricter adherence to the HTML specification.
Many browsers are very lax in how they interpret HTML. This leads to incongruities in how the pages are displayed, and XHTML doesn't allow that. The best way to correct this is to use an XHTML validator.

2. Write well formed documents.
What this generally means is avoiding overlapping elements. The following nested code is acceptable:

<p>Paragraph <em>emphasized</em></p>

because the <em> tag is opened and closed within the <p> tag. However, this is not allowed:

<p>Paragraph <em>emphasized</p></em>

because the <em> tag overlaps the <p> tag.

3. Write tags and attributes in lowercase.
XHTML is a case-sensitive markup language, so

<LI> and <li>

are potentially two different tags.

4. End tags are required.
In HTML, some tags which actually contain elements do not require the end tag. The most common of these is the

<p>

tag. XHTML requires that the

</p>

tag be used. For singleton tags, such as

<br>

you should include a trailing slash in the tag itself, e.g.

<br />

to get a line break.

5. Attributes must be quoted and include values.
What this means is that non-quoted attributes such as

<table border=3>

are invalid. And attributes which used to stand alone, must now be written as name="value" pairs. For example

<hr noshade="noshade" />

adds the noshade attribute to the <hr/> tag.

6. Do a second validation.
The last step is to validate your XHTML again. This will tell you of any additional problems or issues with your code.
__________________
New York Web design
Website design

Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
  #2  
Old 06-18-2009, 09:58 AM
gkumar gkumar is offline
Senior Member
 
Join Date: Jun 2009
Posts: 203
gkumar is on a distinguished road
Default

Converting your HTML documents into XHTML is a simple process using the Dreamweaver application. The XHTML language is a partial blend of HTML and XML that adheres to a stricter set of Web regulations and is supported on all Web browsers. Translating HTML documents into XHTML, allows Web pages to contain leaner code as well as to be available for a wider range of audiences on alternate devices, such as cell phones or mobile instruments.
Reply With Quote
  #3  
Old 04-22-2010, 05:22 AM
chris34 chris34 is offline
Member
 
Join Date: Jan 2010
Location: U.K
Posts: 93
chris34 is on a distinguished road
Default

That's a Nice and Informative Posts Which You have shared here With us
Keep sharing
__________________
Spam
Reply With Quote
  #4  
Old 04-27-2010, 05:54 AM
kavi kavi is offline
Junior Member
 
Join Date: Jan 2009
Posts: 4
kavi is on a distinguished road
Default html and xhtml

basically html and xhtml both are same.main different between html and xhtml is xhtml is case sensitive while html is not case sevsitive.
xhtml is totally nested.


================================================== ===
Affiliate Marketing
Reply With Quote
  #5  
Old 05-14-2010, 06:11 AM
AndreClark99 AndreClark99 is offline
Junior Member
 
Join Date: May 2010
Posts: 3
AndreClark99 is on a distinguished road
Default

Now a days Use Xhtml is really important for coding.Well that is quite comfortable for platform Independence and such related matters.The most important factor is that it is member of XML,and this is the reason why such conversion is important.Thais stuff is quite informative for initiators.
__________________
Web Design New York
Reply With Quote
  #6  
Old 07-18-2011, 06:09 AM
vvhins1 vvhins1 is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
vvhins1 is on a distinguished road
Default

Many browsers are very lax in how they interpret HTML. This leads to incongruities in how the pages are displayed, and XHTML doesn't allow that. The best way to correct this is to use an XHTML validator.
__________________
funny pictures
Reply With Quote
  #7  
Old 08-07-2011, 06:27 AM
Mallory Mallory is offline
Junior Member
 
Join Date: Jun 2011
Posts: 14
Mallory is on a distinguished road
Default

The xhtmlpedia is a browsable list of XHTML elements and attributes. It lists the elements available for each XHTML DTD, their content rules, attributes, etc. I find it much easier to read and browse than the actual DTDs. The xhtmlpedia has been automatically created from the DTDs with the help of the module of html2xhtml that encodes the definitions of the XHTML DTDs. It is updated frequently to keep it in sync with the official DTDs.
Reply With Quote
  #8  
Old 12-21-2011, 06:43 AM
amankumar amankumar is offline
Senior Member
 
Join Date: Jul 2011
Posts: 146
amankumar is on a distinguished road
Default convert html to xhtml

Thanks Ajit22

It is a more useful information for me.
Reply With Quote
  #9  
Old 01-07-2012, 11:07 AM
Boopheftott Boopheftott is offline
Senior Member
 
Join Date: Dec 2011
Location: USA
Posts: 202
Boopheftott is on a distinguished road
Default How To Fantasize Lover

A virtuous rule for staying together is to live a fulfilling vigour as an separate and to prop up your partner in doing the same. A union based on coincidence and consider is the carry out conditions for dear one, colourfulness and spontaneity to prosper, while a family based on neediness and dependence creates an mood of suppression, antagonism and defensiveness. It is the balance between expressing bona fide out of and living an illusion of infatuation, between creating a contemporary vital spark alongside continuing to develop your ability to love and recreating an old life past reliving past hurts, between accepting warmth and acting cold... and now composed between summer weddings and winter divorces.
---------------------------------
coach outlet

doudoune moncler pas cher

coach factrory outlet

cheap herve leger
Reply With Quote
  #10  
Old 01-07-2012, 11:12 AM
Boopheftott Boopheftott is offline
Senior Member
 
Join Date: Dec 2011
Location: USA
Posts: 202
Boopheftott is on a distinguished road
Default How To Pretence of Get a kick from

A honourable rule in favour of staying together is to remain a fulfilling life as an separate and to support your colleague in doing the same. A union based on likeness and feature is the perfect environs against appreciate, fiction and spontaneity to prosper, while a connection based on neediness and dependence creates an feel of suppression, enmity and defensiveness. It is the discrepancy between expressing legitimate out of and living an vision of relish, between creating a new life by continuing to evolve your genius to concern and recreating an over the hill subsistence close reliving past hurts, between accepting warmth and acting cold... and from time to time stable between summer weddings and winter divorces.
---------------------------------
moncler jackets

moncler jackets

herve leger uk

herve leger
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Location: Here
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:50 PM.


Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0