Pages to HTML Feb12 '05

I was curious about Pages export to HTML feature. I wanted to see if it produced valid and well–formed code.

It turns out many things (about the HTML) are pretty clean. It’s not nearly as bad as Word’s export to HTML feature – which produces nested tables, superfluous font tags, etc.

The first thing I noticed when looking at the source of the page is there is no DOCTYPE – BUT... the first element DOES have the XML Namespace attribute, which is good:

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

The Content–type is declared as UTF-8, which is also good.

The rest of the document seems very clean and uncluttered. The only thing that strikes me is the constant use of inline styles. Practically every paragraph has something like this applied:

<p style="margin-bottom: 0; margin-top: 0; padding-bottom: 0; visibility: hidden;">

Of course, by using CSS, there is more control over the appearance, but littering the inline styles everywhere is no better a practice than using <font> tags everywhere.

Also, I only exported a simple, five line text document from Pages. I may try to export something more involved, with pictures and lists.

Categories: Software , XHTML

Add Feedback (view all)

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

Similar Entries

Stats

3 unique visits since November 2008

Syndicate

Advertisements