--> Create Shortcode For Responsive HTML Tables! | Experience Lab - Online business creation and development guide for bloggers and startups

Create Shortcode For Responsive HTML Tables!

An HTML Table is the most important part of a webpage design that helps you organize content in rows and columns. If you have large HTML Tab...

HTML Table ShortcodeAn HTML Table is the most important part of a webpage design that helps you organize content in rows and columns. If you have large HTML Tables then they can barely fit in small Mobile screens and if you try to squeeze it up, the tables either crash or becomes unreadable. Today we will help you create dynamic and Fancy Mobile Responsive HTML Tables using Shortcodes that are naturally fluid and responsive by nature. Instead of squeezing the Table we will let your mobile readers to horizontally scroll Table data using their Thumbs. Responsive Tables are touch sensitive and they can be scrolled to left or right, thus making your content both viewable and readable. All these thanks to Blogger Shortcode Plugin that helps you create amazing design tools with a simple one line code!

You will be able to insert HTML Tables inside your Blog Posts, widgets and guess what? You can even add Tables inside your blogger comments!

What is HTML Table Shortcode?

The table shortcode is a simple textual shortcut code that lets you create fancy Tables without using complex HTML. You can create tables directly from your Blogger Editor composer without needing to switch to the HTML mode.

You all know that a table consists of three important elements which are:

Element Definition
Row In HTML syntax we call it the <tr> tag but in our Shortcode we renamed it as [row]
Column In HTML DOM it is known as <td> which is the data container or data cell. You can insert text, images, lists, other tables or shortcodes here etc. In our shortcode we simplified it to [col]
Heading This tag is written as <th> In our shortcode you will call it [heading] which sounds much more readable.

Instead of using a complex ugly HTML code to design a table you can use a human readable shortcode that does wonders. Our Shortcode is not platform dependent. You can use it anywhere you like, may it be Wordpress, Joomla, Drupal, Blogger or a simple Static HTML webpage. It works great everywhere.

For The Record

So far this is the first Shortcode for HTML tables that does not uses the complex method of passing data as a long sequential array.  Instead you will construct the layout for your HTML Table using rows and columns to clearly organize data. Lets create one instantly!

1. Install Blogger Shortcode Plugin

In order to use Table shortcode you must first install the shortcode plugin for your blogspot blog by following 7 easy steps shared in the link below:

Skip installing it if you have already added it in your blogger template

2. Add Color Themes

We have created 4 Color Themes.

  1. theme1 - Default Black

  2. theme2 - Blue

  3. theme3 - Green

  4. theme4 - Red

Add them to your templates by following these steps:

1 Go To Blogger > Template > Backup your Template

2 Click "Edit HTML"

3 Search for this code ]]></b:skin>

4 Paste the following Code just above it

/*----------HTML Table Shortcode--------*/

#theme1, #theme2,#theme3,#theme4{width:100%;font-family:sans-serif,arial; block;border-spacing: 0;}

#theme1, #theme2,#theme3,#theme4,#theme1 th, #theme2 th,#theme3 th,#theme4 th,#theme1 td, #theme2 td,#theme3 td,#theme4 td{border:1px solid #ddd;border-collapse:collapse}

#theme1 td, #theme2 td,#theme3 td,#theme4 td{padding:10px}

#theme1 th, #theme2 th,#theme3 th,#theme4 th{padding:12px 10px;text-align:left;font-family:oswald;font-weight:400; font-size: 17px;}

#theme1 tr:nth-child(odd){background-color:#f1f1f1}

#theme1 tr:nth-child(even),#theme2 tr:nth-child(even),#theme3 tr:nth-child(even),#theme4 tr:nth-child(even){background-color:#fff}

#theme1 th{background-color:#333;color:#fff;border:1px solid #333}

#theme1 th:nth-child(even){background-color:#555}


#theme2 tr:nth-child(odd){background-color:#d3ecf2}

#theme2 th{background-color:#42b0c9;color:#fff;border:1px solid #42b0c9}

#theme2 th:nth-child(even){background-color:#4bbad3}


#theme3 tr:nth-child(odd){background-color:#e2f2d3}

#theme3 th{background-color:#a3e264;color:#fff;border:1px solid #a3e264}

#theme3 th:nth-child(even){background-color:#85c942}


#theme4 tr:nth-child(odd){background-color:#efddda;}

#theme4 th{background-color:#ef4832;color:#fff;border:1px solid #ef4832}

#theme4 th:nth-child(even){background-color:#de1f05}

@media only screen and (max-width:768px) {#theme1,#theme2,#theme3,#theme4 {overflow-x: auto;display: block;}}

5 Save your template and all done!

Finally Create HTML Table Shortcode

HTML Table Layout

  • The above image shows a Responsive Table with 7 Rows and 3 Columns.

  • Where each row contains three columns.

  • Columns are vertical and Rows are horizontal.

Headings are created using the following shortcode


Data inside table cells is inserted using the following shortcode



Now when you wish to add a Table inside your blog post, you will add the full shortcode in this format.

[table color="theme3"] 

[row] [heading]Title 1[/heading] [heading]Title 2[/heading] [/row] 

[row] [col]Cell 1[/col] [col]Cell 2[/col] [/row]


The above Shortcode will create a Green (theme3) Table with 2 rows and 2 columns as shown below

2 rows 2 columns

  • To choose a different theme color simply replace theme3 with theme4 or theme2

  • The default theme is theme1 for which you can use simply [table], no need to mention color attribute.

To Create a Table with  4 Rows and 2 columns you will use the shortcode in this format

[table color="theme3"]

[row] [heading]Title 1[/heading] [heading]Title 2[/heading] [/row]

[row] [col]Cell 1[/col] [col]Cell 2[/col] [/row]

[row] [col]Cell 3[/col] [col]Cell 4[/col] [/row]

[row] [col]Cell 5[/col] [col]Cell 6[/col] [/row]


4 rows 2 columns

Lets Create a table with 4 Rows and 3 columns.

[table color="theme3"] 

[row] [heading]Title 1[/heading] [heading]Title 2[/heading] [heading]Title 3[/heading] [/row] 

[row] [col]Cell 1[/col] [col]Cell 2[/col] [col]Cell 3[/col] [/row] 

[row] [col]Cell 4[/col] [col]Cell 5[/col] [col]Cell 6[/col] [/row]

[row] [col]Cell 7[/col] [col]Cell 8[/col] [col]Cell 9[/col] [/row]


4 rows 3 columns

Wasn't that easy? You just need to keep care of the pattern in which you organize the cells. The table will take the shape of the pattern you create using the shortcode. You can insert images, text, lists, videos, other shortcodes and almost any HTML you want!. Sky is the limit with Table Shortcode =)

List of Blogger Shortcodes

Need Help?

If you need any further help do let us know. You can also join our 24/7 Free help and support forum to ask for further technical assistance.

Blogger shortcode Plugin have been our biggest contribution to Blogspot blogs. We hope to bring and introduce more such amazing plugins and tools to make your blogging journey worthwhile. Peace and blessings buddies! =)



Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
Experience Lab - Online business creation and development guide for bloggers and startups: Create Shortcode For Responsive HTML Tables!
Create Shortcode For Responsive HTML Tables!
Experience Lab - Online business creation and development guide for bloggers and startups
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy