Beginning html Tutorial

Reporting & Research
Writing
Production
Design
Planning

Jump to:

Using basic html to build a resume shell

By Chris Harvey

Hypertext Markup Language is used to create, link and view documents on the Internet.

The documents are written as plain text files with inserted codes that affect the document's appearance when viewed with a Web browser, such as Mozilla Firefox, Netscape Communicator or Microsoft's Internet Explorer. You can use a number of text editors to create html code for a Web file. However, many of these text editors, such as Wordpad and Word, insert undesirable coding into your html file.

To avoid this problem, we'll use Notepad for this exercise. It won't insert bad code.

Notepad is often buried in your computer's software under Accessories. To get there, try clicking on your bottom tool bar's Start button, then move your mouse to Programs, then Accessories. You should find Notepad in the next popup. 

You'll be formatting your Web document with tags, created with less than and greater than symbols <> and words or letters sandwiched between those symbols.

Most html elements have a start tag and an end tag. The end tag includes a forward slash after the first less-than symbol: </>

It's a good idea to type the letters and symbols comprising your tag commands in lowercase letters, to conform to the latest XML formats.

It’s also sometimes helpful as you're creating code to use extra hard returns (made with the Enter key on your keyboard) to make individual lines of code easy to find in the sea of code. These hard returns won’t show up when you look at your document through a Web browser, but you will be able to see them in your Web editor or in Notepad when you go in to make changes.

Getting started

Let’s create a Notepad file. If you're taking JOUR 202 or a short tutorial, please save it c:\lastname.html (thus putting it on your computer's hard drive), or a:\lastname.html, if you choose to save it on a disc to take the work home with you. If you're taking JOUR 352/652, please save it as h:\lastnameresume.html, thus saving the work in your own class work area. You need to be logged in to our class network before saving to h.

Please type the document name all in lowercase letters; it’ll make it easier when people have to type your document name into a search engine to look for it on the Web.

Beginning at the top of your open document, start creating the skeleton of your html file, by typing each of these words or acronyms on a separate line:

<html>
<head>
<title>

</title>
</head>
 

<body>

</body>
</html>

You have created coding tags.

What you should notice first of all is that html opening and closing tags are used in pairs. The first tag in your file, to start the page of text and codes, should be <html>; the last tag should be </html>.

ORDER MAKES A DIFFERENCE WITH TAGS; they’re generally nested on a page: 

<a> then <b>, followed by </b>, then </a>. 

So if you have a string of code surrounding a sentence or phrase, you'd close each tag in the reverse order that you typed it.

Ex: <font size="2" face="arial"><i>The Artful Dodger</i></font>

The head tag defines the top of your page. It’s where you type the title, which will show up at the top of your Web browser to identify your page, and other advanced formatting information called Metatags. Metatags won’t show up when you view the document in Netscape or Explorer, but they do help search engines to find relevant Web pages for a particular query.

Do not confuse the header with a headline. They’re not the same. A headline will appear in the body area.

The title area is very important to your document! In most browsers, words typed here will show up in the title bar at the very top of the screen. The title bar identifies your page. The title is also used by search indexes and engines such as Yahoo! and Google to help locate your document on the Web. And words in the title area will show up in bookmarks you create, to help you return to favorite pages. So choose your words carefully. Make the title succinct, but informative. Don’t use symbols, colons or backslashes in it. Three to five words for a title would be a good choice.

Go ahead and type a title into the title area of your document. Because we're about to type a resume, it should include your first and last name and the word "resume," as in: Chris Harvey's resume.

The body area of your page is where you type the text and codes for your resume (or other document), including headlines, section subheads and codes for pictures and graphics. 

