This is a discussion on How many of you are using XHTML? within the Web Design Help forums, part of the Web Development category; Hi Friends. I would like to know ur openion about using XHTML. It is very usefull while considering simple static ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi Friends. I would like to know ur openion about using XHTML. It is very usefull while considering simple static web pages. But i was wondering whether it should be used in the case of dynamically generated pages. What do you guys think about it? |
| Sponsored Links |
| |||
| 1. XHTML must be served with an XML MIME type, such as application/xml or application/xhtml+xml. 2. HTML must be served as text/html. It is the MIME type that determines what type of document you are using. If you use attempt to send XHTML as text/html, you are actually just using HTML, possibly with syntax errors. Technically, according to the spec, XHTML 1.0 is allowed to be served as text/html. But, due to the above reason, such a document is considered to be an HTML document, not an XHTML document.
__________________ H2O Without us, no one can survive.. |
| |||
| HI guys, I'm the new kid in town (lol) I'm trying to use xthml in web designing because of the new rules imposed for w3.org, it's supposed the new technologies such as mobile devices are going (actually are using now) the xhtml code to display info. Of course a mobile device, such as a palm or a cell phone does not have memory enough to load a flash video, almost all of'em display only the text But I'm having big probs. I have made my entire web site, when done, I have verified it with the validator in http://www.validator.w3.org but always it says my site is not valid as a strict xhtml document nor a transitional html document, nor any other type of document. My site is well display in all browsers, including mozilla firefox. It displays always this message: Line 22, Column 19: there is no attribute "src". <embed src="Flash/sitioprov.swf" quality="high" pluginspage="http://www.✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. I have tried to edit the source code but I can't fix the problem This stuff is driiving me crazy, could anybody please help me? thnx in advance guys have a nice one. |
| |||
| Hi eddy, Its interesting, Yes, the embed tag is not accepted in xhtml strict. It has been replaced by the "object" tag. If you want to know the details, look here at the w3schools site. A full html 4.01 and xhtml reference list is available on that site. I use it all the time. Bookmark it, please. The way to have an object so that it works in both new and old Browsers is to use BOTH the object and the embed tags. There are all kinds of samples of this code around. find a site which has an object similar to the one you which to include in your page and do a "view > source" to learn how they have done it. A great learning method, by the way. Hope usefull..
__________________ H2O Without us, no one can survive.. |
| |||
| Well i have used it just once when i was attending my classes ! Otherwise i dont think XHTML play a virtual role in the making of a website ! It is just for increasing the coding knowledge ! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is XHTML? | devarajan.v | XML and SOAP | 10 | 09-08-2008 12:59 AM |