View previous topic :: View next topic |
Author |
Message |
happyman New Programmer
Joined: 31 Jan 2009 Posts: 6
|
I'm a beginner... What is the difference between HTML and XHTML? When I write in DOCTYPE - is something will be changed on my page? _________________ we are hunters for miracles
Reply with quote
|
|
|
|
musician Enthusiastic Coder
Joined: 09 Feb 2009 Posts: 27
|
it depends on your code... XHTML it's HTML, but changed and have some strict rules
Reply with quote
|
|
|
|
musician Enthusiastic Coder
Joined: 09 Feb 2009 Posts: 27
|
and there are three types of XHTML: strict, transitional and something with frames
Reply with quote
|
|
|
|
happyman New Programmer
Joined: 31 Jan 2009 Posts: 6
|
musician wrote: |
it depends on your code... XHTML it's HTML, but changed and have some strict rules |
what rules? _________________ we are hunters for miracles
Reply with quote
|
|
|
|
musician Enthusiastic Coder
Joined: 09 Feb 2009 Posts: 27
|
all contemporary browsers understand XHTML. If you want well-done pages - use XHTML - there will be less problems. Read rules on W3C-site.
Reply with quote
|
|
|
|
linx New Programmer
Joined: 09 Feb 2009 Posts: 11
|
happyman, read HTML 4.01, XHTML 1.0 W3C-specifications _________________ ...and justice for all...
Reply with quote
|
|
|
|
happyman New Programmer
Joined: 31 Jan 2009 Posts: 6
|
Thanx a lot! I've found some good articles now and specifications... _________________ we are hunters for miracles
Reply with quote
|
|
|
|
linx New Programmer
Joined: 09 Feb 2009 Posts: 11
|
musician wrote: |
and there are three types of XHTML: strict, transitional and something with frames |
XHTML 1.0 Strict
DOCTYPE with DTD/xhtml1-strict.dtd
Use the strict DOCTYPE when you want really clean markup, free of presentational clutter. Use together with CSS.
XHTML 1.0 Transitional
DOCTYPE with DTD/xhtml1-transitional.dtd
Use the transitional DOCTYPE when you want to still use HTML's presentational features.
XHTML 1.0 Frameset
DOCTYPE with DTD/xhtml1-frameset.dtd
Use the frameset DOCTYPE when you want to use HTML Frames to split the web page into two or more frames.
Good luck!  _________________ ...and justice for all...
Reply with quote
|
|
|
|
|