You are here:    Home » KidSpace » Learning HTML

KidSpace Home

Ask an IPL Librarian

Librarians' Internet Index

Library Locator

Subjects

Reference
The World
Computers
Health & Nutrition
Reading Zone
Math & Science
Art & Music
Sports & Rec.
Fun Stuff

Features

Science Fair
Stately Knowledge
Learning HTML
Orca Search
Poison Prevention
Author Page
Culture Quest
Story Hour
Say Hello
U.S. Presidents

Valid XHTML 1.0 Transitional

Valid CSS!

Ask an IPL Librarian
Have a question? Ask an IPL Librarian!
(Use our Contact Us form for questions/suggestions about our site.)
The Ask an IPL Librarian Reference Service will close between academic terms beginning December 20, 2007 at 10 p.m. (EST). We will reopen the service on Monday, January 5, 2008 at Noon (EST). We use this time to work behind the scenes to improve this service. Happy Holidays from all of us at the IPL!

Line Breaks and Spaces

Now that you know the four basic tags (HTML, head, title, body) that go into your document, let's look at all the stuff that you can put between the body tags.

Of course you are going to want some text displayed on your web page. As you saw from a previous example that all you need to do is type the words that you want displayed between the<body>and</body>tags. So try something like this…

<html>
<head>
<title>Learning HTML</title>

</head>
<body>
Woo-Hoo! I'm learning HTML!
</body>

</html>

Want to see what it looks like in a web browser?

Did you notice that I put in some extra blank lines when typing the tags for the example above? You can do the same thing with your tags, as well as your text. Don't worry about how many blank lines or blank spaces you use because the web browser will take all of it and simply display it as one single space. Here is an example of what I'm talking about:

<html>

<head>
<title> Learning HTML </title>
</head>

<body>
Woo-Hoo!

I'm

learning

HTML!
</body>

</html>

Notice how the web browser just ignored all the blank lines between my words. That means you can go ahead and add as many blank lines and spaces as you want. Do whatever helps you to read your code.

Oh, and if you are wondering how to make extra spaces and line breaks show up in your web page, I will show you how to do just that next. right arrow

This resource originally created by Deborah Dunk.
Revised and edited by Michael Galloway in 2005 & in 2006.

Updated on 11 Mar 2007

What is the IPL?

The Internet Public Library is a public library for the world wide web.
Students from a consortium of colleges and universities with programs in information science develop and maintain the IPL!
Here are some of the partners in the IPL Consortium. A complete list is found on the IPL Consortium page.

The iSchool at Drexel Florida State University College of Information University of Illinois at Urbana-Champaign Graduate School of Library and Information Science Rutgers School of Communication and Information Studies

University of North Carolina at Chapel Hill School of Information and Library Science University of Pittsburgh School of Information Sciences Syracuse University School of Information The Information School - University Of Washington

The Internet Public Library is hosted by The iSchool at Drexel, College of Information Science and Technology,
with major support from the College of Information at Florida State University.

 
© 1995-2008 The Regents of the University of Michigan. All rights reserved.
© 2008, Drexel University, All Rights Reserved