Web Development Thread, Moving to XHTML in Coding and Web Development; Is it worth creating simple web sites in XHTML yet? I don't want to do anything fancy, but I use ...
-
13th March 2006, 01:26 PM #1 Moving to XHTML
Is it worth creating simple web sites in XHTML yet? I don't want to do anything fancy, but I use NVu which will create in XHTML no problem.
Does XHTML cause any problems for browsers at the moment?
I've also notice that if I use XHTML strict with NVu, it give new pages the .xhtml extension. Does this cause any problems?
I want to get with new technologies, but don't want the headache of being 'bleeding edge'.
Thanks.
-
-
IDG Tech News
-
13th March 2006, 01:50 PM #2
- Rep Power
- 0
Re: Moving to XHTML
i wouldnt really class xhtml as bleeding edge, its in its 6th year now and isnt majorly different from html. Mostly it just forces you to write tidy code, close all tags and use CSS properly. I would deffo look at using xhtml. As for the extension, i have never seen a site using the xhtml extension, i just save mine as .htm files.
-
-
13th March 2006, 01:50 PM #3 Re: Moving to XHTML
For what it's worht, the W3SCHOOLS.COM website has been redone in XHTML and they seem to suggest that everyone should use it now.
-
-
13th March 2006, 02:05 PM #4
- Rep Power
- 0
Re: Moving to XHTML
I wrote a small faq on XHTML, may be handy
It is just a tidy way to code html. Splits data and structure from formatting, making it easier to update and more accessible, which is the big key word int education at the moment!
Check it out, may be helpfull http://www.tek-tips.com/faqs.cfm?fid=3903
-
-
13th March 2006, 02:49 PM #5 Re: Moving to XHTML
Thanks to all of you. You've put my fears at ease. XHTML it is!
I knew XHTML was been out for a while, but thought that it still hadn't been widely adopted. I didn't want to end up with a site that only worked properly in Firefox, or something like that.
3wschools.com is agreat website and has been my main source of info so far in css and xhtml.
@daverage - I've been to tek-tips before, but hadn't seen your faq. It's good!
I went on a Web design course in 1997, learned to format pages in tables with HTML 4 (pretty new at the time), and to use tabs like <u> to format the text.
I hadn't really touched web design since then. Having just got back into it recently has been a bit of a shock. Now I'm having to learn all over again.
-
-
14th March 2006, 02:33 PM #6
- Rep Power
- 0
Re: Moving to XHTML
If you need any advice, give me a shout OverWorked, im self taught xhtml/css (from w3schools and google).
A site I wrote for a friend was written in xhtml (it doesnt validate past my head tag becuase i forgot to add title tags for each page before i sent it to him)
Take a peek at the source and see how tidy it is compared to html4
-
-
15th March 2006, 10:30 AM #7 Re: Moving to XHTML
Thanks, E1uSiV3
XHTML Strict - that's what I want to use. None of the 'transitional' stuff.
I'm taking the same path as you - w3schools and google. w3schools looks like a good site to start with.
-
-
15th March 2006, 11:14 AM #8
- Rep Power
- 0
Re: Moving to XHTML
To answer the original question, yes its always better to use XHTML than HTML as it should now be supported by all browsers. Using v1.0 is better than using v1.1 or greater as it will be more widely supported on the different platforms such as pdas and mobile phones.
.XHTML shouldn't cause any problems but I always just save mine as .htm or .html but thats mainly because I would forget to include the x when hyperlinking.
Don't think that Strict XHTML is always the answer, the more complex the site the less successful it will be. Strict doesn't allowed hyperlink targets and all sorts you would expect from basic HTML. I always write it in Transitional and then convert it to strict to run through a validator to see if its acceptable.
-
-
15th March 2006, 12:08 PM #9 Re: Moving to XHTML

Originally Posted by
Pear Strict doesn't allowed hyperlink targets and all sorts you would expect from basic HTML.
I was surprised at this, so had alook round and found this. I haven't tried it yet, but it looks like you can use targets with the id attribute. It's all good stuff.
-
-
16th March 2006, 04:41 PM #10
- Rep Power
- 0
Re: Moving to XHTML
A few pointers for you overworked, when using self closing brackets, include a space, for example, use:
Instead of:
Some browser compatibility issues arise otherwise.
Also, one that drove me nuts for ages, the dreaded[*] tag and internet explorer issue...
Internet explorer parses a carrige return after a closed tag in a document as a line break, so the following:
Code:
[*]this is a list item[*]this is another list item
will produce a gap between each list item.
To get around this bug, move the > on the closing tag tothe next line, for example:
Code:
[*]this is a list item</li
>[*]this is another list item
This nulls the carrige return bug and still renders correctly in other browsers.
I used this technique for the site i linked above to create the fully CSS driven menus.

Originally Posted by
Pear Strict doesn't allowed hyperlink targets
Yes, this is very annoying and also well documented about, a lot of people were upset when this was omitted from the xhtml standard.
-
SHARE:
Similar Threads
-
By smali in forum Web Development
Replies: 2
Last Post: 8th August 2007, 09:06 AM
-
By Quackers in forum Virtual Learning Platforms
Replies: 3
Last Post: 27th June 2007, 01:42 PM
-
By Nij.UK in forum General Chat
Replies: 5
Last Post: 20th March 2007, 09:28 PM
-
By Simcfc73 in forum Windows
Replies: 1
Last Post: 14th July 2006, 02:21 PM
-
By pshuttle in forum General Chat
Replies: 4
Last Post: 17th March 2006, 07:14 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules