alisha-mcfarland-website-development-html-code-allowed-in-wordpress

HTML Code Allowed in WordPress

If you want to use HTML in your WordPress pages, posts and widgets, be aware that there are certain HTML codes allowed in WordPress and some that aren’t due to security reasons.

List of HTML Code Allowed in WordPress

WordPress.com allows the following HTML code in your posts, pages, and widgets:

<a> | Defines a hyperlink

<abbr> | Defines an abbreviation or an acronym

<acronym> | Defines an acronym

<address> | Defines contact information for the author/owner of a document

<area> | Defines an area inside an image-map

<article> | Defines an article

<aside> | Defines content aside from the page content

<b> | Defines bold text

<big> | Defines big text

<blockquote> | Defines a section that is quoted from another source

<br> | Defines a single line break

<caption> | Defines a table caption

<cite> | Defines the title of a work

<code> | Defines a piece of computer code

<col> | Specifies column properties for each column within a <colgroup> element

<dd> | Defines a description/value of a term in a description list

<del> | Defines text that has been deleted from a document

<details> | Defines additional details that the user can view or hide

<div> | Defines a section in a document

<dl> | Defines a description list

<dt> | Defines a term/name in a description list

<em> | Defines emphasized text

<figcaption> | Defines a caption for a <figure> element

<figure> | Specifies self-contained content

<font> | Defines font, color, and size for text

<footer> | Defines a footer for a document or section

<h1> to <h6> | Defines HTML headings

<header> | Defines a header for a document or section

<hr> | Defines a thematic change in the content

<i> | Defines a part of text in an alternate voice or mood

<img> | Defines an image

<ins> | Defines a text that has been inserted into a document

<kbd> | Defines keyboard input

<li> | Defines a list item

<map> | Defines a client-side image-map

<ol> | Defines an ordered list

<p> | Defines a paragraph

<pre> | Defines preformatted text

<q> | Defines a short quotation

<s> | Defines text that is no longer correct

<section> | Defines a section in a document

<small> | Defines smaller text

<span> | Defines a section in a document

<strike> | Defines strikethrough text

<strong> | Defines important text

<sub> | Defines subscripted text

<summary> | Defines a visible heading for a <details> element

<sup> | Defines superscripted text

<table> | Defines a table

<tbody> | Groups the body content in a table

<td> | Defines a cell in a table

<tfoot> | Groups the footer content in a table

<th> | Defines a header cell in a table

<thead> | Groups the header content in a table

<tr> | Defines a row in a table

<tt> | Defines teletype text

<u> | Defines text that should be stylistically different from normal text

<ul> | Defines an unordered list

<var> | Defines a variable

If you don’t see a code you were hoping to use, see my HTML Code NOT Allowed in WordPress blog post.

If you liked this, you may like ...