• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
Daily Blog Tips

Daily Blog Tips

How to make money from your blog

  • Home
  • Popular
  • Contributors
  • About
  • Contact / Advertise
  • Blogging
  • Marketing
  • Design
  • Money
  • Reviews
  • Productivity
  • Software
  • Technology

Five Crucial HTML Tags Every Blogger Should Know

By Mark 16 Comments Reading Time: 3 minutes

A couple of weeks ago, I explained the basics of HTML and why you might want to use it.

In today’s post, I’ll go through some simple HTML tags that every blogger should know about.

You can add extra information within some tags, too, as you’ll see in the examples and for instance if you want position an image centrally, or make a link open up in a new tab.

Keep in mind that you don’t need to type these tags when creating posts in WordPress: you can use the buttons in the visual editor instead. (Or you can copy your post in from Word, with formatting already in place.)

<p>

The <p> tag indicates a paragraph. Each paragraph needs to start with <p> and end with </p> so that your browser knows where to put the line breaks.

(HTML code doesn’t recognize spaces, except the space between two words.)

In WordPress, <p> tags are added automatically by your blog’s code and don’t appear in the Text editor. (You can also choose to add them automatically in widgets.)

If you go to a post on your blog and click “View source” in your browser, you’ll see the <p> and </p> wrapped around each paragraph:

HTML-code-showing-paragraphs

<h1>, <h2>, <h3> … and more

HTML has special tags for headers and subheaders, which are:

<h1> — the biggest, “Heading 1”

<h2> — the next biggest  (this is what I’m using for subheadings in this post)

… and so on down to <h6>

Normally, you won’t use <h1> in your content as that’s used for the title of your blog post or page.

To use a header tag, simply wrap it around your subheading like this:

<h2>Your Next Steps</h2>

<a href> Creates a Link

The “a href” tag creates a hyperlink. If a link ever goes awry, it’s useful to know what the code looks like so you can fix it.

Here’s a link and the code for it:

DailyBlogTips

<a href="http://www.dailyblogtips.com">DailyBlogTips</a>

You can add extra features to your link. For instance:

<a href="http://www.dailyblogtips.com" target="_blank" 
title="This link opens in a new window/tab">DailyBlogTips</a>

This produces a link like this (hover your cursor over it to see the title):

DailyBlogTips

If your link doesn’t work…

  • Check that you’ve used straight quotes not curly (smart) quotes.
  • Check that you haven’t missed one of the quotation marks.
  • Check that the URL starts with http://

<img> shows an image

The “img” tag shows an image, like this one (me and my daughter Kitty on Christmas Eve):
Five Crucial HTML Tags Every Blogger Should Know Photo
In its simplest form, as for the image above, it looks like this:

<img src="http://www.dailyblogtips.com/wp-content/uploads/
Xmas-Eve.jpg"/>

You can add extras to your image too, e.g. title text (which appears when the user hovers over the image). If you want to center an image in WordPress, use class=aligncenter.

<img src="http://www.dailyblogtips.com/wp-content/uploads/
Xmas-Eve.jpg" class="aligncenter" title="Ali and her daughter 
Kitty on Christmas Eve"/>

Five Crucial HTML Tags Every Blogger Should Know Photo
Note: This tag is opened and closed in one. The forward slash at the very end of the tag closes it.

<ul>, <ol> and <li> Creating Lists

Here’s an “unordered list” in HTML:

<ul><li>Bread</li>
<li>Milk</li>
<li>Carrots</li>
<li>Potatoes</li></ul>

This displays as:

  • Bread
  • Milk
  • Carrots
  • Potatoes

Note how each list item has <li> at the start and </li> at the end, and the whole list has <ul> at the start and </ul> at the end.

To use numbers instead of bullet points, simply switch the <ul> and </ul> for <ol> and </ol>. You’ll get an “ordered list” like this:

  1. Bread
  2. Milk
  3. Carrots
  4. Potatoes

 

Do you have a sixth essential tag to add or any other HTML tips to share?

Five Crucial HTML Tags Every Blogger Should Know Photo

About Mark

Mark is an digital entrepreneur from New York City who recently acquired DBT. He started his ventures buying growing then selling several businesses and content blogs on Flippa. A perfect night for him constitutes pizza, wine, slow jazz and WordPress! He's an SEO expert and a growth strategist. When he's not working on his businesses he enjoys sharing his learned lessons with the DBT community.

Reader Interactions

