PDA

View Full Version : What exactly is a webpage written in xhtml



wawape**s
15-03-2007, 10:51 PM
For a Uni project I have to create a little webpage.

Never done this before but I have the new Microsoft Expression Web 2007.

So basically, if I just create a website is it automatically xhtml compliant?

sal
15-03-2007, 11:03 PM
If you knock it up in Expression Web then yes. I've never used it but most modern web editors - even the latest Frontpage - generate XHTML compliant code. All XHTML is is basically a standard to keep documents well structured. If you never look at the html code in the background then you wouldn't really need to worry about it.

Just run a page you finish through something like the W3C Validator (http://validator.w3.org/) and it'll probably validate.

Edit...

Was just watching an Expression Web video and it looks like XHTML is a selling point of it. Noticed you set it when your adding a new page, you click option and set half way down the Page Editor option dialog that pops up the doctype (where an html document gets its xhtml-ness). You should be safe with validation too, which it does inline. Pretty much what you'd expect from a modern application (or bloated)

I've been meaning to check out Expression Web, heard its really good but I'm not sure if it's any better out of the box than Visual Studio 2005, which I use for other projects.

wawape**s
15-03-2007, 11:18 PM
Thanks for your info

TGoddard
16-03-2007, 07:59 AM
If the page is being marked and the marker is a techie then I would strongly advise writing the XHTML by hand. If the XHTML itself is marked then you will lose marks for having messy, automatically generated markup. See http://www.w3schools.com/xhtml/default.asp for help with doing this. Note also that even if you use a graphical tool you must understand at least the basics to be able to bring it into compliance if the WYSIWYG editor produces an invalid piece of code.