0

I am relentlessly trying to insert a simple HTML table into my blog page (not post, but a new secondary page I created) on Tumblr. Each time I put in the code, the text appears unformatted on the screen and when I switch back and forth between "edit html" mode, it changes the table into a paragraph tag automatically and I just don't understand why this is happening.

How can I enter a simple HTML table in a Tumblr page? To add any content or html code, it gives me a text editor with the ability to modify the html code for the added content. So that's where I am inserting the code, in the edit-HTML mode.

Note: Tumblr allows users to switch between Standard, Custom Layouts and Redirects. I need to work with the Standard Layout and as I need the rest of the theme but just need to be able to organize content in a table in the space reserved for the blog post.

Sample code:

<div id="divTable">
<table id="contentTable">
    <tr>
        <th>Counts</th>
        <th>Selection</th>
        <th>Document</th>
    </tr>
    <tr>
        <td>Pages</td>
        <td>0</td>
        <td>1</td>
    </tr>
    <tr>
        <td>Words</td>
        <td>0</td>
        <td>0</td>
    </tr>
    <tr>
        <td>Characters (no spaces)</td>
        <td>0</td>
        <td>0</td>
    </tr>
    <tr>
        <td>Characters (with spaces)</td>
        <td>0</td>
        <td>0</td>
    </tr>
</table>
</div>

I intend to edit the CSS for this table later in the main style sheet in the Tumblr theme I am working with.

2

You need to switch the default text editor being used to adjust the HTML code from Rich Text to Plain Text/HTML in Account → Preferences → Text-editor.

The rich text editor apparently changes some of the tags such as <embed>, <table> etc to <p> tags automatically.

The plain text editor comes with HTML editing enabled by default.

protected by Community Jun 24 '16 at 18:21

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.