Skip to navigation | Skip to content

Share your knowledge. Make a difference.

Basic HTML for Squidoo

1 - I can do better 2 - Jury's out 3 - Pretty darn good 4 - Splendiferous 5 - Awesometastic (by 881 people)   Your rating: 1 - I can do better 2 - Jury's out 3 - Pretty darn good 4 - Splendiferous 5 - Awesometastic

Ranked #21 in How-To, #189 overall

Rated G. (Control what you see)

It's not that hard...

 

You can use basic HTML in a few of the lens modules.

Mostly used to create hyperlinks (they are the "live links" to other sites). Though there are also other uses for HTML.

If you find yourself in need of quick tutorial on how to do it, here it is! Being able to grasp this skill (or adding it to favorites so it's only a quick click away) will take your Squidoo Lensmastering talents from beginner to intermediate.

Which Modules allow HTML? 

In any module such as affiliate, Text List, Flickr, Guestbook, Poll Module where it says "Give your module a description (optional)" you can include HTML tags.

In the Text/Write Module in the main body where you can have up to 10,000 characters, you can use HTML in there too.

In the Text List itself you want to make each line entry (or part thereof) into a hyperlink.

What HTML can I use? 

  • <strong>
  • <b>
  • <em>
  • <i>
  • <a>
  • <p>
  • <br>
  • <img>
  • <ul>
  • <ol>
  • <li>
  • <iframe> iframe functionality is now disabled.
  • <embed> This was in the official list of tags that worked but from personal experience I've never got it to work.

Making a Hyperlink 

This (for me at least) is the most used bits of HTML code I use on my lenses.

<a href="http://www.domain.com">www.yourdomain.com</a> will become www.yourdomain.com

You can write anything where it says www.yourdomain.com such as click here or read more

Just so long as you get the "a href" destination right. You get that wrong and people won't be clicking through to where you originally intended.

And if you leave out the http:// in the "a href" you'll be inadvertently telling the browser when the link gets clicked to go to a page on Squidoo (or the root directory of whichever website you're adding the html hyperlink to).

To make a clicked link pop open in a new browser window you add the following code: target="_blank"

It would look like this...

<a href="http://www.domain.com" target="_blank">www.yourdomain.com</a>

Adding HTML to the Introduction Module 

ATTENTION: The advanced editor (TinyMCE) that was used in the Introduction module has been disabled.

It was clunky, not supported by all browsers, and difficult to implement (which is why they didn't install it into the other modules).

Particularly in Internet Explorer it would break the entire workshop.

So it's old school HTML for the Introduction Module as well!

In any case all it did was add bold, italics and underline.

Making An Email Link 

Making a live email link is very much like a hyperlink. But instead of http:// you replace it with mailto:.

And instead of the URL you have your email address.

Example:
<a href="mailto:username@domainname.com">name@domain.com</a>

Again, you can replace the bit that's not in the HTML tags with whatever you want:
<a href="mailto:username@domainname.com">Email Me Now</a>

A word of caution: By allowing your email address to be displayed online you are leaving yourself open to being spammed wholesale. Spammers, scammers, phishers and other undesirables harvest email addresses automatically from websites. While I am providing this tip I suggest you instead rely on Guestbooks and the "Contact me" link in the "Look who made this lens!" (Top of the right hand side menu) as the method in which you allow your visitors to communicate with you. Though the method outlined here is suitable for mailing list subscription services such as yahoogroups, aweber and others.

Forcing a Line Break 

I've found adding an extra <br> or two helps keep a "Text List" module tidier if using the module to write a lot of paragraphs for each line entry.

It's not needed in a Text/Write module as you can just use the enter key to move down to the next line.

Inserting Images 

You don't have to rely on the "Upload an optional image to accompany your text" that accompanies each Text/Write module which places an image in the top right hand corner. Though if you decide to insert an image as demonstrated here you will need to get it hosted elsewhere.

Here is an example of an image inserted and place with HTML...



Here is the code that you would use to do it yourself...

<img src="http://www.yourdomain/squidoo/yourimage.jpg">

You will of course change it to the actual URL where the image is hosted.

The advantage of hosting your own images and manually inserting them into your modules is you determine the size you wish the image to be displayed. You can also align the image to the left of the module (Squidoo only allows right alignment) and wrap text around the image. And you can have more than one image per module.

You can also insert a series of images in your lens, see www.squidoo.com/royalty-free as an example.

How can I make a clickable icon, button, picture or banner? 

Using the HTML code for IMG in conjunction the A HREF will give you an image (no matter what size, whether it's a button, banner, thumbnail or larger) that is hyperlinked to whatever site or webpage to where you want it to go.

You may also use it to create a thumbnail image and then link to that same picture but at it's full size. You will however have to host that image elsewhere, unless it is already uploaded.

This is an example of a thumbnailed image linked to the original larger image (which in this case is embedded in a HTML page, but it could go straight to the image).



This is what the code looks like...
<a href="http://www.yoursite.com/thepageyouwanttolinkto.html"><img src="http://www.yoursite.com/squidoo/yourimage.jpg" border="0"></a>

Note: You need to replace the URL's with your actual domain and file names. The rest remains unchanged.

What you're doing is wrapping the hyperlink around the img (image) tag. Much like a normal text hyperlink that we've already covered previously, but instead of the displayed text you've replaced it with the image information.

The method is identical to having a clickable banner...

Wrapping Text Around An Image 

If you absolutely need to have an image in the left hand side of your Text/Write module and you want the text to neatly wrap around it (like I'm doing with this one) then you'll again need to have an image uploaded to some webspace and taking the URL destination of that image you replace it in the bit below that says http://www.yourdomain/squidoo/yourimage.jpg.

Here is the code that you'd use...

<img src="http://www.yourdomain/squidoo/yourimage.jpg" style="float: left; margin: 0px 5px 5px 0px;">

You can leave the margins as is, or change it to suit your layout or taste. The 1st margin (0px) is for the top of the image, the 2nd is for the margin on the right, the 3rd for the margin underneath and the 4th for the margin on the left hand side.

Please note: Don't have too large an image when using this technique otherwise it'll look a bit of a mess.

Bold and Italics 

<b>Bold</b> and <i>Italics</i> gives you Bold and Italics.

You can also have <b><i>Bold Italics</i></b> which will look like Bold Italics

<strong>Strong</strong> and <em>Emphasis</em> gives you Strong and Emphasis.

Which looks a heck of a lot like Bold and Italics don't you agree?

Colors 

Mr Magicality has some good tips on adding color to fonts.

For those who want to know, he uses a bold tag so he can sneak in the styles he wants. So this is what it looks like as raw code...

<b style="color: green; font-weight: normal;">Green</b>

The font-weight: normal; reverses the effect of the bold.

And this is how it looks... Green

You can change the color for red, blue, yellow... in fact if you use "hexadecimal colors" you can use any one of hundreds of colors. You would replace the name of the color with the hexademical alpha-numeric digits, eg: #B168ED.

A full list of available colors is demonstrated in the new HTML Tips for Color lens.

Underlining 

<p style="text-decoration: underline">Create underlined text</p>

Create underlined text


Unfortunately doing it that way won't get it to work with one word underlined in a sentence, the whole sentence/paragraph gets underlined.

However using a little trick that Magicality used with sneaking in a style with a bold tag you can easily underline just one word in a sentence.

This is the code you use...

<b style="color: black; text-decoration: underline; font-weight: normal;">underline</b>

Removing the underline from Hyperlinks 

Underlined hyperlinks are the default. But you can remove them by simply adding a style="text-decoration: none;" in the HTML tag for the link.

With underline...

Drums and Drumming

Without underline...

Drums and Drumming

And here's the code...

<a href="http://www.squidoo.com/drumsanddrumming" target="_blank" style="text-decoration: none;">Drums and Drumming</a>

Centering text and images in your module 

Centering images is easy. You're using the p (paragraph) HTML command. Though by doing so if you put images one under the other it will create a gap between each one. This is because it is allowing for a paragraph as if it were paragraphs of text.

Here is an example of how a centered image looks...



And here is an example of the code used...
<p align="center"><img src="http://www.yourdomain.com/squidoo/yourimage.jpg"></p>

The same exact HTML is used to center text. But instead of the "img src" between the P commands, you write your text.

This might be useful for presenting a poem. But I'd advise against using it for other big slabs of text because it's not natural for the eyes to read a jagged line on the left hand side. Here is an example of centered text...

Centered Text!



And here is the code...
<p align="center">Centered Text!</p>

Note: Be sure to use the spelling "center" and not "centre".

It seems to work fine in Firefox, but there are reports that it doesn't appear centered in Internet Explorer.

What HTML can't I use? 

Anything not listed in the "What HTML can I use?" module :-P

But seriously: forms, tables, scripts, span and now iframes... are not allowed.

We used to be able to get around a lot of limitations with the powerful iframe tag, alas, it has now gone.

Using the iframe 

With iframes you USED TO be able to do EVERYTHING else that you can't do in your Squidoo lens.

Opt-in forms, flash games, printable coupons... and much, much more.

But then it was removed.

At www.squidoo.com/iframe I explained how and why iframes are used. And lament its loss.

RTFM! 

Read The Fantastic Manual

Basic HTML (Basic ICT Skills)

Amazon Price: (as of 08/21/2008)

Show me some love! 

NumberOneLensrankBadgeWas this tutorial helpful for you? Did you learn something from it? Leave a message. But please, no links, they get deleted before anyone can see them. In fact links that go to non-Squidoo sites will see the user being banned from posting in all my Guestbooks.

Here-2-Help

AWESOME ~ You couldn't have explained it any better.

Posted August 19, 2008

thrivingmom

I find this lens to be so helpful that I just featured it lens on my lensography. You can check it out at: http://www.squidoo.com/thrivingmomlensography

Thank you for all of the great info.

Posted August 19, 2008

GingerAlly

Thank you! this is a great lens, really helped me out with my first ever squidoo lens!

Posted August 18, 2008

TheWealthyNewbie

Excellent! I always wonder hot hyperlink..Now I Know Thanks! Way cool!

Posted August 17, 2008

armshaq

thanks for the share..

Posted August 17, 2008

 
1 of 161 pages

Advanced HTML

This lens started off as a tutorial about HTML basics... but we've explored some more advanced stuff. I may split it, so as to not scare people off. Once they feel confident they can click through to the Advanced HTML lens.

There'll be a few extra tips and tricks... using different fonts, font size, and whatever else I can dig up that will benefit the adventurous among you.

NEWS FLASH: The lens is done! Go and check it out!

 

X
N376

About N376

Glen likes to write. If it's something that he hasn't already enjoyed or experienced in life if you so much as throw a topic at him and if he finds it even mildly interesting he'll research it until his fingers cramp up and his eyes are fatigued. He'll chew it up and spit it out like quality cud. For some that might be disgusting, but for others with a taste for the offbeat and whimsical it's like stumbling on a vein of gold.

N376's Pages

See all of N376's pages

X

Gold Star

This is a certified gold star lens, which means it's the best of its kind on Squidoo (or shows some serious potential for getting there!)

Read more about gold stars »

X

N376 is a Giant Squid!

Giants are distinguished by their exceptional skill for making top-notch lenses, and lots of them. Whenever you land on a Giant Squid's lens, you know the person behind it is passionate about the topic and is hard at work making the lens worthy of your time and attention.

Learn more about what it takes to be a Giant »