Inbound Internet Marketing Blog

SEO, Blogging, Social Media, Landing Pages, Lead Generation and Analytics

SUBSCRIBE

The HubSpot Inbound Internet Marketing blog covers all of inbound marketing - SEO, blogging, social media, lead generation, email marketing, lead nurturing & management, and analytics. Join 57,702 others and subscribe now!

Subscribe to RSS feed Add us on Facebook! Follow us on Twitter

Get Free Marketing Info!

Get the world's best marketing resources right to your inbox! Join more than 817,000 inbound marketers!

Subscribe by email

Your email:

HubSpot's Inbound Internet Marketing Blog

Current Articles | RSS Feed RSS Feed

Easy HTML Tricks for the Non-Technical Marketer

 

.

codingWhat do you think are the most important skill sets a marketer should possess?

If I were to ask this question to many marketers, the ability to edit HTML (Hyper Text Markup Language) would rarely come up as one of them. I mean, why would it? That’s for the web guy, right?

I’m going to let you in on a little secret: knowing HTML is an extremely helpful skill that every internet marketer should know and can easily learn. This doesn’t mean you need to become a web developer; being comfortable with just the basics will make you invaluable.

Learning the fundamentals of HTML can free you from relying on your webmaster or a third-party program for simple updates, and it will enable you to update your website, email newsletters, or in some cases add links and graphics to forums and social media sites. And of course, it’s always a great skill to include on your resume!

HTML Basics

If you’re just learning HTML for the first time, I would highly recommend reading the article, "Basic HTML Every Internet Marketer Should Know." Then bookmark it or print it, and stick in right on your desk. It covers the basics of hyperlinks, images, lists, and some font properties. THIS article, however, is more of a Part II and will cover some additional tips and tricks to expand your skill set.

More HTML Tricks

Now that you have the essentials of HTML down pat, here are some more tricks you can easily use:

1. Aligning Images and Text Wrapping

By default, when you place an image on a page, any other elements around it (such as text) move down underneath it. Oftentimes, this might not look desirable. If you'd instead like to wrap text around an image, all you need is the align attribute.

Code Before (No Alignment):

<img src="screen-create.png">
Your text here…

HTML Image Tracks 1

Code After (Left Aligned):

<img src="screen-create.png" align="left">
Your text here…

HTML Image Tricks1

Depending upon your layout, you can use the following options:

align="left"
align="right"
align="top"
align="middle"
align="bottom"
align="baseline"
align="texttop"
align="absmiddle"
align="absbottom"

You can also add extra space around the image if you don’t want text to be too close. You can do this by adding vspace (vertical) and hspace (horizontal) to your image tag. The higher the number, the more space there will be around the image:

<img src="screen-create.png" align="left" vspace="20" hspace="40">
Your text here…

HTML Image Tricks 3

2. Changing Font Styles

Yes, a lot of website editors do come with a rich-text option to change the styles of your fonts. However, there have been many times I can recall still needing to know basic HTML font tags so that I could have more control over my font styles. Here are some easy ones to use:

 

A. Bold Text

Code:

<b>This is bold Text</b>
or
<strong>
This is bold Text</strong>

Output:

This is bold text

 

B. Underlined Text

Code:

<u>This text is underlined</u>

Output:

This text is underlined

 

C. Italicized Text

Code:

<i>This text is italicized</i>

Output:

This text is italicized

 

D. Font Size

Code:

<font size=”2”>This font is size 2</font>

Output:

This font is size 2

 

E. Font Color

Font colors can use written colors or HEX codes. Click here for a HEX color generator.

Code:

<font color=”black”>This font is black</font>
or
<font color=”#FF0000”>
This font is red</font>

Output:
This font is red

 

F. Font Type

Change the type of the font.

Code:

<font face=”verdana”>This font is Verdana</font>
or
<font face=”trebuchet ms”>This font is Trebuchet MS</font>

Output:

This font is Verdana
This font is Trebuchet MS

The following are considered web-safe fonts:

Arial, Arial Black, Comic Sans MS, Courier, Courier New, Georgia, Helvetica, Impact, Palatino, Times New Roman, Trebuchet MS, Verdana

 

G. Combine Multiple Properties

Here is a way you can combine multiple elements in your content:

Code:

<font face=”comic sans ms” size=”2” color=”green”><strong><u>This font is Comic Sans MS, Size 2, Bold, Underlined and is the color Green</u></strong></font>

Output:

This font is Comis Sans MS, Size 2, Bold, Underlined and is the color Green

 

3. Blockquotes

