Udemy logo

shutterstock_180584510Hey, nobody wants a lame looking Tumblr page, so this article will give you some Tumblr HTML codes to use to make your page look great. You can do things like add effects to the text on the page, change the font and add scrolls by adding a little HTML code. If you want to learn more about learning HTML, then you can take a very inexpensive online HTML class.

HTML Codes for Tumblr

Any of these codes can be inserted where you are allowed to put custom HTML codes in Tumblr. Just replace the words Your Text Message with your own words. Enter the code and you will be done!

HTML Codes to Dress up Your Tumblr Text

Make your text bold: <b>Your Text Message</b>

Italicize your text: <i>Your Text Message</i>

For the times you want your text to appear that it has a line through it, like you changed your mind about saying it use this code: <s>Your Text Message</s>

Underline your text to emphasize it: <u>Your Text Message</u>

Make your text blink off and on: <blink>Your Text Message</blink>

Subscript text, like you would use for a footnote: <sub>Your Text Message</sub>

How to Format Text on Tumblr

The following are HTML codes to format your text on your Tumblr page to make it just how you want it.

To align your text to the left side of the page or table cell: <div align=left> Your Text Message</div>

To align your text to the right side of the page or table cell: <div align=right> Your Text Message</div>

Put your text in the middle of the page: <center>Your Text Message</center>

HTML Code to Change the Font on Tumblr

<font face="Font Name Goes Here” size="Font Size Here" color="The Hex code for the color goes here">Your Text Message</font>

An example of how this would look when you are done is <ARIAL BOLD” size=”E.G.1″ color=”FFFFFF”>Mary had a little lamb.</font>

HTML Code to Make a Button on Tumblr

<form method="get" action="https://www.udemy.com" target="_blank"><input type="submit" value="SUBMIT"></form>

The url that is written there is where the button should take the person that clicks on it. So, you would put your own url in there. You can also change the value to be whatever word you would like to see on your button.

HTML Code to Make a Scroll Box on Tumblr

<div style="height:100px; width:100px; overflow:auto;">Your Text Message</div>

This code gives you a scroll box that will be 100px by 100px in size. You can change 100 and put in whatever size you would like the sides to be. Of course, enter your own text where it has Your Text Message and those will be the words that scroll in the box.

If you’d like a scroll across the page that is called a Marquee, here is the HTML Code for that: <marquee direction=”right” scrollamount=”1″>Your Text Message</marquee>

You can change the speed of the scroll by change that number 1 to a different number. You can have it scroll to the left by replacing the word right with the word left.

HTML Code to Make a Table on Tumblr

Here is a basic table for your Tumblr page. You can change the border to be any size you want by changing that number 1 to a different number. You can change it to zero if you don’t want a border. You can also put the url of a photo in the where it says Your Text Message.

<table border="1">


<td>Your Text Message</td>

<td> Your Text Message</td>



<td>Your Text Message</td>

<td>Your Text Message</td>



You can add more cells by adding more of this line: <td>Your Text Message</td>

You can add more columns by adding more of this line before the code </table>:



HTML Code for a Link

If you would like to write a link to use on your Tumblr page, use this: <a href=”https://www.udemy.com”>Your Text Message</a>

Change this: https://www.udemy.com to the url that is where ever you want the person to go. And of course, the Your Text Message needs to be changed to the words that you want to be highlighted and clicked.

HTML Code for Inserting an Image to Tumblr

<img src="https://www.udemy.com/yourimage.jpg" width="100" height="300 alt="Your Text Message">

You need to enter the exact url that pulls up your image on the Internet. Enter that url instead of using: https://www.udemy.com/yourimage.jpg. And of course, change the Your Text Message to whatever title you want to have on that image when it displays on your Tumblr page. You will need to change the width and the height numbers to the exact size you want the image to be.

If you do not want to add an image title or don’t want to have to enter the size of the photo, use this HTML code instead:

<img src="https://www.udemy.com/yourimage.jpg">

Of course, you use the url of your actual image, not the sample shown.

How to Change the Size of the Font on Tumblr

Here is the HTML code you need to change the size of the font on your page:

