|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS - What type of style to use for xhtml
I've been exploring XML/XHTML, and now I know enough to be dangerous.
In XML, three styling methods can be used: CSS XML DTD XML Schema Which of these is most appropriate/advantageous for use with HTML/XHTML? Are there advantages to using one of these over the others? joe |
|
#2
|
||||
|
||||
|
I always use XHTML 1.0 strict with an external CSS stylesheet. I pretty much just use the following template to start my pages. The others you listed are for defining the structure of XML and XML only...so they have nothing to do with XHTML. You should understand the difference between XML and XHTML...while they're structure and syntax is similar, they serve quite different purposes and have different mime types (text/html and text/xml).
Code:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>A title here...</title> <meta name="Description" content="" /> <meta name="Keywords" content="" /> <link href="default.css" rel="stylesheet" type="text/css" title="Default Stylesheet" /> </head> <body> <!-- Some code here --> </body> </html>
__________________
www.xoise.com - www.ourfreegames.com - www.playtouchgames.com - www.randomtools.net - www.xenocide-rpg.com |
|
#3
|
||||
|
|
||||
|
Another slight correction...
XHTML uses CSS XML uses XSL
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
|
#4
|
|||
|
|||
|
Thanks, guys (and/or gals)!
I learned what I know about XML/XHTML from the tutorials at W3C - they were good info, but I still don't feel like I know what I need to about either... Does anyone know a good place to go for a more thorough coverage on the subject? |
|
#5
|
||||
|
|
||||
|
These are the sites that I've found most helpful:
W3Schools Web Design Group SitePoint And don't forget the CSS Validator. Its insight can proof extremely helpful in teaching you proper CSS usage. |
|
#6
|
|||
|
|||
|
Quote:
Those are great sites, but I'm already pretty handy with CSS and HTML. I was looking more for XML/XHTML stuff. I've got the site that I'm working on to validate as XHTML by cleaning up my HTML, but surely there's more to it than forcing us to write clean code... are there any other advantages/powers to XHTML? joe |
|
#7
|
||||
|
||||
|
Well, you should understand that XHTML is really just HTML in a more strict sense. They're not two different languages.
|
|
#8
|
|||
|
|||
|
Exactly what I needed to know - Thanks!
joe |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > CSS - What type of style to use for xhtml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|