Blockquotes are great way to pull a quote out of a paragraph and make it an indentation. Here is an example (Note: you will need CSS to style the actual quote, which we'll cover in a later lesson!):

HTMLTricks Blockquote

Code:

<blockquote>"If you wait until there is another case study in your industry, you will be too late." – Seth Godin </blockquote>

Output:

"If you wait until there is another case study in your industry, you will be too late." – Seth Godin

 

4. Horizontal Lines

This tag will draw a line horizontally across your page or a section of the page, depending upon where you put it. All you need is the <hr> tag, which stands for ‘horizontal rule.’

Code:

<hr>

Output:


You can also control the length (width) of the line and thickness (size).

Code:

<hr size=”10” width=”50%”>

Output:



To make the line solid, use the attribute noshade:

Code:

<hr size=”10” width="50%" noshade>

Output:


 

5. BONUS: Comments Tag

I love this trick and use it a lot. Sometimes, you need to make notes in your markup but don’t want them to show publically on the page. I also use this to save HTML in a page that I don’t necessarily want to delete, but I don’t want it show on the page either. This way, if I ever need the code, it’s still there, hidden in the background.

All you need to do is put the notes or HTML you want to hide by surrounding it with the start comments tag <!-- and the end comments tag -->

Code:

<!-- Here are my notes and HTML I want to hide -->

Example:
HTMLTricks CommentsTag

Hopefully this guide gives you a good baseline for extra HTML tricks. Once you start using these, you’ll be well on your way to becoming an HTML guru!

What else would you like to learn? Do you have any tricks of your own? If so, please share!

Photo Credit: Marjan Krebelj

Free eBook: 7 Google Tools to Improve Your Marketing Effectiveness

Free eBook: 7 Google Tools to Improve Your Marketing Effectiveness

Google is not only a search engine. It also owns a range of assets that provide marketers with social networking and content creation opportunities.

Download the free eBook to find out about some of Google's lesser known tools and learn how to use them for marketing your business.

Posted by Jessica Meher on Wed, Jul 13, 2011 @ 08:00 AM

COMMENTS

Hubspot...to the rescue! This is awesome. Thank you!

posted on Wednesday, July 13, 2011 at 8:03 AM by C. Jane Taylor


Great articles - One I think most bloggers and non-techies should use is target="_blank". This creates a new window for an article on a hyperlink. Example: My Twitter. I'm a huge fan of creating a new window especially in blogs so the reader doesn't lose interest in your original article.

posted on Wednesday, July 13, 2011 at 8:11 AM by Bonnie Gibson


I could not agree more, I have been involved with plenty of Online Marketers that could not produce anything on a page, I just think it is necessary, especially if you are selling the stuff, might be best if you actually know it! 
Great starter stuff here.

posted on Wednesday, July 13, 2011 at 8:11 AM by Jonathon Frampton


Sorry here is the code example 

posted on Wednesday, July 13, 2011 at 8:13 AM by Bonnie Gibson


Hi, 
The link to the "basic HTML" article you mention links back to this article. 
Can you please provide the original link?

posted on Wednesday, July 13, 2011 at 8:15 AM by udi


FYI- The link to "Basic HTML Every Internet Marketer Should Know." leads right back to this article. Another good tip is to check all of your links before you post :)

posted on Wednesday, July 13, 2011 at 8:18 AM by Jim Janke


Better yet, learn both HTML *AND* CSS. Don't abuse HTML and certainly don't use deprecated HTML markup as is suggested here. Either learn CSS and gain access to the CSS file to create style classes there that you can then apply sitewide from one file, or, if you must add inline markup, use inline styles using style="color:red;font-size:12px" to make text 12px and red. This is still better practice than using deprecated HTML markup.

posted on Wednesday, July 13, 2011 at 8:32 AM by Matt Gagnon


ditto about the "Basic HTML Every Interent Marketer Should Know" link being a redirect to this article..which is truly frustrating. Since THIS article has so much good stuff in it, I'd really like to read the article you recommend!

posted on Wednesday, July 13, 2011 at 8:35 AM by Diana


I completely agree with you and having learnt basic web design and how to use HTML was one of the best things I did while studying marketing.  
 
 
 
In all my marketing jobs I have had to use HTML and now that I'm heading in the digital marketing direction it is simply crucial to be able to understand, manipulate and code basic html. 
 
 
 
I also to a certain degree agree with Matt about CSS, but for the everyday non IT person I think that might be complicating things a bit too much.

posted on Wednesday, July 13, 2011 at 8:45 AM by LivvyMarketing


Great article, a printable version would be good. 
 
 
 

posted on Wednesday, July 13, 2011 at 8:54 AM by Martin


Sorry about the broken link, it's been fixed! :)

posted on Wednesday, July 13, 2011 at 9:05 AM by Jessica Meher


I have to agree with Matt regarding the use of depreciated markup. While tags like underline, or attributes like hspace and vspace will work in modern browsers, they are no longer used in valid markup.  
 
Why is this important? One of the many factors used in ranking pages in search results is markup validity. Given 2 pages with equal SEO "scores", the page with valid markup will rank better. If you're goal is SERP ranking, why do something that hurts you right off the bat?  
 
The goal of this article is well-meaning, but may do more harm than good.

posted on Wednesday, July 13, 2011 at 9:09 AM by Mike Conaty


Now THIS is a helpful article! It's different, it's new, and it gives some basics that us non-techie types can apply immediately. Thanks!

posted on Wednesday, July 13, 2011 at 10:04 AM by Bobbi


Very helpful information. But I'd much rather see how to insert pictures into a website, specifically wordpress--it's VERY touchy & there's no "tricks" I've come across to make it simpler. Thanks!

posted on Wednesday, July 13, 2011 at 10:41 AM by Lora Ullerich


