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.
Add Feedback (view all)
Leave feedback
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.
Similar Entries
- JavaScript badges should reside on the bottom of the HTML page (111 recent visits)
- Using JavaScript to obtain data from HTML and XML (187 recent visits)
- CSS class, or HTML tag? (9 recent visits)
- HTML to XHTML – a refresher (4 recent visits)
- JavaScript can access hidden HTML (354 recent visits)
- HTML tables expanding (205 recent visits)
Stats
3 unique visits since November 2008