HTML Goodies

HTML Goodies

4.7 12
by Joe Burns Ph.D.

View All Available Formats & Editions

HTML Goodies, Second Edition is based on the most popular tutorials at It starts with a series of short primers teaching the basics of building Web pages, then continues with detailed tutorials covering

  • Linking
  • Adding images
  • Using Tables and Frames
  • Working with Style Sheets

    Later chapters move beyond HTML, demonstrating

  • Overview

    HTML Goodies, Second Edition is based on the most popular tutorials at It starts with a series of short primers teaching the basics of building Web pages, then continues with detailed tutorials covering

  • Linking
  • Adding images
  • Using Tables and Frames
  • Working with Style Sheets

    Later chapters move beyond HTML, demonstrating how to add sound or video, JavaScript and CGI programming to Web pages. The book finishes with a series of useful appendices you can refer to for quick reference.

  • Editorial Reviews

    Burns, professor of communications at Susquehana University and creator of the award-winning HTML Goodies Web site, offers a series of self-contained, reader-friendly tutorials for learning HTML and building Web sites. Everything needed is contained in each lesson, so there is no need to check previous chapters for information. HTML is covered from the ground up, followed by material on building Web site features such as visitor counters, scrolling marquees, RealAudio sound, and searchable databases. Each "goody" in the book has a working example on the Web site. Annotation c. Book News, Inc., Portland, OR (

    Product Details

    Publication date:
    Goodies Series
    Edition description:
    Product dimensions:
    7.40(w) x 9.00(h) x 1.50(d)

    Read an Excerpt

    Chapter 3: Manipulating Text

    How did it go with your first HTML page? I'll assume it went well. If I don't assume as much, I can't go on, and I want to go on. Now you know the basics about placing flags and manipulating text in terms of bold, italic, and typewriter font. That's good, and along with the <HR>, <BR>, and <P> commands, you'll be able to play with text placement. Now we'll talk about changing text size.

    Visit this tutorial online at

    Heading Flags

    Heading flags are used extensively on HTML documents to--you guessed it--create headings! How novel.

    There are six heading flags: <H1> through <H6>. <H1> is the largest and <H6> is the smallest. Headings need begin and end flags, as shown in Figure P3.1.

    Heading commands create nice bold text, as shown in the figure, and are quite easy to use. It's a simple <H#> and </H#> command. However, they do have one other annoying trait: They like to be alone. When you use a heading command, the text is set alone by default. It's like the heading commands carry a <P> command with them. It's hard to get other text to sit next to it. It's as if it wants to be, dare I say, a heading. Try a few for yourself.

    Font Size Commands

    Maybe you'd like a little more control over your text size. Well, here it is: the <FONT SIZE> flags. Heading commands are great for text at the top of the page, and they're also good for separating your Web page into logical sections of text.

    There are twelve font size flags available to you: +6 through +1 and -1 through -6. As you probably guessed, +6 is the largest. It's huge. The smallest one is -6. It's a little small. Figure P3.2 shows a few in action. Follow this pattern to place one on your page:

    <FONT SIZE="##"> 

    The ## can be anything from +6 to -6.

    Notice that the first flag is actually doing two things:

    This is what's referred to as a command inside of a command, or just a subcommand. When you have that, you denote the subcommand with an equal (=) sign and enclose it within quotation marks. Look at the preceding code. See the equal sign, and the plus or minus number in quotation marks? That's the subcommand:.

    Also notice in Figure P3.2 that the end command for a <FONT SIZE> flag only requires </FONT>.

    FAQs from the HTML Goodies Web Site

    Centering Text and Aligning It to the Right

    Since you've already created a few Web pages, you no doubt noticed that the text always starts at the left of the screen. That's the default; it just happens without you doing anything. What if you want your text centered, or aligned with the right side of the screen? Can you do that? Yes! (and Figure P3.3 shows you some examples).

    You center text by surrounding it with simple <CENTER> and </CENTER> commands. Here's what it looks like:

    <CENTER>All text in here will be centered</CENTER> 

    Getting text to align on the right is a little trickier. You need to set the text aside as a paragraph unto itself. Here's the format:

    <P ALIGN="right">text that will go to the right</P> 

    You probably remember that <P> command from Primer 2. Here again is the concept of a command inside of a command. You are setting an attribute of the <P> flag. That alignment command is what pushes to the right. Remember this: When you use a subcommand in the <P> flag, you need to end with a </P> flag. . . .

    Meet the Author

    Joe Burns, Ph.D. began writing HTML tutorials in 1994 to be able to remember complex commands while teaching. Less than a month after his first five HTML Goodies tutorials were available, they were the most visited pages on the university Web site. At one point, the tutorials were taken down for a short while because the volume of visitors was putting too much of a strain on the server. The site exploded into millions of visitors in 1996 when seven HTML primers and 10 new tutorials were added to the first five to create HTML Goodies is now the largest HTML help site on the Web, supporting over 180 tutorials, hundreds of free images, and numerous bad jokes.

    The site serves close to 8 million page views a month from a mind-boggling number of users. The site has won over 170 awards, been reviewed favorably in national newspapers and magazines, and continues to grow.

    Burns holds a Ph.D. in communications from Bowling Green State University. He's currently a professor of communications at Southeastern Louisiana University, where he lives with his wife and two cats, Mardi and Chloe.

    Customer Reviews

    Average Review:

    Write a Review

    and post it to your social network


    Most Helpful Customer Reviews

    See all customer reviews >

    HTML Goodies 4.8 out of 5 based on 0 ratings. 12 reviews.
    Guest More than 1 year ago
    I love the way he explains each of his scripts... He explains it very finely too. It is a book that I recommend for all ages!
    Guest More than 1 year ago
    As a 16 year old looking for a start in the web design world, I have found Joe's books to be absolutely GREAT for help. I've tried many others books, all of them sounded like a robot was trying to teach me. Joe puts it in a form where you can learn easily and have fun with it. :)
    Guest More than 1 year ago
    This was one of the best html books I have ever read. I learned how to make awsome webpages from scratch. I am now building webpages for huge companies.
    Guest More than 1 year ago
    This book is a fantastic resource for creating a website. Used in conjunction with the Dr. Burns' website, you are guaranteed the latest and the greatest. Insightful, with great humor and easy to understand text - I show this book to every one who asks how I am doing my website (a work in progress!). I am a big fan of the computer, but I taught myself everything I know about it. If I can do it - anyone can.
    Guest More than 1 year ago
    This is by far the best HTML 4.0 book ive ever read. The Author keeps you very interested. He tells you spesificaly how everything is done and then thouroughly explains it. He give examples that you are free to use on your personal web page. And gives you plenty of useful referenses to his website. I highly recommend it!!!
    Guest More than 1 year ago
    This book is great for HTML beginners or those with little experience. Everything you need to develop easy static pages are included. Even dips into JavaScript and CGI. For those who want to learn about HTML, this is the book to purchase.
    Guest More than 1 year ago
    I am no novice but I am no professional either.. This book did great things for my HTML prowess I am now writing must of my stuff using nothing but notepad.
    Guest More than 1 year ago
    This is the absolute best book I have seen on HTML. Burns makes learning HTML an enjoyable experience with his comical views. He really makes you want to learn- without being bored doing it. I recommend this book to anyone who is beginning HTML and has even the smallest sense of humor.
    Guest More than 1 year ago
    It is very informative, much better than HTML 4 for Dummies.
    Guest More than 1 year ago
    I thought there was something special about this book. It turns out to be just like any other Java Script book with the same old examples. I am new to Java Script, and need more real world examples & scenarios. Does anyone know how to java script a conference reservation system, passing values from one page to another, using tables?
    Guest More than 1 year ago
    I never thought I could learn so much stuff from this book. I bought this book a year ago and over summer, it gave me the foundations I needed to create great layouts. My friends started complimenting me on my layouts and just yesterday I was trying to find something on XML, and lo and behold, there was a section on XML in HTML Goodies! In one year i've learned HTML, Javascript, DHTML, and SSI, and it all started with this book.
    Guest More than 1 year ago
    When i first purchased this book is was for it's great price, but I soon found that there was much more to it. HTML Goodies gives you step by step clear as day instructions on all html codes. If you want examples to go with what you are learning there is and online webpage to go with every lesson. It totally improved my webpage see for yourself ( His new book Javascript Goodies is also a must buy!