+ Reply to Thread
Results 1 to 10 of 10
-
01-18-2009 11:34 PM #1
Junior Member
- Join Date
- Jan 2009
- Posts
- 24
- Downloads
- 0
- Uploads
- 0
Using XHTML Instead of HTML Coding
Many websites are still coded with the Good Ol' HTML website coding and little extras like JavaScript, but XHTML is one of the new forms of coding which is very simlilar to HTML.
XHTML tends to be a little cleaner and easy to work with than HTML, but everyone will have their own opinion on this . (Care to share?).
Learning XHTML is very easy if you already know how to code in HTML.
If you are not to familiar with using HTML, then starting out with XHTML is also very easy for you. It just takes a little time, some practice and a few edits here and there.
Everything about XHTML reminds me of HTML... OH yeah, that is because its almost identical to HTML 4.1. The main changes with this form of website developing code is that it is a stricter and much cleaner version of HTML, and is W3C Recommended.
~ Mike
-
01-19-2009 03:08 PM #2
well I'm still coding my pages in html :D the code is valid andn so everything is working but if I have some time left I might change some templates to xhtml easy to do as you said but if you are not used to it you should better do good html instead of crap xhtml
-
01-19-2009 05:58 PM #3
Junior Member
- Join Date
- Jan 2009
- Posts
- 24
- Downloads
- 0
- Uploads
- 0
Much Agreed. I tend to code in part HTMl and part XHTML right now, because i am getting to grips with the whole XHTML Thing. LOL :)
~ Mike
-
03-11-2009 08:45 AM #4rabble Guest
I'm still using HTML 4.01 transitional.
I probably won't be moving on until it no longer works for me.
I sure hope it works for a while too. I still have plenty of CSS
and javascript to learn before I go back to reearranging the bare bones.
-
03-11-2009 08:09 PM #5
Senior Member





- Join Date
- May 2007
- Posts
- 148
- Downloads
- 0
- Uploads
- 0
I never take care of html declaration. To be honest I have no idea which I use, I let rather Dreamweaver decide.
-
03-18-2009 12:10 PM #6
Junior Member
- Join Date
- Mar 2009
- Posts
- 11
- Downloads
- 0
- Uploads
- 0
I'm still using HTML 4.01 transitional.
-
05-14-2009 06:28 AM #7
Banned
- Join Date
- May 2009
- Posts
- 13
- Downloads
- 0
- Uploads
- 0
well,
iam always using HTML I tried for XHTML i feel its difficult to coding
-
05-15-2009 07:20 PM #8
Junior Member
- Join Date
- May 2009
- Posts
- 20
- Downloads
- 0
- Uploads
- 0
If you're used to HTML, XHTML can look strange to you. I had the same thing until I realised XHTML seems to close everything, while HTML does not. That made it a lot easier for me.
There's also validators on the internet that show you the problems and all you have to do is copy/paste, so either way, switching from HTML to XHTML isn't much of a difference at all. It's probably easier to start with XHTML before you completely build your website in HTML to save you quite a bit of editing time. If you decide to switch anyway.
-
05-16-2009 02:41 PM #9Dunchead Guest
XHTML problem
I'm busy editing my site to XHTML. There are only minor differences from the HTML, but the only natural thing to do if you're starting out is just start learning XHTML, just as you'd opt to buy a brand new car rather than exactly the same one second hand if they were the same price. Which they are (free).
For me, in changing my code, I've run into a problem.
I was using CSS in the head section, with class selectors to make my table rows alternate colours:
td,pre,p{font-size: 13px; font-family: verdana;}
td{line-height: 20px;}
.tp{color:#0000FF; font-weight: bold;}
.rb{background:#FFFFFF}
.ry{background:#F0F0F0}
It looked fine until I changed the DOCTYPE to XHTML - then for some reason one table on my page seemed to become double spaced.
Anyone have any ideas why this might have happened?
You can see the source at mrquicker.com
-
05-17-2009 02:24 PM #10
Junior Member
- Join Date
- May 2009
- Posts
- 20
- Downloads
- 0
- Uploads
- 0
I've had a quick look at your website and ran it through a HTML validator and it found 40 Errors and 25 warnings. Right now there's no DOCTYPE specified so it doesn't know what to use to check your site. I suggest you add a XHTML doctype and running it through a HTML validator yourself. (Sorry, I'm unable to post links.) It can help you switch to XHTML and possibly also fix some issues you're having.
I'm not sure what kind of spacing you're talking about, but if it is vertical spacing you might be able to use the CSS property line-height to fix the issue, though I'm not 100% sure if tables are affected by it. (I code with divs instead of tables)Last edited by LDHosting; 05-17-2009 at 02:27 PM.
Similar Threads
-
HTML
By SoaringUSAEagle in forum Website Programming DiscussionReplies: 8Last Post: 11-12-2010, 06:20 AM -
Best coding help websites
By Sabre in forum Website Programming DiscussionReplies: 2Last Post: 05-14-2009, 09:56 AM -
HTML vs PHP pages?
By imported_niky in forum Search Engine MarketingReplies: 0Last Post: 07-24-2008, 07:17 PM -
CSS / HTML coding problem
By DevonWebsites in forum Website Programming DiscussionReplies: 4Last Post: 07-11-2007, 09:55 AM -
[PAID]Looking for Coders, html, php, css etc..
By Klaas Koopman in forum Webmaster MarketplaceReplies: 3Last Post: 08-24-2004, 12:31 PM


LinkBack URL
About LinkBacks
Reply With Quote





Bookmarks