HOW TO CREATE TABLE IN BLOGGER

 

  1. Log in to your Blogger account and navigate to the post where you want to add the table.

  2. Switch to HTML mode in the Blogger post editor. This mode allows you to input HTML code directly.

  3. Create a basic table structure using HTML. Here's an example of a simple table with two rows and two columns:

html
<table> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> </tr> </table>
  1. Customize the table by adding attributes or CSS styles as needed. For instance, you can add the border attribute to control the border of the table and its cells:
html
<table border="1"> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> </tr> </table>
  1. Add content to the table cells by replacing the placeholder text in the <td> tags with your own content.

  2. Switch back to the Compose mode in the Blogger post editor to see how the table looks in the visual editor.

  3. Preview your post to ensure the table appears as expected.

  4. Publish or update your post to make the table live on your Blogger blog.

You can further style your table using CSS in the <style> section of your Blogger template or by adding inline styles to the table elements. For example, to change the background color of a cell, you can use inline CSS like this:

html
<td style="background-color: #f0f0f0;">Cell Content</td>

Post a Comment

0 Comments