Episode Transcript

How to Format URLs in Text
Episode 132: September 05, 2008

Grammar Girl here. Today's topic is how to treat URLs when you have to use them in text.

But first, sometimes I'm amazed when I think about how many new green options I see being advertised everywhere. I know some of them are more hype than anything else, but here's an idea that's the real deal: telecommute with GoToMyPC. The Make-It-Green Girl has done a couple of shows about driving less, and working from home is a great way to save money on gas, save time, and reduce the pollutants you release into the air. If you can install GoToMyPC on your work computer, you can essentially sit in front of that very computer at your house. You no longer have to be physically in the office to access your files, e-mail, or anything else on your computer. For your 30-day free trial, visit GoToMyPC.com/podcast. It takes just minutes to set up and it's so easy anyone can do it. GoToMyPC.com/podcast.

Also, keep listening through to the end of the show because I have another writing contest for you.

Web addresses are strange beasts; they seem more like equations or long numbers than words. All the rules for how to handle uniform resource locators (or URLs) in documents are matters of style, but some styles make more sense than others.

URLs and Terminal Punctuation

URLs always have internal periods and are often scattered with other punctuation marks too, so what do you do when one shows up at the end of a sentence? Should you include the period or other terminal punctuation mark at the end of the sentence as you normally would, leave off the period so the reader doesn't mistakenly include it in the address, or do something funky such as put quotes around the Web address? As you're weighing your options, first consider whether you are writing for print or the Web.

Print

If you're writing for print, Web addresses don't need special treatment. Put the period, question mark, or exclamation point at the end of the sentence just as you would if the sentence ended with a word or a number. You may choose to highlight the URL in some way, such as making it bold or blue, but it isn't necessary.

Online

When you're writing a URL on a blog, in an e-mail program, or in some other online environment and the link will be active, you have to be sure the terminal punctuation won't be included in the address when someone clicks on it or quickly copies it and pastes it into their browser. Many e-mail and instant messaging programs, for example, automatically make everything following http:// active until they reach a space -- meaning the terminal punctuation will be included in the address when someone clicks on it, resulting in a broken link. Thus, unless you can control exactly how the address will be rendered, it's best to leave off the terminal punctuation or rewrite the sentence so the URL doesn't come at the end.

I know! I can hear some of you gasping in horror now, and it makes me crazy to leave off the punctuation too, but I've had enough people complain that a link I posted or sent them didn't work, that I've decided functionality beats traditional sentence structure. The purpose of good writing is to make things as clear as possible for your reader, so I believe the most important thing is to make sure the link you are sending or posting actually works. As I said, these are just style recommendations, so if you can't deal with leaving off the punctuation, you don't have to. Just make sure you use a consistent style and, again, try to rewrite the sentence so the URL doesn't come at the end. That's the best solution.

The Full Monty: Full URLs Versus Abbreviated URLs

Now, what about abbreviating the address? Some people prefer to write out the entire address including the http:// and www parts, whereas other people prefer to write the shortest address that will still work when you type it into a Web browser. Whether you should write out the full URL is also a matter of style, but for the reasons that follow, I recommend writing out the complete address every time.

Most websites will come up in a browser if you leave off the http://www, but not all websites will. If you opt to use an abbreviated address, always test it in a browser first; don't assume it will work.
Not every address uses www either. For example, the direct Grammar Girl Web address is http://grammar.quickanddirtytips.com. It's best to include the http:// in this kind of address because people may be confused if you just write grammar.quickanddirtytips.com and may try to insert a www in front of it.
 
The bottom line is that although an abbreviated address may look smoother and more tech savvy, it's not going to work every time, so you're going to end up writing the http://www sometimes. Since you have to write it sometimes, it makes your style more consistent to use it all the time.
Web Bonus

As I was finishing this script, I realized that I violate my own rule when I read Web addresses in the show. I always truncate the address whenever possible. I do it because it seems painfully tedious to say "h-t-t-p-colon-slash-slash-w-w-w-dot." Although reading a URL on a page doesn't take a lot of extra work for the reader, forcing listeners to sit through reading a full URL out loud seems almost cruel. I support a different style for scripts than I do for printed or online documents.

Long URLs

The next problem you are likely to encounter is what to do with a long URL. You know what I mean: one of those dynamically generated URLs that seem to go on forever with equal signs and question marks and lots of numbers.

The most important thing is that if you have to break a URL across two lines, don't insert an extra hyphen at the line break. That will definitely confuse people because it's common for URLs to have internal hyphens. And if there is a hyphen in the address, don't make the line break right after it; that will confuse people because they won't know whether you are improperly inserting a hyphen to mark the break or the hyphen is part of the address.

Instead, if you have to wrap the URL to a new line, find a natural break like a slash, number sign, or other symbol. Again, use common sense: don't break a URL right after a period or readers might think the period marks the end of the sentence. If you must break at a period, make the break before the period so it starts the new line. 



Active Links

