XHTML

  • Thread starter Luigi Donatello Asero
  • Start date
L

Luigi Donatello Asero

I would like to try to transform a page which I have written in HTML 4.01
into XHTML.
How do I choose the doctype and the content declaration?
Does XHTML support both internet and mobile phones browsers?
 
K

kathy painter

Luigi Donatello Asero said:
I would like to try to transform a page which I have written in HTML 4.01
into XHTML. How do I choose the doctype and the content declaration?

Correct Doctype for XHTML is (choose as needed):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

In addition, an example of code might be: instead of writing <BODY> or
Does XHTML support both internet and mobile phones browsers?

Nokia Connecting People:
http://www.forum.nokia.com/main/1,6566,1_1_25_30,00.html#06
What is XHTML Mobile Profile?
XHTML Mobile Profile is defined by WAP Forum, starting with XHTML Basic and
adding few elements and attributes from full XHTML 1.0 that are useful in
mobile browsers including additional presentation elements and support for
internal style sheets. XHTML Mobile Profile is a strict subset of XHTML.

This may or may not be what you were looking for but this page has more
information on it which may be helpful.

Happy coding.

Kathy
 
L

Luigi Donatello Asero

kathy painter said:
Correct Doctype for XHTML is (choose as needed):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

In addition, an example of code might be: instead of writing <BODY> or


Nokia Connecting People:
http://www.forum.nokia.com/main/1,6566,1_1_25_30,00.html#06
What is XHTML Mobile Profile?
XHTML Mobile Profile is defined by WAP Forum, starting with XHTML Basic and
adding few elements and attributes from full XHTML 1.0 that are useful in
mobile browsers including additional presentation elements and support for
internal style sheets. XHTML Mobile Profile is a strict subset of XHTML.

This may or may not be what you were looking for but this page has more
information on it which may be helpful.

Happy coding.

Kathy
Thank you
 
I

Isofarro

Luigi said:
I would like to try to transform a page which I have written in HTML 4.01
into XHTML.


Step 1. Make sure your current stuff validates as HTML4.01 Strict and uses
stylesheets to suggest a layout.

Without this step there is no point in translating a page into XHTML.
 
L

Luigi Donatello Asero

Isofarro said:
Step 1. Make sure your current stuff validates as HTML4.01 Strict and uses
stylesheets to suggest a layout.

Without this step there is no point in translating a page into XHTML.
The page www.scaiecat-spa-gigi.com/sv/valkommen.html
validated as HTML before I tried to change the code in
XHTML 4.01 transitional. It now validates as XHTML 1.0 transitional and you
can see the page www.scaiecat-spa-gigi.com/sv/test.html which is similar and
validates as HTML 4.01 transitional. Why do you think that the page should
first validate as HTML 4.01 Strict to validate as XHTML transitional?
The problem is that the page www.scaiecat-spa-gigi.com/sv/valkommen.html
does not validate as CSS now.
 
I

Isofarro

Luigi said:

Get it valid as HTML4.01 Strict first.
Why do you think that the
page should first validate as HTML 4.01 Strict to validate as XHTML
transitional?

Because XHTML complements the idea of well structured HTML. The whole point
of a redeclaration of XHTML into HTML is that it becomes easier for a
machine or script to process it using standard XML parsers. There's no
point in doing that when your XHTML is filled with presentational gumpf.
XHTML Transitional is meaningless and of no use to anyone - you may as well
stick with HTML4.01 Transitional if you are not interested in structured
HTML.

What are you seeking to gain from using XHTML Transitional (if anything)?
 
L

Luigi Donatello Asero

Isofarro said:
Get it valid as HTML4.01 Strict first.


Because XHTML complements the idea of well structured HTML. The whole point
of a redeclaration of XHTML into HTML is that it becomes easier for a
machine or script to process it using standard XML parsers. There's no
point in doing that when your XHTML is filled with presentational gumpf.
XHTML Transitional is meaningless and of no use to anyone - you may as well
stick with HTML4.01 Transitional if you are not interested in structured
HTML.

What are you seeking to gain from using XHTML Transitional (if anything)?

--
Iso.
FAQs: http://html-faq.com http://alt-html.org http://allmyfaqs.com/
Recommended Hosting: http://www.affordablehost.com/
Web Standards: http://www.webstandards.org/


Thank you for your answer but I have already answered your questions. You do
not need share my opinion.
Also, it seems that the page www.scaiecat-spa-gigi.com/sv/valkommen.html
validates as XHTML 1.0 strict.
Therefore, according to me there are 2 possibilities:
1) the validator fails and in this case I cannot trust it. If I cannot trust
the validator I cannot trust much what I have read in this NG according to
me
2) the validator is right and in this case it is more difficult for me to
share the opinions which you expressed above.
Thank your for your help anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,075
Messages
2,570,554
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top