Comments

  1. Avatar of jorge jacoboonjorge jacoboon says

    at

    The strong tag.

    Reply
  2. Avatar of MaxonMaxon says

    at

    A lot of bloggers use WordPress and it’s crucial to know a bit HTML hence. Tags make it easier to format and achieve the result you crave. You get better spacing and alignments if you know tag base.

    Reply
  3. Avatar of Ali LukeonAli Lukeon says

    at

    @Karleen — Raspal has it exactly. Thanks Raspal for getting there before me!

    Reply
  4. Avatar of Sybil Bates McCormackonSybil Bates McCormackon says

    at

    Thanks for the info. I was long overdue for a refresher on the use of HTML tags.

    Reply
  5. Avatar of KarleenonKarleenon says

    at

    Raspal, thank you so much! After I did what you said, it all came back to me! It’s been awhile since I’ve written blog posts and I have obviously forgotten some things.

    Reply
  6. Avatar of Raspal SenionRaspal Senion says

    at

    @Karleen: Once you have inserted an image in the WordPress visual editor, clicking/selecting the image will reveal two links – Edit Image and Delete Image. Click on Edit Image. Under the image click on the alignment you want: Left, Right, Center or None. You can try with the left or right align.

    Reply
  7. Avatar of PerchonPerchon says

    at

    Regarding the h1’s, apparently google doesn’t like more that one per page.

    Reply
  8. Avatar of Anish GuptaonAnish Guptaon says

    at

    Thanks for this helpful information with us. With the help of these tags, we have to improve the search engine optimization of our posts. It is really helpful information for new bloggers as well as for experienced bloggers too.
    Keep writing these kind of stuff.

    Reply
  9. Avatar of Raspal SenionRaspal Senion says

    at

    The tags didn’t show up above, but the ones I typed were the br tag, the space tag and the horizontal line tag.

    Reply
  10. Avatar of Raspal SenionRaspal Senion says

    at

    I use the above html tags almost in every post, since I hand code some part of it. Sometimes, there’s no option than to hand code the post in WordPress – the visual editor just won’t work on a certain thing, like an extra blank line or an extra space.

    Reply
  11. Avatar of HimanshuonHimanshuon says

    at

    Hello Ali,
    It’s really a good post for everyone, I also know about these html tags, these tags are very common which everyone using on their website. Sometime, I do mistakes in creating lists but your explanation remove my all mistakes..

    Reply
  12. Avatar of SundayonSundayon says

    at

    the blockquote is another important HTML tag every blogger should know. It helps to highlight a quote from another source. All you need do is place the word, sentence, or paragraph text in between the blockquote and the closing tag you will get something like this

    Reply
  13. Avatar of Enstine MukionEnstine Mukion says

    at

    Hi Ali,
    Sometimes it’s good to bypass the comfort of the virtual editor and do some stuffs manually. With a better understanding of some few HTML tags, one can always have full control on how to display what

    Reply
  14. Avatar of nordieonnordieon says

    at

    course, that should read BOLD, ITALIC and UNDERLINED (!)

    Reply
  15. Avatar of nordieonnordieon says

    at

    General formatting like and to spice text up a little and make it interesting?
    Then into controlling font type and size and colour?

    Reply
  16. Avatar of KarleenonKarleenon says

    at

    Thanks for these html codes, Ali. I already knew most of these, but it’s been a while since I’ve used them. One thing I’m having trouble remembering how to do is after I have inserted an image in my post, say on the left side, I forget how to be able to type in a paragraph to the side of it, so I can sort of wrap my paragraph around the image.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Trending Today

Popular

  • 28 Ways to Make Money with Your Website 514 Comments
  • 43 Web Design Mistakes You Should Avoid 474 Comments
  • 4 Steps to Increase Your Blog Traffic 188 Comments
  • How to Find Advertisers for Your Website 126 Comments
  • Top 25 SEO Blogs 243 Comments
  • 101 Blog Tips I learned 177 Comments
  • 30 Traffic Generation Tips 351 Comments
  • 6 Ways to Speed Up Your Site 51 Comments
  • 9 Hacks to Show Readers Your Best Stuff 21 Comments
  • 50 Simple Ways to Gain RSS Subscribers 145 Comments
  • The Best Website Taglines 127 Comments
  • What Is Success? 57 Comments
  • How to setup a 301 Redirect 52 Comments
  • The 7 Characteristics of Good Domains 76 Comments
  • 7 Ways to Promote your Site 133 Comments
  • Top 25 Celebrity Blogs 44 Comments
  • What Is A Blog? 81 Comments
  • Blog Setup: 40 Practical Tips 57 Comments
  • 10 Tips To Write Your Most Popular Post 79 Comments
  • The Blog Post Checklist 75 Comments
  • Interview: 12 Top Online Entrepreneurs 98 Comments
  • What Is Bounce Rate? 42 Comments
  • 20 SEO Terms You Should Know 28 Comments
  • How To Choose A Blog Name 15 Comments
  • 10 Tips to Sell Your Website on Flippa 37 Comments
  • Top 25 Web Design Blogs 80 Comments

Online business done right. Take your marketing efforts to the next level with tips and resources to get visitors to your website.
As featured
CNBC copyblogger problogger Entrepreneur Lifehacker Hubspot Business Insider Wordpress Showcase
Privacy Policy| Terms of Service | About | Contact

777 Brickell Ave #500-14648, Miami, FL, 33131, US
DBT Logo
DBT is an independent website. The views expressed on this site may come from individual contributors and do not necessarily reflect the view of DBT or any other organization. All Content Copyright ©2006-2023. Daily Blog Tips unless otherwise noted or credited.