1. Home
  2. Computing & Technology
  3. Web Design / HTML

How To Convert HTML to XHTML in FrontPage

By Jennifer Kyrnin, About.com

Microsoft FrontPage 2003

Microsoft FrontPage 2003

Image courtesy Microsoft

Microsoft FrontPage writes HTML as standard HTML unless you make some changes to the page and the code. But it's very easy to convert an HTML document to XHTML using FrontPage.

Difficulty: Easy
Time Required: 5 minutes

Here's How:

  1. Open the page you want to convert in FrontPage.
  2. Switch to the HTML view window.
  3. Right click in the HTML and choose "Apply XML Formatting Rules".
  4. Position your mouse at the top of the screen - above the <html> tag.
  5. Insert a valid XHTML doctype:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. In the <html> tag, add the XML namespace and language code:
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  7. Now, as long as you periodically apply the XML formatting rules (step 3), your document should be well-formed XHTML.

Tips:

  1. It's a good idea to use XHTML to keep your Web pages standards compliant.

What You Need:

  • FrontPage
More Web Design / HTML How To's

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML Editors and Software
  5. HTML Editors
  6. FrontPage
  7. FrontPage How Tos
  8. How to Convert HTML to XHTML in FrontPage

©2008 About.com, a part of The New York Times Company.

All rights reserved.