Converting from HTML to XHTML

This is a discussion on "Converting from HTML to XHTML" within the Web Page Design section. This forum, and the thread "Converting from HTML to XHTML are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 4th, 2006, 14:47
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Converting from HTML to XHTML

Hey every oen i am writing this article on How to Convert your HTML documents to XHTML so here we go and i hope you will understand it these are the steps i would go through if i wanted to convert form HTML to XHTML
  1. Converted all the tags to lowercase (I used Home Sites Sweeper to do this)
  2. You will need Macromedia Homesite for this
  • Open the HTML file you would like to "sweep".
  • Click on the "Tools" Menu, scroll down to "CodeSweeper" and choose "Default CodeSweeper".
  • Click on "Run CodeSweeper", and your code will be converted to the default indenting and formatting.
  • If you like the way this formatting looks, then click on the "Don't ask me again" check box.
  1. If you don't like how it looks, follow the instructions on the How to Create a New CodeSweeper template.
TIPS
  1. Use the HomeSite CodeSweepers to keep your HTML and XHTML standard and easy to read.
  2. Standardized CodeSweepers in a Web development team keeps the XHTML standard and reliable.
  1. Put double quotes around all attributes (again code sweeper)
  2. Added a DOCTYPE and a HTML Namespace
These are some of the different DOCTYPES you can use

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
HTML 2.0
This isn't used much any longer, but if you want to indicate that your document is very minimal, you might use this DTD. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
HTML 3.2
HTML 3.2 is still used fairly often. It includes tables, applets, superscripts, and subscripts.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

So, when you're writing your HTML or XHTML, be sure to specify the DTD. Otherwise, you might be surprised at how your pages display in newer browsers.

This a Namespace Declaration to peope, who use it

<?xml version="1.0"?>
<x xmlns:edi='http://ecommerce.org/schema'>
<!-- the edi namespace applies to the "x" element and contents -->
</x>

  1. Searched for all the img tags and added alt text and a trailing slash to close the element
  2. Searched for all the link tags and added a trailing slash
  3. Searched for all li and option tags and added the closing tags
  4. Removed all font tags and other non-XHTML tags
  5. When I thought it was ready I sent it through the W3C Validator. I got about 600 errors, but I just went through them one at a time and corrected them.
But for more help just Go to http://webdesign.about.com/About_Web_Design_HTML.htm

cause thats how i got help on some of the stuff when i wanted to learn well still learning now the best part i am good at is HTML the worst bit of Coding i am not to sure on as yet lol is XHTML but i will pick it up in the near future cause i will get as much help as i can to improve my skills

Once I had valid XHTML, I needed to convert the page into logical blocks so that they could be moved to their correct locations on the page. This resulted in a page with "semantic layout", and it is essentially all the page elements listed one by one on the page. It's not very pretty, because all the layout and decorative tags have been removed.

Thanx
Aaron

  #2 (permalink)  
Old Dec 4th, 2006, 15:09
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Converting from HTML to XHTML

Thanks!!
Closed Thread

Tags
html xhtml

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] converting flash to html Posie Starting Out 3 Dec 2nd, 2007 20:04
[SOLVED] Converting BBcode to HTML AdRock PHP Forum 10 Oct 9th, 2007 08:53
help with converting HTML to XHTML sing2trees Web Page Design 4 Sep 20th, 2006 03:35
I'm converting my pages from HTML to CSS,,, Help me! ahm531 Web Page Design 9 Sep 6th, 2006 10:06
Tutorial - Converting A Website To XHTML gwx03 Web Page Design 10 Dec 30th, 2003 21:25


All times are GMT. The time now is 03:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43