|
|
Xhtml Taking Over Html? | ||
Discussion by techocian with 9 Replies.
Last Update: October 1, 2006, 11:30 am | |||
Fri Apr 8, 2005 Reply New Discussion
QUOTE (techocian)
I've heard of a rumour saying iexplore and firefox is soon going to switch to XHTML. I'm not sure what it means but is there any difference or is it just a file ext. diff? I know HTML is a very "happy-go-lucky" coding style (You don't have to caps most of the codes for example) and other coding like php and JAVA is very strict. Will XHTML be stricter than normal old html? That reminds me of shtml...its still working around is it?See XHTML - or Extended HTML as it is commonly known as is a superset of HTML - i.e. it's HTML with lots more newer features of XML incorporated into it.. can call it as NextGen HTML
QUOTE
The Most Important Differences:* XHTML elements must be properly nested
* XHTML documents must be well-formed
* Tag names must be in lowercase
* All XHTML elements must be closed
Source: http://www.w3schools.com/xhtml/xhtml_html.asp
Besides, XHTML permits you to include bits of other markup languages like MathML, SMIL, or SVG - which you cannot do in HTML. Infact, XHTML & HTML cannot be intermixed.
The biggest difference is probably the well-formedness of XHTML docs.
QUOTE
HTML browsers accept any input, correct or incorrect, and try to make something sensible of it. This error-correction makes browsers very hard to write, especially if all browsers are expected to do the same thing. It has also meant that huge numbers of HTML documents are incorrect, because since they display OK in the browser, the author isn't aware of the errors. This makes it incredibly difficult to write new web user agents since documents claiming to be HTML are often so poor.In case you want to convert your current HTML docs into well-formed XHTML docs, you can use: HTML Tidy or the Amaya browser/editor.
As for your .shtml docs, they are way different from HTML or XHTML.. shtml extension files were infact indicative of HTML documents containing SSI (Server Side Include) statements. Those were a different breed of extensions on HTML to enhance it's capabilities. SSI is defined as:
QUOTE
Server Side Includes (SSI)Commands that can be included in web pages that are processed by the web server when a user requests a file. The command takes th form <!--#include virtual="/path/to/file"-->. For example, a common use for SSI commands is to insert the date or last modified date on a file.
Source: http://free-web-site-hosting.biz/web-hosting-glossary.html
More Info on XHTML & SSI:
1. http://www.w3schools.com/xhtml/xhtml_html.asp
2. http://www.w3.org/MarkUp/2004/xhtml-faq
3. http://www.w3.org/TR/xhtml1
4. http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html
5. http://httpd.apache.org/docs/howto/ssi.html
Sat Apr 9, 2005 Reply New Discussion
Sat Apr 9, 2005 Reply New Discussion
Sat Apr 9, 2005 Reply New Discussion
-“XHTML is the new set of standards that the web will be built on in the years to come… Future browser versions might stop supporting deprecated elements from old HTML drafts, and so many old basic-HTML sites may start displaying incorrectly and unpredictably.”
-“XHTML for a short time, it is no more difficult to use than HTML ever was, and in ways is easier since it is built on a more simplified set of standards… Browsers can also interpret and display a clean XHTML page quicker than one with errors that the browser may have to handle.”
-“By using familiar language with some new concepts, it is easier to transition into less familiar territories. For example, knowledge of XHTML 1.0 can simplify the transition to upcoming XHTML versions and related XML technologies for wireless and other applications, such as WML (Wireless Markup Language), SMIL (synchronized multimedia language), and SVG (Scalable Vector Graphics).”
These concepts and much more priceless information you can find at:
http://www.yourhtmlsource.com/accessibilit...lexplained.html
http://www-106.ibm.com/developerworks/library/w-xhtml.html
Thu Apr 28, 2005 Reply New Discussion
As for xhtml, it's very similiar to HTML. It's just a little more strict. As stated above if you know HTML you'll probably find XHTML fairly easy to get into.
Fri Sep 22, 2006 Reply New Discussion
I'm sure there is going to a be a wide adoption of XHTML with web designers because from now on one can trust that the page he is designing will look like he wants it to look, independently of the browser they're looking at their page from.
Besides, XML is such a smart language. I mean, seriously... if you're going to code crappy HTML and put in lots of blinking text and other unaesthetic crap just stick to MySpace, and let the real web-designers code in XHTML.
This is the dawning on a new WWW!
Sat Sep 23, 2006 Reply New Discussion
QUOTE (Trekkie101)
Not at all, the switch for me was a five minute process, if you know HTML then you know XHTML perfectly, you just need to code in a slightly difefrent way, all the tags are the same but some small additions and subractions from HTML. Its a very easy and more logical way to code.
Link: view Post: 27574
I'm not sure this is entirely true; I (and most people, I think) can whip up some HTML pretty quick, but on the few occasions I've tried to format some XHTML for a friend, I've gotten quite a headache... the two 'languages' are obviously related but I've found XHTML is way too strict. Maybe I just need more practice, but I certainly won't be seeking out any more headaches for now.
Also did I read that someone thought php was strict?
Sun Oct 1, 2006 Reply New Discussion
You are right, it may be a bit too strict for someone used to incorrect HTML. However, I have always been very careful when coding, and used to make everything lowercase. And now I don't have troubles with XHTML since it took me only a few days to get used to it. Not to mention that there are programs that convert HTML to XHTML, so you don't have to worry about how you are going to re-code it. On the other hand, when using these programs, you will probably "distort" the design a bit (that's my expirience), but it can all be solved in a short period of time.
Sun Oct 1, 2006 Reply New Discussion
However, in the case of HTML to XHTML, I'm actually all for it lol.
It makes things much easier in the end to follow XHTML.
Sun Oct 1, 2006 Reply New Discussion
Music And MySpace Uploading your files here (17)
|
(1) Unable To See Websites With Mozilla
|
Index




