Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Create html from Pages?

How do I create an html from pages?


MacBook Air 13″, OS X 10.10

Posted on Jan 19, 2022 11:59 AM

Reply
Question marked as Best reply

Posted on Jan 19, 2022 12:07 PM

Not directly no. Pages does not support HTML directly for file export.


You can export the document a Word doc and then use any number of apps to convert that to HTML.


See here: Save Pages file as HTML? - Apple Community

3 replies

Jan 19, 2022 12:14 PM in response to margo143

You don't. Pages has no HTML export, or save feature, but MS Word and LibreOffice Writer do, if you were to feed them a Pages document exported as Word .docx document.


If you had the optional, free Pandoc command-line tool, you could convert a Word .docx document (without images) to a formatted HTML document. Pandoc also supports including a CSS (.css) style document to enhance the HTML result:


pandoc -s -t html5 --metadata title="a foo title" -o foo.html foo.docx
open foo.html


Jan 19, 2022 9:58 PM in response to margo143

Pages is not an html editor. Text edit is not either, but it is closer to being one in that it can work in Rich Text format, which may be more easiky reformatted into html.


There are several online sites offering web page generation tools, and I suspect there are several html editing applications in the Mac App store.


Regards,

Barry

Create html from Pages?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.