The Crafty Mummy

Crafts. Sewing. Quilting. Crochet. Tutorials.

  • Start Here
  • Welcome
    • Subscribe
    • About Me
      • Copyright
      • Disclosure
      • Privacy Policies
    • Advertise
    • Sharing
      • Recommendations
      • Shopping & Coupons
      • Books
  • Explore
    • Crafts
      • Beading
      • Kids
      • Paint
      • Storage
      • Christmas Crafts
    • Sewing
    • Quilting
    • Stitching
    • Crochet
      • Yarn
    • Life
      • Food
      • Organisation
    • Blogging
      • How To
      • Social Media
      • WordPress Plugins
      • Photography
  • Tutorials
    • Tips
  • Shop on Etsy
  • Shop on Redbubble

Create a HTML Table in your Blog Post

by Tonya Grant |Filed Under: Blogging, How To Tagged With: HTML Get a Weekly Update of all Articles

 table in blog post

Do you want to create a blog post with a pretty list of items and pictures, all lined up nicely and not wrapping the text around the pictures? I wanted to the other day. I found out I needed to create a Table. I know how to do that in word processing documents but I have never worked out how to do it on a blog post… until now!

How to Create a HTML Table in a Blog Post

There may be more than one way to do this but this way is to use some HTML code to create the table. Then you can add your text and pictures.

You need to add the HTML code into the HTML tab of your blog post editing screen – look in the top right on WordPress or the top left on Blogger.

Let’s grow our table step by step:

cellspacing=”20″ align=”center”>

<tbody>

THE REST OF THE TABLE CODE WILL GO IN HERE

</tbody>

</table>

Start with the code above to set up the Table outlines. Two lines go at the start to open the table, and two lines go at the end to close off the table.

The cellspacing controls how far apart your boxes (or cells) will be. I have 20 pixels between mine in this code, but if you leave that out all together there will be no space between them.

The align code decides where the table is aligned within the page. I like things “center” but you could use “left” or “right” instead. It won’t change the text alignment within the individual cells, just the alignment of the entire table.

Creating the cells

The cells are created in rows. <tr> goes at the start of a row and </tr> at the end of the row. Each cell has <td> at the start and </td> at the end. The cells will be the size of the largest thing you put in them. So if you put a picture in that is 125×125 pixels then the cell will be 125×125 too.

<tr>

<td>First cell</td>

<td>Second cell</td>

<td>Third cell</td>

</tr>

To create another row of cells, just repeat this HTML code again.

Putting it all together

<table cellspacing=”20″ align=”center”>

<tbody>

<tr>

<td>First cell</td>

<td>Second cell</td>

<td>Third cell</td>

</tr>

<tr>

<td>First cell</td>

<td>Second cell</td>

<td>Third cell</td>

</tr>

</tbody>

</table>

This code will create a table with 2 rows of three columns or cells. Like this:

 

First cell Second cell Third cell
First cell Second cell Third cell

When I paste that code into my HTML tab to create the table, this is what it will look like in the Visual Tab.

 

Then I can edit it in the Visual Tab just as if I were editing any blog post. The dotted lines let you see where the cells are but they won’t appear in the published post. I can delete the words and change them to other words. I can delete the words and change them to picture – just by adding a picture as I would in any other post. Here’s some pictures and words added:

 

how to blanket stitch make text button with skitch
How to Blanket Stitch Making a Text Button Clothes Peg Planes

 

The pictures in this table are 150×150 and the text has been made bold and centred just as you would make any text bold and centred.

These are the basics of creating your table. Look out another day soon for more about tables: how to add lines, how to create headings and more.

 

Filed Under: Blogging, How To Tagged With: HTML

« Back To School Sewing
Baby Quilt Collection »
Disclosure: There are affiliate links in this post.  This just means that if you click through and choose to purchase something I may get a small commission - at no extra cost to you, of course.  This helps me keep the content here at The Crafty Mummy free for everyone.