To get started, let’s type in your full name on the line after the opening body tag--but BEFORE the </body> tag. Let’s type your name twice, to experiment with size and alignment. (You’ll remove one of these names after you've viewed your early work in a Web browser.)

CHRISTINE HARVEY

CHRISTINE HARVEY

Because we’re using this name as a headline, we’ll want to size it as one.

Creating headlines

One way to create headlines is with tags ranging from h1, the largest, to h6, the smallest. Some of you may be familiar with point sizes for headlines in newspaper or magazine page layouts. H1 on a PC is equal to about 24 points of type. h2 is roughly 18 points, h3 14 points, h4 12 points, h5 10 points, h6 8 points.

You can combine these headline prompts with an align prompt to either center your type or to flush it left or right. So to center your headline--or your name on your resume--and size it at 18 points (h2), here's what you'd type:

Type <h2 align="center"> before the first name. Immediately after your last name, type </h2> to create the closing tag.

Because you’ve typed a headline, a paragraph break is understood in the command and doesn’t need to be typed after the closing tag. A boldface is also understood in the headline command, without being explicitly typed, so it does not need to be typed before the name. 

Fonts:

Another way of specifying sizes and styles for text is through the font  command. Enclosing the word font between <> allows you to change the face (or style), size and color of the words you type, including headlines and body type. If you use this tag for headlines, I'd recommend adding a <b> tag to bold it (and a </b> tag to stop the bolding). You'll also need to open and close lines of type with  <p> and </p> commands, to skip a line after the one you've just typed and start a new graph.

Example: <p><b><font size="4" color="#000000" face="arial">Head Goes Here</font></b></p>

Notice I closed out my font and bold and paragraph tags in the reverse order that I typed them, for a nesting effect.

Font sizes range from 1-7, with 3 being the default size, which is usually equivalent to 12 points on a PC. A font size of 1=8 points, 2=10 points, 3=12 points, 4=14 points, 5=18 points, 6=24 points and 7=36 points. 

Font faces, or styles, are serif (with feet) or sans serif (without feet). Most Web designers recommend using different font styles for headlines and body text. Often headlines are presented in a sans serif face, such as Arial or Verdana or Tahoma, while body text is often typed in a serif style, such as Times Roman or Times New Roman or Century or Garamond. 

To change font colors, there are 16 predetermined colors for which you can simply type the word. Green, gray, silver, green, navy, purple, red, blue, black and white are among them. 

But it's probably wiser to use hexadecimal codes inside quotation marks and preceded by a # symbol to make the color of your choice. The numerals in these codes correspond to specific shades of color. So it's more likely to conform to the shade you selected when users look at it from different platforms--on PCs, Macs, etc.

Ex: <p><font face="arial" size="4" color="#404040"><b>This changes the font face to Arial, the size to 14 point and the color to grayish black.</b></font></p>

The B tag bolds the line.

Check out Webmonkey's color chart at http://www.webmonkey.com/webmonkey/reference/color_codes/ for hexadecimal codes for other shades. And read Lynda Weinman's explanation of why some designers still only work with 216 "Web-safe colors."

Sometimes Web designers include more than one font face in a string of code, separating each face with a comma. (As in: <font face="arial, courier"> This way, if a user doesn’t have the first font installed on his or her computer, the browser will automatically display the type using the second face. 

Remember that your computer will default to Times New Roman if you don't specify an alternative font face, or style.

Let's use this information to type subheads for your name, which you already typed twice. Code the first name in a font size of 5, with an Arial face, and black type. (The computer will automatically make the text black, unless otherwise specified.) 

Code the second name in a font size of 7, with a Times Roman face, and blue type.

Now save what you've typed (File/Save) and minimize the Notepad file by clicking on the minus symbol at the top right of your screen. To look at what you've done, double-click on the My Computer icon on your computer, double-click on the C or A or H drive to open this file, and double click on the file with your last name on it. It should open in a Web browser. Notice the difference in the way your name displays on the two lines. Now minimize this page, by clicking on the minus symbol at the top right of the browser. Double-click on the Notepad file saved on your tool bar and delete one of the names you typed. The one typed to the size you liked best should remain.

Not let's use the font tags to type resume categories, starting with the mini title of Work Experience:

Work Experience

Surround the words with html tags to create a paragraph break between this phrase and your name. Let's also give it an Arial face and make it 14 points tall, which translates to a size of 4:

<p><font size="4" face="arial">Work Experience</font></p>

A <b> tag or a <strong> tag will boldface text. Go back into your education line and make it bold.

<p><font size="4" face="arial"><b>Work Experience</b></font></p>

Notice that we didn't include an align="left" command in our <p> tag. The computer will automatically align your type left, unless you give it a different alignment command, such as center. We also failed to put in a color command. The computer will automatically make the text black, unless otherwise specified. 

Below that Work Experience line, type in a sentence or phrase about your current job. I’d recommend using an Italics tag <i> or <em> when naming the newspaper or broadcast outlet you work for. Or you could boldface it. To activate either command, you’ll need to surround it with the less-than, greater-than symbols, as in <b> or <i>; you'll also need to close the tags with a </b> or </i> after the last word you want bolded or italicized.

So type:

<p><i>University of Maryland Philip Merrill College of Journalism</i>, July 1998 to present: Full-time faculty member.</p> 

If you have more to add here, type it now. If you have a second paragraph, remember to start and finish this paragraph with <p> and </p> tags.

If, however, you simply wanted to drop your type to the next line, without any space between your lines of text, you'd type br, enclosing it in <>. Example: <br / >. This is a line break, rather than a paragraph break.

A <br /> tag is opened and closed in the same tag.

Use the font commands to create other sections of your resume, such as Education, Awards; Special Skills. Try changing the colors of some of these subheads, using the color="#xxxxxx" command inside the font tag. But before you do this, let’s again save your work in Notepad, so we don't lose it.

Remember to keep your file name lowercased and to use your last name and a .html extension. And let's minimize our Notepad file, double-click on the minimized browser on the tool bar, refresh that page and view our latest work.

Creating basic hyperlinks and e-mail links:

Now let's add one hyperlink to your education summary, so that if a user clicks on the words "University of Maryland Philip Merrill College of Journalism," it will take them to the J-school home page.

To create a hyperlink, you need to know the Web address for the page you want to send users to. In this case, the College of Journalism home page is http://www.journalism.umd.edu/. The best practice is to cut or copy the Web address, or URL,  from the "Location" area at the top of your browser, pasting it right into your document. This way you won't mistype the address. 

Once you know the URL, it's easy to create the link. (To copy it, you can shade it with your mouse and type Ctrl C. To paste it in, you can use Ctrl V.)

Before the words "University of Maryland College of Journalism," I'll create the tag by typing:

<a href="">

The full URL is dropped between the quotation marks inside the tag.

After the word "Journalism," I would then close the hyperlink, with </a>.

A link off your site, using the full Web address, is called an absolute link. It is the full address. 

Big sites often use partial, or relative links, for story files within a section, to make it easier to move the files to another section should the site be redesigned. Relative links generally only consist of the page name, skipping the main part of the Web address, called the domain name.

A quick tip: To open up a new browser window from your link, include target="_blank" as an attribute in the <a href> tag. So it's: <a href="http://www.journalism.umd.edu" target="_blank"> to pull up the College of Journalism home page in a new browser window.

An important hyperlink for Web resumes is the one for your e-mail address, which you'll likely want to center below your name at the top of your resume. Here's the code I'd use to create my link:

<a href="mailto:charvey@jmail.umd.edu">charvey@jmail.umd.edu</a>

Try to type your link, substituting your e-mail address in the two spots.

One last note about identifying yourself on a Web resume. Centered below your e-mail address, you may want to add a work phone number. I do not recommend putting home phone numbers or home addresses on Web resumes. You'd be giving too many people easy access to this personal information.

Links within documents, or anchor links: 

Links can be used to send readers from one spot on a Web page to a different place on the same page--although occasionally they are used to send readers to a spot below the top of another page. The bulleted links in the left-hand column of this page are examples of these jump-down, or anchor links.

When creating an anchor link, it's a two-step process. First you must create a link--the words users will click on. It should include a # symbol at the start of the URL. (You may use a partial, or relative link, if you're simply jumping readers around on the same page.) Then you must code in the anchor, or the spot on the page where you'll send readers to.

Example: To jump the reader down from the top of this page to the above subhead on anchor links, I typed the link information (see below) at the top of the page, and the anchor information next to the subhead. Only the link line will appear underlined.

Link: <a href="#anchorlink">Anchor links</a>

Anchor: <a name="anchorlink">Links within documents, or anchor links</a>

Creating a horizontal rule:

A horizontal line, or rule, can create a tidy break between sections or paragraphs. As with the line break, no end tag is needed to close this tag.

Type HR, for horizontal rule, and enclose the two letters in carots: <hr />. Notice that the horizontal rule tag opens and closes in the same tag.

Before the greater-than symbol, you can type additional words to alter the height and width of the rule. size="x" gives you a height in pixels (a pixel is roughly equal to a point in size); width="x" gives you the width of the rule in pixels. Or you can type the width as a percentage of the width of your page, as I did below. 

Align="direction", as in center, left or right.

Noshade gives you a solid bar, with no shading, when the rule is viewed in Internet Explorer.

So a full tag for a horizontal rule could look like this:

<hr size="5" width="50%" align="center" noshade />

Body Background Colors:

You can change the background color of your Web page by adding a color to the body tag near the top. For instance, type <body bgcolor="#E0E0E0"> to get light gray.

<body bgcolor="#FFE7C6"> gives you light peach.

Remember that any background color that makes it difficult to read your text is unacceptable. So you need to keep them very light! Also, be aware that you can’t change the color on segments of your page until you learn how to create tables inside tables. That's an intermediate skill that we won't be learning today.

Practice:

Try inserting a horizontal rule onto your resume.

Try experimenting with some very light background colors for the entire page.

Go ahead and type in the rest of the text for your resume, using small headlines for each category. When you've finished, save this again to your C drive on this computer, then insert the disc you brought with you and do a File/Save As to your A drive, putting this file onto your disc. If you're in JOUR 352/652, you should again be saving your work to h.

Adding photos and graphics to a page:

Once you have downloaded, sized and cropped a photo or graphic for use on your pages, you can type in a tag to call that image onto your Web page.

The tag you'll need is an image source tag, or <img src />. To correctly write this tag, you'll need to know the Web address of the image, and its width and height. You should also add an ALT attribute inside your tag, describing the image. To call in a frog graphic with a Web address of http://www.newsline.umd.edu/Harvey/frog2.gif, a width of 200 pixels, and a height of 155 pixels, here's what you'd type inside the tag:

<img src="http://www.newsline.umd.edu/Harvey/frog2.gif" width="200" height="155" alt="cute frog" />

To figure out the height and width of an image, right-click on it.

To link that image to another page, simply add a link tag before the image source tag, then close the link tag after the image source tag. So to send users from the frog image to a page about frogs, I'd type:

<a href="http://cgee.hamline.edu/frogs/"><img src="http://www.newsline.umd.edu/Harvey/frog2.gif" width="200" height="155" alt="cute frog" /></a>

Checking out others' work:

Web-savvy surfers know how to read the html code on others' work. If you're in Netscape, for instance, with washingtonpost.com's home page open, go to the top of your Browser and click on "View," then "Page Source." (In Explorer, it's Simply "View," then "Source.") This will show you all the code used to create the page. 

Be aware that stealing large chunks of another site's code is unethical and often illegal; you're stealing their copyrighted design work. Also be aware if the site is copyrighted, it's a copyright violation to lift text, photographs or graphics.

But looking at someone else's code to learn from it is OK!

Free Code and Tutorials on the Web

Some sites on the Internet do offer tutorials or coding help for free. HTML Goodies offers tutorials, as does and W3 Schools. Sites with free code include JavaScript Kit's clocks, calendars and scrollers; and FreewareJava.com's news tickers.

Top of Page

Created January 2001. Last updated:June 6, 2008.

Copyright © 2001 and 2002, 2003, 2004,  2005, 2006, 2007 and 2008 Chris Harvey. Reproduction in whole or in part without permission is prohibited. Feel free to link to this resource page, but do not cut and paste it onto your own site.


Reporting & Research
Writing
Production
Design
Planning