converting html to xhtml in expressions web

G

Guest

I am now trying to work with my Frontpage created website in Expression Web.
I am following the advice in these discussion groups to try to clean up the
code to XHTML standards.

I took one small page and added Doctype, then choose Reformat HTML, then
chose Apply XML and all yellow-highlighted problem areas disappeared, which
was nice.

Now I am left with numerous (not yellow-highlighted but rather underlined
with a red squiggly line) errors, mainly having to do with comments such as:

"The World Wide Web Consortium now regards the attribute 'align' as
outdated. Newer constructs are recommended."

I get this same error message for <font> and 'border'.

Question #1:
So, how do I find these "newer constructs" to replace the errors for
'align', <font>, and 'border'? And how important are these errors anyway?

Question #2: One other error I do not understand is this:

All <style> tags must have a type attribute.

How do I correct that?

Question #3: And finally, in one of the discussion threads it was suggested
to change the <html> tag to:

<html xm1ns="http://www..w3.org/1999/xhtml">

When I did that, an error messge came up stating that xm1ns is not allowed.

So, I just changed it back to <html> and the error message went away.

What was that all about?

Thanks for any help you can give me.

Carl
 
R

Ronx

Inline below

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp



I am now trying to work with my Frontpage created website in Expression Web.
I am following the advice in these discussion groups to try to clean up the
code to XHTML standards.

I took one small page and added Doctype, then choose Reformat HTML, then
chose Apply XML and all yellow-highlighted problem areas disappeared, which
was nice.

Now I am left with numerous (not yellow-highlighted but rather underlined
with a red squiggly line) errors, mainly having to do with comments such as:

"The World Wide Web Consortium now regards the attribute 'align' as
outdated. Newer constructs are recommended."

I get this same error message for <font> and 'border'.

Question #1:
So, how do I find these "newer constructs" to replace the errors for
'align', <font>, and 'border'? And how important are these errors anyway?


These are CSS attributes, such as float:left replacing align="left"
See http://www.w3schools.com for a CSS tutorial.

Replacing the font tags with CSS will make maintenance much easier, but
none of these errors will prevent the page being displayed in any
browser.
Question #2: One other error I do not understand is this:

All <style> tags must have a type attribute.

How do I correct that?


Question #3: And finally, in one of the discussion threads it was suggested
to change the <html> tag to:

<html xm1ns="http://www..w3.org/1999/xhtml">

When I did that, an error messge came up stating that xm1ns is not allowed.

So, I just changed it back to <html> and the error message went away.

What was that all about?

Should be
html xmlns="http://www..w3.org/1999/xhtml">
Note the lower case L , not number one.
 

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

Top