I love to chat so please leave me a comment or ask a question.

Don't stress if your comment doesn't appear immediately - sometimes I have to moderate comments thanks to spam visitors, but the comments from real readers will always get published. Scroll down to add your thoughts or ask a question.

Comments

  1. Lee says

    August 18, 2012 at 1:51 PM

    Thank you! Have pinned. x

    • CraftyMummy says

      August 18, 2012 at 6:03 PM

      You’re welcome!!

  2. B says

    August 18, 2012 at 5:36 PM

    Oh! So this is how I can get my instagram posts to be all lined up and centred!?

    Thank you – I had thought this week that I would have to work out how to do this – and – as ‘luck’ would have it – you have already worked it out!

    Mwah,
    B

    • CraftyMummy says

      August 18, 2012 at 6:02 PM

      Exactly! I wanted to use it on some new pages but it will work for your instagram posts too. You’re welcome!

  3. Salz says

    August 18, 2012 at 8:07 PM

    Thanks really handy will have to remember this one. Have book marked it.

  4. dail says

    August 18, 2012 at 11:05 PM

    Thanks so much!

  5. Brigid | The Inspired Notebook says

    August 20, 2012 at 2:23 PM

    I’m so glad I discovered your blog via Facebook. This is exactly the info I need for my own blog and bookshop site. and a google search some time back didn’t really help at all. Perfect that I stumbled across this today. Thankyou!!

    • CraftyMummy says

      August 20, 2012 at 2:47 PM

      You’re welcome, Brigid! Glad to help

  6. Deb @ Home life simplified says

    August 25, 2012 at 2:20 PM

    Brilliant tutorial as always – pinned!

  7. Annaleis says

    January 3, 2013 at 5:13 PM

    Just wanted to say thank you for this tutorial. Its not perfect but I created a basic table to show case the birthday party ideas I have had. Will look at the next post about tables when I get time. Thanks for showing how it works and sharing the how tos.

    Annaleis

    • CraftyMummy says

      January 3, 2013 at 9:15 PM

      You’re very welcome! Glad it helped

  8. Lia Angelina says

    July 9, 2019 at 8:36 PM

    thanks for the tutorial!
    umm, can you make tutorial about like automatic table? like where we can fill in form and then the data will automaticly appered ??? thanks for helping!

Hi! I’m the CraftyMummy

Tonya is the voice behind The Crafty Mummy. She dabbles in lots of different crafts – patchwork, quilting, cross-stitch, scrapbooking, knitting, crochet and sewing. This is the record of projects she has done, and the projects she dreams of getting to! Read More…

Search

  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter
  • YouTube
Shop my Affiliate Favourites

Fat Quarter Shop for Fabric and More

Grab the Sew Sampler Box Here

AccuQuilt for Cutting Machines and Dies

QuiltyBox for Monthly Treats in the Mail

CreativeBug for Craft Classes

Pretty Darn Cute for Blog Designs like mine

Creative Market for Fonts, Images, Themes and More

OzGameShop for All the Games

Adrift for Fashion you’ll Love

Kindle Unlimited Membership Plans

Kindle Book List

Click to shop my kindle book list
Shop my Amazon Influencer Shop
Join the CrochetU and learn to crochet
New to TheCraftyMummy.com? Click here to see more
Blog Tools I use for TheCraftyMummy.com

Grammarly

Aweber for email newsletter

CoSchedule to stay organised and share

Milotree for social media

Genesis for blog framework

FoodiePro is my theme

Hosting with WPEngine

Powered by

Recent Articles

Disclosure: There are affiliate links on this site. This means that I may get a commission if you choose to purchase after browsing via these links - at absolutely no extra cost to you, of course. I only recommend products which I use and love, or that I think will be quality products that will be useful to my readers. It is the affiliate links in this site that help me keep my tutorials free of charge. Thank you!

Looking for something? Search here:

Copyright 2015 The Crafty Mummy · Built using Genesis Framework & Foodie Pro Theme