So after a three month hiatus with these posts, I’m finally getting back at it again! In honor of my third blogoversary last year, I began this series of Guides that contain all my knowledge that I’ve gleaned from being a blogger. I’m currently celebrating my fourth blogoversary at the end of March (yay!!!) and there will be a bit of a surprise for that (aka a giveaway and other special things coming in June… probably). But back to this Guide. I’ve done four other Guide’s before this which I’ve linked below for your convenience. And, without further ado, onto the basics of HTML!
The Pursuit of Reviewers
The Wonders of Images
HTML is actually rather simple once you get the hang of it. Mostly, it’s just practice, practice, practice. In the other sections of this post, I’ll be detailing specific codes you can use but this section is more about the general stuff.
HTML basically consists of a starting tag and an ending tag. I’ll use the italics tag as an example. To make text italic, you use a starting tag, , and an ending tag, , with your text sandwiched in the middle. The absence of a slash in the starting tag tells the program to begin the alteration there and the slash in the ending tag tells the program to stop that alteration. It’s important that you always include a starting and ending tag.
Every single command in HTML is based in this idea!
|Slightly unrelated but I couldn’t resist a Star Trek theme! (Pinterest)
In Summary: The HTML language is based in started and ending tags that border the text you want to alter.
This is the most basic kind of HTML and it’s the first code I ever learned!
Italics: YOUR TEXT HERE
Bold: YOUR TEXT HERE
Underline: YOUR TEXT HERE
Strikethrough: YOUR TEXT HERE
There is also another type of alteration that is really useful in Goodreads: the spoiler alteration. If you want to make text hidden in a spoiler link in Goodreads, this is the command:
YOUR TEXT HERE
These alterations are mainly useful in Goodreads but they’re also useful if you want to create your own gadgets (there’s a gadget specifically in Blogger for HTML so you can write some code and it’ll show up on your sidebar; see my images Guide
for more information).
Another useful tag for bloggers includes the blockquote tag. It makes your text sit in the middle of the page like so:
“If you want to know what a man’s like, take a good look at how he treats his inferiors, not his equals.” ― J.K. Rowling, Harry Potter and the Goblet of Fire
This tag is:
YOUR TEXT HERE
See? I told you it was pretty intuitive!
In Summary: Border your text with the correct tag (HTML is a very intuitive coding language so don’t get to wound up!).
For general images, you use the
It’s also a very good practice to add an alt attribute. This is the text that is displayed when an image is unable to load.
To alter the image height and width, you just add on more into the brackets.
You may not be super familiar with how big a pixel is but that’s how images are measured in code so it does take a little trial and error. Start with numbers around 500-600 (500px, 550px, etc) and see what works.
For example this is the code behind this image:
The href= tag is where you will go if you click on the image. In this case, it’ll take you to a larger version of it (go ahead and try it and you’ll get it). If you want the image to go someplace in particular, you can replace that web address with any other website.
The img border= tag determines if there’s a border or not.
The width= and height= tags determine how big it is (in pixels).
The src= tag is the image itself (the link you see is the sort of ‘self hosting’ link. Once you publish the post, that link will become active because the image now resides on your website. If you don’t publish it, that link doesn’t go anywhere).
There is no alt= tag here because generally I don’t take the time to do that (although I really should).
The href= tag refers to where the link is going.
The target= tag is indicating that I want the computer to open a new tab (aka the ‘_blank’ part) when the link is clicked (if you don’t want it there, you simply omit it; there are also different things you can put there for different results (see the last section)).
Then comes the text that you want to be linked with no special tag.
Personally, I don’t write my own code all the time but it comes in handy a lot when Blogger is being glitchy and I need to alter it myself. It also helps when inserting HTML you get from someplace else so you can tell where you’re inserting it relative to the other things you already have on the page. Just try taking a peek at the HTML version of your blog posts and try and identify some of the tags used. The more you’re exposed to something, the less foreign it becomes and the easier it is to understand!
There are some things on this blog and I worked up myself, or I found examples of it ages ago and adapted it (I’m sorry, I can’t link back to where I found most of them because it was forever ago!).
The code for my ‘Contact Me’ buttons on the side bar is:
You can see the different parts of the code (Goodreads, Instagram, Twitter, Bloglovin, Google Plus, and Facebook). Basically, it’s a glorified way to get tiny images with links attached all together in one gadget. The basic code is below. I use photobucket to store images so my code can pull from there where they are hosted (that’s what all the photobucket links are). You need to host all your images somewhere and while photobucket can be kind of slow and glitchy, it’s served my needs thus far.
|Make a Meme
I also use a bit of code for my yearly progress bar:
<div style=”width: 185px; height: 15px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 1px solid rgb(0, 0, 0);”><div style=” width: 36%; height: 15px; background: none repeat scroll 0% 0% rgb(11, 204, 243); font-size: 8px; line-height: 8px;”>
The first part is the link to wherever you want it to go (I made mine go to my Goodreads challenge page).
The next part is what you want the progress bar to be titled.
This part is where the dimensions of the bar come in (in pixels). You can play around with this a bit until you get the right size for your sidebars.
This part is where you can select background color for your bar (aka the white part on mine). (this part is a bit of CSS but it’s worth it!) There are a lot of great websites out there for getting the numbers associated with a certain color (you want the rgb numbers) but I really like this one.
The next part is for the border which you can also color (but I chose to keep black).
The next part is for the colored bar itself (mine is blue). The percentage is where you change how far the bar progresses (since I’ve read 36/100 books (as noted at the bottom) I have it at 36%).
The last part is for the text at the bottom saying how many books you’ve read and how big the font is.
In Summary: Once you get used to the basic format of HTML, it’s relatively easy to understand more complex levels. And don’t be afraid to tinker with things to see what happens!
There is a LOT to know about HTML and I didn’t want to make the post too long (plus I only wanted to include what I use on a regular basis), so if you’re interested in learning more, I’ve included some really helpful websites where I’ve learned a lot of my HTML!
KhanAcademy is an amazing resource and they have all sorts of interactive classes for all different types of coding. It provides some great practice situations too.
HTML.com is a great place if you ever forget how to do that one thing (like links) and you need a quick reminder on the order of things. They have a great reference guide.
w3schools is a great place if you also just need a quick reference guide. They have great step-by-step tutorials on how to slowly work up the complexity of a bit of code from images to tables to page organization.
Small Review does some fabulous HTML tutorials as well that I didn’t have time to include in this guide including how to do those fancy colored boxes, internal links, and blog rolls! Definitely check it out for more information!
Practice Board is a great place to practice your HTML and perfect a chunk of code before putting it on your blog!
In Summary: There are so many resources for learning more and more is always better!
I know, I know, this has nothing to do with it but just look at Sherlock!!! I enjoy Sherlock…
And there you have it! Do you use the same sorts of code I do on a regular basis? Do you do your own coding? Any additions? Any code you want me to explain in greater detail in a future post? Let me know!
0 thoughts on “A Guide: The Basics of HTML”
This is so cool. I actually learned some stuff and coding has always been rather complicated to me. So thanks!
Awesome! The only HTML I do is change picture sizes. The rest looks like gobbledygook to me. You make it almost look easy. What I want to learn to do on blogger is put pictures side by side but I’m super lazy.
Thanks, Carrie! One of my long-term goals this summer is to learn a lot more HTML and start learning a bit more CSS! It always seems like the more I know, the better I can make my blog. I'm glad you got something out of it 🙂 Thanks for stopping by, Carrie!
Thank you 🙂 Haha I'm glad . It's taken me four years to figure this all out and that's because I've been actively looking around for stuff so it definitely looks intimidating at first! How I normally do it is insert one picture, make it a bit smaller, put my cursor right next to it (it should flash in the bottom right corner of the picture), then insert another picture and it should show up right next to it. You can also drag them around so they sit next to each other. I've never looked at the code for that particular maneuver but I definitely should; thanks for reminding me, Jenny!
This is an excellent basics to HTML post Laura! While I know all this that is only because I recently started self hosting and you in fact HAVE to know quite a lot of HTML if you want some of the same alterations as in WP… I had to get the color code and now I do a lot of my formatting in the text window because its easy to copy and paste formatting that way! ❤️
Thank you, Dani! I'm hoping to work up to self-hosting in a year or two after I learn a bit more so it makes for a smoother transition 🙂 I completely get editing it all in the text window! I just started using those colored boxes around the book's info and it's so much easier to write a post that uses a lot of those boxes if I just completely write it in that window. I admire you for making the leap to self-hosting and really embracing all the coding!
I often nip in and edit Blogger html too, especially when it's being cranky. I like to use basic tables with border=0 to keep things looking neat.
It's really useful then, isn't it? I used to just give up writing my post but now I can actually fix the problem which is so wonderful. Yes, I've noticed! I've been meaning to try those out, especially for wrap-ups. Thanks for reminding me and stopping by, Stephanie!