<font style="font-size:20px!important;">Your Text Message</font>

You can change that 20 number to any size number that you want it to be.

Code for a Pop up Message on Tumblr

If you would like a message to pop up to welcome guests to your Tumblr page or to ask them to do something like join your mailing list, you can use this code:

<script type="text/javascript">

window.onload= loaded;

function loaded()


alert('Your Text Message’);



Write whatever message you want the pop up to display where it says Your Text Message.

To use the code, put your text message in the code and then add it to the HTML customization section of your Tumblr page.

Mouse Sparkle Trails Code for Tumblr

Would you like a trail of sparkles to happen every time someone moves their mouse on your Tumblr page?  Then go to the customization section and paste the following javascript code before the </head> tag on your Tumblr page. Be sure you find </head> and not <head>. They are two different things.

You can change the color of the sparkles by entering a different color code where it has “var colour=”. #00baff is a teal green color. To choose your own special color, you can use this color code generator.

<script type="text/javascript">

// <![CDATA[

var colour="#00baff";

var sparkles=120;

var x=ox=400;

var y=oy=300;

var swide=800;

var shigh=600;

var sleft=sdown=0;

var tiny=new Array();

var star=new Array();

var starv=new Array();

var starx=new Array();

var stary=new Array();

var tinyx=new Array();

var tinyy=new Array();

var tinyv=new Array();

 window.onload=function() { if (document.getElementById) {

var i, rats, rlef, rdow;

for (var i=0; i<sparkles; i++) {

var rats=createDiv(3, 3);





var rats=createDiv(5, 5);



var rlef=createDiv(1, 5);

var rdow=createDiv(5, 1);












function sparkle() {

var c;if (x!=ox || y!=oy) {



for (c=0; c<sparkles; c++) if (!starv[c]) {



star[c].style.clip="rect(0px, 5px, 5px, 0px)";






for (c=0; c<sparkles; c++) {

if (starv[c]) update_star(c);

if (tinyv[c]) update_tiny(c);


setTimeout("sparkle()", 40);


function update_star(i) {

if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";

if (starv[i]) {


if (stary[i]<shigh+sdown) {





else {






else {










function update_tiny(i) {

if (--tinyv[i]==25) {




if (tinyv[i]) {


if (tinyy[i]<shigh+sdown) {





else {






else tiny[i].style.visibility="hidden";



function mouse(e) {





function set_scroll() {

if (typeof(self.pageYOffset)=="number") {




else if (document.body.scrollTop || document.body.scrollLeft) {




else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {




else {






function set_width() {

if (typeof(self.innerWidth)=="number") {




else if (document.documentElement && document.documentElement.clientWidth) {




else if (document.body.clientWidth) {





function createDiv(height, width) {

var div=document.createElement("div");






return (div);


// ]]>


Dressing Up Your Tumblr

You can use just about any HTML code on Tumblr to make changes and get away from the standard choices that are available as themes. Or maybe you need just some quick HTML modifications to use your Tumblr account for business. By learning some HTML, you can make all the changes you want to make to have your Tumblr looking exactly the way you want it to look. By taking an intense class for HTML online, it is the easiest and least expensive way to learn new HTML tricks that you can use on Tumblr.

Page Last Updated: April 2014

Top courses in HTML

The HTML & CSS Bootcamp 2024 Edition
Colt Steele
4.8 (2,056)
The Complete Guide to HTML
Colt Steele
4.7 (2,573)
HTML and CSS for Beginners - Build a Website & Launch ONLINE
Edwin Diaz, Coding Faculty Solutions
4.4 (35,787)
Build Websites from Scratch with HTML & CSS
Brad Hussey, Code College
4.6 (14,306)
Introduction To Website Development Technologies
Trevoir Williams, Learn IT University, Andrii Piatakha
4.6 (480)
HTML - Introduction to HTML Web Development
Kyle Pew, Office Newb
4.6 (1,491)

More HTML Courses

HTML students also learn

Empower your team. Lead the industry.

Get a subscription to a library of online courses and digital learning tools for your organization with Udemy Business.

Request a demo