Some word processing programs annoyingly make a link active when you type the full address. I find that almost as annoying as Clippy, the old Microsoft pop-up helper. If your document will be read only in print, there's no reason to make the link active; it'll just show up underlined in the printout, which is unnecessary. Different word processing programs have different ways of removing the link, but it is always possible.

On the other hand, if your document will be on the Web or in an e-mail message, do make the link clickable so it's easier for your readers to visit the page.

Click Here and Underlining

Finally, when you're turning words into links on a Web page, link the words that best describe what you are linking to. For example, link the words "Grammar Girl Homepage" instead of linking generic words such as "click here." Using meaningful link text also helps your site rank well in search engines and makes it easier for people with visual impairments to navigate your site. (They may be using software that only reads the link text to them.)

Also, it's best to avoid underlining things for emphasis on websites because underlining is the style for hyperlinks on the Web. I know that it's possible to make links any style you want if you fiddle with the code, but underlining is the default style, so if you underline text, some people will think it's an active link.

Administrative

This episode was adapted from my print book, Grammar Girl's Quick and Dirty Tips for Better Writing. Get your copy today. And be sure to get your free 30-day trial of GoToMyPC at GoToMyPC.com/podcast.

Writing Contest

I just found out about another writing contest. It's a short fiction contest sponsored by Narrative Magazine. You can submit up to 10,000 words, and the deadline is November 30. There's a $20 entry fee, but they are giving cash prizes to 13 winners. Details are at narrativemagazine.com and there's also a link at the end of this transcript--"Using URLs in Text"--at the Grammar Girl section of QuickandDirtyTips.com, where you can also find my contact information and all the other great Quick and Dirty Tips podcasts. This week, our new Modern Manners Guy is talking about how to gracefully break-up with your hairdresser.

That's all. Thanks for listening.

Comments (9) for How to Format URLs in Text |  Subscribe to Comment

Quick and Dirty Tips Admin Says:
10/8/2008 6:47:04 PM
Thank you, Jim. We have corrected the typo.
Jim Kessler Says:
10/2/2008 1:02:48 PM
As usual, great stuff. But it's The Full Monty, not Monte.
noether Says:
9/20/2008 8:23:37 PM
GG doesn't like it when her wordprocessor automatically converts URLs to active links, but she's probably in the minority on that one. If you don't like it, simply instruct your wordprocessor not to do it. When MS Word makes one, for example, you can move your mouse over it to make an "auto correct" menu appear that has the option "Stop automatically creating hyperlinks". If you want to remove only that single active link (rather than disabling auto-links altogether), you can right-click it and select "remove hyperlink." Finally, GG is correct that the underlining of URLs is distracting in printed work, but that's no reason to remove the link altogether. In MS Word, you can simply sweep over it and type CONTROL-SPACEBAR to format it like the rest of the sentence without removing the link, which can be useful if you later decide to post the document online where linking makes sense. Normal formatting is also nice for internal links (i.e., links to other places in the same document); I love it, for example, when the entries in a table of contents are actually linked to the pages that they refer to. You can also alter the formatting of the links using MS word "styles" so that your printed version has no underlining, but the on-line version shows them as normal. In short, if your wordprocessor isn't treating links in a way that you would prefer, there are undoubtedly solutions that you can apply permanently or only for that one document.
Grammar Girl Says:
9/10/2008 12:53:21 AM
Thanks for all the insights and suggestions! I talk about tinyurl.com in my book, but the podcast was getting a little long, so I left it out. I already felt as if I might have been overwhelming people with too many different points. I may do another show about online writing, and if I do, I'll mention it there.
Ben Says:
9/9/2008 2:15:03 AM
I also do as ajk does, inserting an extra space between the URL and the terminating punctuation. Sometimes I'll even go back and delete the space, so the punctuation is right up against the URL (as it would be in print), but it's not part of the active hyperlink.
CP Says:
9/8/2008 6:09:32 PM
As always, I enjoy your work--you manage to distill so many big topics down to their really essential elements! My own preference is to use basic top-level urls in the course of sentences ("I have a lot of friends at facebook.com."), where there would be no confusion about terminal periods. However, I always enclose longer urls in <angle brackets>, so there is no question about exactly what constitutes the actual url, and I can still use terminal periods.
Rene' Hynson Says:
9/6/2008 8:14:05 PM
Very great tips to help you everyday. I like the way Grammar girl is always there with helpful hints. THanks for everything. Love your page.
bigjohn756 Says:
9/6/2008 2:03:26 PM
I don't know what your policy is regarding including reference websites, but, http://tinyurl.com is one that you might consider. I use it for all of those long, cumbersome URLs which you mention. I expect that there might be other objections to using such a URL as well, but, I wouldn't know.
ajk Says:
9/6/2008 12:05:03 AM
When writing for the web, I sometimes use an extra space after the URL and before the period, e.g., http://grammar.quickanddirtytips.com . This keeps the period out of the URL but allows it to complete the sentence.

Add Comment

 *
 *
 *
  Image to deter spam submissions
  To deter spam submissions, please type the letters from the image into the box below:
 *
 
  Fields marked with "*" are required