You asked what do I want to learn. Here's something I've been wanting for a while. 
 
 
 
I'd like to be able to place text ON TOP of a graphic. I'd like to tell where to place the text and move it over another object.

posted on Wednesday, July 13, 2011 at 11:06 AM by Alan 100K Small Business Coach


"The goal of this article is well-meaning, but may do more harm than good." 
 
Completely agree with that statement from Mike. I wear both a marketing hat and a developer hat in my 9-to-5 job, so I was glad to see an article encouraging marketers to be familiar with the basics of web technology. 
 
But the basics shown here are sorely out of date. (Especially the inclusion of Comic Sans as a font face??) Speaking as a developer, one of our greatest fears is that someone who doesn't really know what they're doing is going to see an article like this and think "Yes! Now I can just make edits myself rather than needing that web guy!" 
 
And then we spend hours cleaning up the aftermath. 
 
--- 
 
Marketers who want fine-grained control over the presentation of their content (Alan & Lora above, and anyone else): the best tip I can offer you is this. 
Talk to your web development/design team. Talk to them honestly, and let them know you're interested in being involved in the process of updating content. I can almost guarantee they'll be willing to show you what you need to know, and set up some guidelines to make it easier for you.

posted on Wednesday, July 13, 2011 at 11:53 AM by Tom Henrich


In response to your suggestion to go to my web development team: Been there, done that. Doesn't work.  
 
 
 
Frnakly, the reason I have the success I do is that I'm picking up the pieces behind web developers for my clients. I work in marketing to get results while most of the web developers I've run into do pretty pictures, and even a few claim to be SEO experts. But, I'm paid to help my clients get the results they weren't getting before I came along. Then I either show the client how to fix it, or work with their web developer to show them. Too many web developers don't even know what's being discussed in blogs like this. 
 

posted on Wednesday, July 13, 2011 at 12:07 PM by Alan $100K Small Business Coach


I think most people who get into IM should really learn to do HTML. Not only will it help them make their niche sites and so on, it'll help them with making apps and other such things.

posted on Wednesday, July 13, 2011 at 12:55 PM by nicole


@Alan - with respect, the kind of attitude conveyed by a statement like "the web developers I've run into do pretty pictures" is part of the problem. There's a misconception on BOTH sides of the fence about the other side, and over time it's become this invisible cold war of sorts. 
 
I'm assuming you don't have the option of using a different development team? The fact that you have to go behind the backs of the developers to "fix" things almost invariably means that they're trying to go behind your back to "fix" it back. It's not a healthy relationship. 
 
It's also why "many web developers don't even know what's being discussed in blogs like this" -- there's this idea that one side or the other knows best, and that the other should just stay out of it. But that's not the way to do things. 
 
I'm not trying to belittle your experience; just saying that we all need to get away from a mentality that any of us are the enemy.

posted on Wednesday, July 13, 2011 at 1:03 PM by Tom Henrich


Hi Tom - I understand what you mean, I am both a marketer and developer as well. These are not meant to "replace" the web person, rather, empower marketers to make simple updates as needed. 
 
I also understand CSS is the better way to go, but introducing people who have never (or rarely) coded, knowing basics of HTML is a good starting point. A lot of small businesses don't even have a web or IT person. Even if they did, knowing some HTML is beneficial for everyone. 
 
Thanks for your comment!

posted on Wednesday, July 13, 2011 at 1:08 PM by Jessica Meher


Not only for marketers, this is a VERY helpful post for land surveyors who have little experience with HTML.. Thanks!

posted on Wednesday, July 13, 2011 at 6:47 PM by surveyor


This is a very helpful article.  
 
 
 
To those chiding the author for focusing on HTML and not on CSS: I'm sure there are quick fixes that EMTs use just to save someone's life in a traumatic emergency, which an ER physician or other specialist then needs to tidy up afterward.  
 
 
 
Was this the optimal way to have treated the patient under ideal conditions? Probably not, according to a medical textbook. Was there time or opportunity to do anything else? No. Did the patient survive? Yes.

posted on Thursday, July 14, 2011 at 8:47 AM by FMJohnson


I want to know how to make columns in one html box.

posted on Thursday, July 14, 2011 at 9:24 AM by Elizabeth Kramer


My web guy is going to love this. Now I won't have to bother him with pesky little details so he can work on more important projects; like fixing a chair (what he's doing right now).

posted on Thursday, July 14, 2011 at 12:57 PM by Louis Bina


Louis - LOL! :)

posted on Thursday, July 14, 2011 at 1:14 PM by Jessica Meher


I would like to point out that the &lt;b&gt; and &lt;i&gt; tags have been deprecated. While most browsers still accept them, they are not supported by page readers for visually impaired visitors. &lt;strong&gt; (which you mentioned) and &lt;em&gt; should always be used for bold and italics text.

posted on Tuesday, July 19, 2011 at 8:33 AM by Scott


i admit it that knowing HTML can save us ton of money rather than keep relying on third parties people. oh yeah i feel good know it.Langsing

posted on Sunday, August 07, 2011 at 10:29 PM by didik anak


Comments have been closed for this article.