![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is the best way to attach a caption to an image in xhtml? |
|
I can attach a caption to a table by a "<caption>" tag but I would like to do sth similar to an image. How to do it in a natural way? |
#3
| |||
| |||
|
|
What is the best way to attach a caption to an image in xhtml? |
|
I can attach a caption to a table by a "<caption>" tag but I would like to do sth similar to an image. How to do it in a natural way? |
#4
| |||
| |||
|
|
I'd recommend dropping the worse than useless XHTML silliness and use HTML 4.01 Strict. |
#5
| |||
| |||
|
|
I'd recommend dropping the worse than useless XHTML silliness and use HTML 4.01 Strict. Why? What are the advantages of HTML4.01 over XHTML? I like XHTML because it is more elegant and I think it will be more reusable in the future. |
#6
| |||
| |||
|
|
Tomek Toczyski <guf (AT) kajak (DOT) org.pl> wrote: I'd recommend dropping the worse than useless XHTML silliness and use HTML 4.01 Strict. Why? What are the advantages of HTML4.01 over XHTML? I like XHTML because it is more elegant and I think it will be more reusable in the future. http://www.spartanicus.utvinternet.ie/no-xhtml.htm |
|
Serving XHTML Strict 1.0 as text/html This is at best pointless, UAs will treat it as tag soup. You'll kick IE and some versions of Opera into quirks mode if you add the xml declaration on top of your documents as W3C recommends, omit the xml declaration and the document can only use the default character encodings UTF-8 or UTF-16. |

|
Serving XHTML 1.1 as text/html This violates W3C guidelines, the exemption that XHTML that follows Appendix C guidelines may be served as text/html only applies to XHTML 1.0. |


#7
| ||||||||
| ||||||||
|
|
But I have a "site for fun" (testing and sutch) on the free space I have on my ISP's server. There I have coded XHTML 1.1 "just for fun" and to see how the pages acts, validates a.s.o. as text/html. |
|
Serving XHTML Strict 1.0 as text/html This is at best pointless, UAs will treat it as tag soup. You'll kick IE and some versions of Opera into quirks mode if you add the xml declaration on top of your documents as W3C recommends, omit the xml declaration and the document can only use the default character encodings UTF-8 or UTF-16. I don't call valid code as "tag soap", not even in this "environment". |
For me tag soup is not valid and depricated code only. ![]() |
|
When I omitted the xml declaration from my XHTML pages nothing happends (as I can see) to the content, despite the fact that the pages is not served with UTF-8 or UTF-16 encodings. |
|
I know W3C says XHTML 1.1 *should* be served as application/xhtml+xml. |
Remeber now, I'm not in favor for XHTML for "serious" websites. ![]() I am just curious and have playing around with it, for fun and "research" purpose to learn a bit about it. BTW, I have no access to the ISP's server, |
|
so I can't change the encoding or configure it to serve "proper" XHTML. |
|
I belive most website owners is in the same situation, |
#8
| ||||||||
| ||||||||
|
|
Serving XHTML Strict 1.0 as text/html This is at best pointless, UAs will treat it as tag soup. You'll kick IE and some versions of Opera into quirks mode if you add the xml declaration on top of your documents as W3C recommends, omit the xml declaration and the document can only use the default character encodings UTF-8 or UTF-16. I don't call valid code as "tag soap", not even in this "environment". For me tag soup is not valid and depricated code only. ![]() |
|
When I omitted the xml declaration from my XHTML pages nothing happends (as I can see) to the content, despite the fact that the pages is not served with UTF-8 or UTF-16 encodings. |
|
Serving XHTML 1.1 as text/html This violates W3C guidelines, the exemption that XHTML that follows Appendix C guidelines may be served as text/html only applies to XHTML 1.0. I know W3C says XHTML 1.1 *should* be served as application/xhtml+xml. But I don't recall where it says it *must* be served as sutch. |
|
If it's a "must", then why do the W3C validator say the pages are valid XHTML 1.1. even when served as text/html? |
Remeber now, I'm not in favor for XHTML for "serious" websites. ![]() |
|
BTW, I have no access to the ISP's server, so I can't change the encoding or configure it to serve "proper" XHTML. |
|
I belive most website owners is in the same situation, if they don't have their own server. |
|
So They can't configure the host's server to serve XHTML as sutch (at least those I know of), only as text/html and then it's no point using XHTML at all ![]() |
#9
| |||||||||
| |||||||||
|
|
Arne <invalid (AT) domain (DOT) invalid> wrote: Serving XHTML Strict 1.0 as text/html This is at best pointless, UAs will treat it as tag soup. You'll kick IE and some versions of Opera into quirks mode if you add the xml declaration on top of your documents as W3C recommends, omit the xml declaration and the document can only use the default character encodings UTF-8 or UTF-16. I don't call valid code as "tag soap", not even in this "environment". For me tag soup is not valid and depricated code only. ![]() To many language errors in what you wrote for me to be able to parse it, sorry. |

|
Tag soup refers to HTML, all sorts, valid, non valid, correct, incorrect. The parser required to parse HTML is often referred to as a tag soup parser. |
|
When I omitted the xml declaration from my XHTML pages nothing happends (as I can see) to the content, despite the fact that the pages is not served with UTF-8 or UTF-16 encodings. If you provide an url, others who know about character encoding issues may be willing to comment on any practical consequences of what you are doing. |

|
Serving XHTML 1.1 as text/html This violates W3C guidelines, the exemption that XHTML that follows Appendix C guidelines may be served as text/html only applies to XHTML 1.0. I know W3C says XHTML 1.1 *should* be served as application/xhtml+xml. But I don't recall where it says it *must* be served as sutch. I didn't claim that there was, it's a violation of a w3c guideline. Furthermore the exemption laid out in the notorious Appendix C that XHTML may be served as text/html is attached to and applies to XHTML 1.0 only. |
|
If it's a "must", then why do the W3C validator say the pages are valid XHTML 1.1. even when served as text/html? A validator only checks if a document complies with the applicable DTD. Before you can claim spec compliance you must comply with other spec requirements that cannot be expressed in a DTD, these other requirements are listed in the spec's prose. There are markup checkers that check for DTD compliance *and* for other requirements. Certain checkers may throw an error on XHTML 1.1 served as text/html (Page Valet does in "fussy" mode IIRC). |


Remeber now, I'm not in favor for XHTML for "serious" websites. ![]() Under discussion is "best practice", this applies to all web sites. I have no idea what you mean by a "serious" web site. |

|
BTW, I have no access to the ISP's server, so I can't change the encoding or configure it to serve "proper" XHTML. Nor would you want to if you read and understood the provided resource (for one IE doesn't support XHTML served as such). |

|
I belive most website owners is in the same situation, if they don't have their own server. Again you are using unclear language, what does "own their own server" mean? Virtually every web hosting package allows user configuration for the virtual servers, many of which commonly reside on the same physical server. Web space provided with an ISP dial up or broadband package may not, but they may be willing to do the configuration for you (mine was). |
|
So They can't configure the host's server to serve XHTML as sutch (at least those I know of), only as text/html and then it's no point using XHTML at all ![]() So why are you arguing in favor of doing so? |

#10
| |||
| |||
|
|
On Sun, 20 Nov 2005, Arne wrote, quoting Spartanicus: But I have a "site for fun" (testing and sutch) on the free space I have on my ISP's server. There I have coded XHTML 1.1 "just for fun" and to see how the pages acts, validates a.s.o. as text/html. What you do "for fun" is your own business, but serving XHTML/1.1 as text/html doesn't follow the W3C recommendation. Further discussion below. |

![]() |
| Thread Tools | |
| Display Modes | |
| |