Cheap Sheets | Debt Help | DVD rental | Cycling Training Logs | Submit articles
I want your idea!!!! [Archive] - Muslim Programmers & Designers Community - Islamic Webhosting and Nasheeds

PDA

View Full Version : I want your idea!!!!



alyssa
03-06-2009, 11:56 AM
Can I just put the XML declaration on top of existing HTML documents? Can I intermix HTML 4.01 and XHTML documents?
Thanks for your time

shadowcaster
03-09-2009, 12:10 PM
You can put the XML declaration on top of XHTML documents.

You can intermix XHTML with HTML since most browsers will figure it out but you don't want to set a restrictive doctype or better yet - don't set one at all. Also, don't be surprised if you get odd behaviour.

Abu Sabah
03-16-2009, 06:25 PM
Why would you WANT to mix them?

shadowcaster
03-17-2009, 03:03 PM
^ No-one wants to go through all their HTML pages manually and convert them to XHTML/HTML. The nerds amongst us would write a script that automatically go through all the files and fix things but that takes time and effort too.

Abu Sabah
03-17-2009, 04:16 PM
If you can't be bothered to change them then it is not worth changing them... there is no need to add XHTML to a HTML doc.

Suhana
03-26-2009, 01:15 PM
If your document is just pure XHTML 1.0 (not including other
markup languages) then you will not yet notice much
difference. However as more and more XML tools become
available, such as XSLT for tranforming documents, you will
start noticing the advantages of using XHTML. XForms for
instance will allow you to edit XHTML documents (or any
other sort of XML document) in simple controllable ways.
Semantic Web applications will be able to take advantage of
XHTML documents.

If your document is more than XHTML 1.0, for instance
including MathML, SMIL, or SVG, then the advantages are
immediate: you can't do that sort of thing with HTML.

Abu Sabah
03-28-2009, 07:10 AM
Of course, there are advantages to XHTML over HTML, but I still can't see a need to mix them. Pick one. If you need the specialness of XHTML then convert your documents to it, otherwise there is nothing wrong with leaving it as plain HTML. My recommendation would be to start writing all your new pages in XHTML the syntax is very easy to learn.

Using HMTL over XHTML is kinda like using PHP4 over PHP5, legal to do but not the most advantageous.

Portable
10-30-2009, 11:46 AM
Of course, there are advantages to XHTML over HTML, but I still can't see a need to mix them. Pick one. If you need the specialness of XHTML then convert your documents to it, otherwise there is nothing wrong with leaving it as plain HTML. My recommendation would be to start writing all your new pages in XHTML the syntax is very easy to learn.

Using HMTL over XHTML is kinda like using PHP4 over PHP5, legal to do but not the most advantageous.



I am agree with you

hussey2304
02-22-2010, 04:47 PM
As of version 4.0, HTML defines a set of 252 character entity references and a set of 1,114,050 numeric character references, both of which allow individual characters to be written via simple markup, rather than literally. A literal character and its markup counterpart are considered equivalent and are rendered identically.