HTML Basics Every Blogger Should Know (in 2024)

Whether you are starting a blog or you own a personal blog, HTML is important in every aspect of blogging.

Today I’m going to share some HTML Basics that every Blogger should know. These HTML basics are helpful for both WordPress/Blogspot bloggers.

What is HTML?

HTML stands for Hypertext Markup Language. We use HTML for creating web pages or websites. Any web page you see on the Internet is written using HTML code.

All the HTML elements are represented by HTML tags (e.g. <title>). Browser does not show these HTML tags but by the help of HTML tags, they display the content of the page.

Let us move to some of the basic HTML tags that you should know.

Basic HTML Tags & Codes

HTML tags are element name surrounded by angle brackets. While editing your blog post you have seen many HTML tags. Basic HTML tags are:

1. HTML Declaration & Root Element

In order to declare that the document is HTML, we use declaration tag at the start of HTML code. It is represented as <!DOCTYPE html>. You can see a practical example of this tag in the start of HTML code in Blogger theme HTML editor.

HTML Basics Every Blogger Should Know

The root element of an HTML page is <html>, It’s end tag is </html>.

Every element in HTML has a starting tag ( <tagname> ) and an end tag (</tagname>).

The root element starts at the start of HTML code and ends at the end of HTML code.

2. The <head> tag 

The metadata of any web page or blog post is contained in between the head tags ( i.e. <head> and </head>). It contains meta description, keywords, slug about the web page.

Browsers do not display content inside the head tags but, it helps search engines to find your web page.

The head tags are placed after the starting of an <html> tag and before the <body> tag.

3. The <body> tag

This is very important tag as all the data between the body tags (<body> & </body> ) are displayed in the web browser. It contains headings, sub-headings, paragraph, etc. It starts after the end of the head tag. The structure of HTML page is as:

<!DOCTYPE html>
     <title>Page Title HERE</title>
     <h1>Heading goes here</h1>
     <p>Paragraph goes here.</p>

4. HTML Headings & Paragraph

Inside the body tag, while using headings we use <h1> tag for most important heading, <h2> for next important heading & so on <h6> for least important headings.

<h1>Heading 1 goes here </h1>
<h2>Heading 2 goes here </h2>
........and so on.

In a similar way, we can use HTML tags for paragraphs. The starting tag for a paragraph is <p> and the ending tag is </p>.

<p> Paragraph goes here.</p>

5. Use of Empty Tag

Empty elements are those tags which do not contain any content. We can represent an empty tag as: <br>. It does not have an end tag. You can use it to display space between lines.

6. HTML Links

In order to use links in your text content, you have to define the links using <a> tags as shown below :

<a href=""> Harish Joshi Blog </a>

Here the link is shown by Blue color & link text by Red color.

7. HTML Images

The use of tags in HTML images is same as in HTML links. Here we use <img> attribute.

<img src="image.png" alt="Image" width="104" height="142">

Here, image address is represented by pink color, alt title by red color, image width by blue color & image height by the orange color.

8. HTML Buttons

HTML buttons are basically used to submit or reset data. The tags used for creating HTML buttons are <button> and </button>.

<button> Click Here </button>

9. HTML Lists

There are two type of lists: i) Unordered List (Bullet List)   ii) Ordered List (Numbered List)

In order to create an Unordered list, you have to define the HTML in this way :


Similarly, If we have to create an ordered list we define HTML as :


10. HTML Quotations

In addition to <blockquote> tags for HTML Quotations, you can also use cite attribute to give credit to the original source of the quote. It is best shown by the example below:

<blockquote cite="">
If you are born poor it's not your mistake,
but if you die poor it's your mistake

Other Related Posts :

Final Words

These are the basic tags and HTML codes, you should know before starting a blog. The above guide includes the use of all basic code you use (or need to use) in your blog posts.

Let me know your thoughts about this post in the comment box.

Leave a Reply

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


  1. Thank you for you effort really I think to create page in Instagram like a blogger retry to use it πŸ’œ

  2. always I used to read smaller posts that as well clear their motive, and that is also happening with this post which I am reading now.

  3. I’m super lucky that my husband is a coder and is able to help me with all this tech side of blogging. At least now I might have an idea of what he is talking about.

  4. Sweet blog! I found it while searching on Yahoo News.

    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!

    1. Thanks for letting me know that you’ve found my post on Yahoo news. I’ve not submitted it to Yahoo news. I think it’s due to better SEO. I’ll write a complete post on ”How to submit your blog in Yahoo news soon. Stay updated by subscribing to my blog here πŸ™‚

  5. These are all HTML codes I actually know, but I honestly wouldn’t know any of it, had it not been for having a blogspot blog back in the day. I loved learning code to be able to change the look and feel of that blog.

  6. I used to be amazing at HTML and not going to lie I definitely forgot a lot of it. I need to go back and study some of these because they are important.

  7. Great info for HTML for beginners. I learn HTML when i was 13 so I do know the basic and I would love to know more coding.

  8. Love it! Im a CS major so this is relevant to me, and I do think everyone should know some of HTMl basics to work their blogs!

  9. this is really helpful. i used to be like a pro at html codes when myspace was around and ive definitely lost my touch. i need to rreteach myself so this post will definitely come in handy!

  10. I never knew what any of these things meant until I took a webdesign class in college. It was really interesting to learn and make websites from scratch!