IT Community - Software Programming, Web Development and Technical Support

How many of you are using XHTML?

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Web Design Help

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 08-02-2007, 05:22 AM
abhilashdas abhilashdas is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 10
abhilashdas is on a distinguished road
Default How many of you are using XHTML?

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?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-03-2007, 03:52 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 245
H2o is on a distinguished road
Default Re: How many of you are using XHTML?

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..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-12-2007, 12:25 PM
Eddy Eddy is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 1
Eddy is on a distinguished road
Default Re: How many of you are using XHTML?

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-13-2007, 12:57 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 245
H2o is on a distinguished road
Thumbs up Re: How many of you are using XHTML?

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..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-02-2007, 10:55 PM
accer accer is offline
D-Web Sr.Programmer
 
Join Date: Sep 2007
Posts: 174
accer is on a distinguished road
Default Re: How many of you are using XHTML?

I use whatever works the fastest and the best to provide the results I or the customer wants.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 10-13-2007, 02:01 PM
darsh999 darsh999 is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 8
darsh999 is on a distinguished road
Default Re: How many of you are using XHTML?

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 !
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML vs XHTML: Nesting, The Difference jesichamika HTML, CSS and Javascript Coding Techniques 1 09-16-2009 08:29 PM
Css/xhtml nava HTML, CSS and Javascript Coding Techniques 2 09-16-2009 07:47 PM
What is XHTML? devarajan.v XML and SOAP 11 05-11-2009 01:28 AM
What is difference between XHTML,HTML,DHTML? pradip030384 XML and SOAP 4 01-02-2009 07:56 PM
XHTML/CSS UI Designer for LogicManse logicmanse Interview Questions & Answers and Tips 0 09-29-2008 10:15 AM


All times are GMT -7. The time now is 01:59 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0