HTML API documentation
- Learn phpdocx in 5 minutes
- Tutorial
- API quick guide
- HTML to Word
- HTML Extended
- Conversion plugin
- Word to HTML
- DOCXPath
- Bulk processing
- DOCXCustomizer
- Digital signature
- Cryptophpdocx
- Right to left languages
- phpdocx CLI command
- Tracking
- Artificial Intelligence
- Blockchain for documents
- JavaScript API
- Compiled mode
HTML API documentation
Please refer to the pages HTML to Word and HTML Extended to learn more about this functionality.
Available attributes and styles are explained on the detail page of every tag.
When a tag is not parsed, it does not mean that its content disappears from the Word document. It only implies that their associated HTML properties are not taken directly into account. Their children and text content will be parsed and rendered with their corresponding styles into the Word document.
-
<a>
Inserts a link
-
<b>, <strong>
Inserts a bold text
-
<br>
Inserts a break
-
<caption>, <figcaption>
Inserts a caption
-
<div>
Wrap contents and apply styles
-
<dl>, <dt>, <dd>
Inserts a description list
-
<h1>, <h2>, <h3>, <h4>, <h5>, <h6>
Inserts a heading
-
<hr>
Inserts a horizontal rule
-
<i>, <em>, <cite>, <var>
Inserts an italic text
-
<img>
Inserts an image
-
<input>
Inserts an input field
-
<mark>
Inserts a highlighted text
-
<p>, <address>, <blockquote>
Inserts a paragraph
-
<pre>
Inserts a preformatted text
-
<s>
Inserts a line through text
-
<select>, <option>
Inserts select and options fields
-
<small>
Inserts a small font size text
-
<span>
Inserts a text in order to apply specific styles
-
<sub>
Inserts a subscript text
-
<sup>
Inserts a superscript text
-
<table>, <tr>, <td>, <th>
Inserts a table
-
<textarea>
Inserts a textarea field
-
<u>, <ins>, <del>
Inserts an underline (or delete) text
-
<ul>, <ol>, <li>
Inserts a list
Allows to invoke phpdocx methods with HTML tags.
The following tags can be customized to use any other tag name. For example header instead of phpdocx_header or bookmark instead of phpdocx_bookmark.
-
<math>
Inserts a MathML content
-
<meta>
Inserts a DOCX property
-
<phpdocx_bibliography>
Inserts a bibliography
-
<phpdocx_bookmark>
Inserts a bookmark
-
<phpdocx_break>
Inserts a break
-
<phpdocx_citation>
Inserts a citation
-
<phpdocx_comment>
Inserts a comment
-
<phpdocx_crossreference>
Inserts a cross-reference
-
<phpdocx_dateandhour>
Inserts a date and hour content
-
<phpdocx_endnote>
Inserts an endnote
-
<phpdocx_footer>
Inserts a footer
-
<phpdocx_footnote>
Inserts a footnote
-
<phpdocx_formelement>
Inserts a form element
-
<phpdocx_header>
Inserts a header
-
<phpdocx_heading>
Inserts a heading
-
<phpdocx_image>
Inserts an image
-
<phpdocx_link>
Inserts a link
-
<phpdocx_mathequation>
Inserts a math equation
-
<phpdocx_mergefield>
Inserts a merge field
-
<phpdocx_modifypagelayout>
Modify page layout
-
<phpdocx_ole>
Inserts an OLE file
-
<phpdocx_onlinevideo>
Inserts an online video
-
<phpdocx_pagenumber>
Inserts page numbering
-
<phpdocx_section>
Inserts a section
-
<phpdocx_shape>
Inserts a shape
-
<phpdocx_simplefield>
Inserts a simple field
-
<phpdocx_structureddocumenttag>
Inserts a structured document tag
-
<phpdocx_tablecontents>
Inserts a table of contents
-
<phpdocx_tablefigures>
Inserts a table of figures
-
<phpdocx_text>
Inserts a text
-
<phpdocx_textbox>
Inserts a textbox
-
<phpdocx_wordfragment>
Inserts a WordFragment
-
<phpdocx_wordml>
Inserts a WordML content
-
<svg>
Inserts an SVG content
-
<title>
Inserts the title as a DOCX property