Skip to Content
Absolute Beginner's Guide to Programming, Third Edition
book

Absolute Beginner's Guide to Programming, Third Edition

by Greg Perry
November 2002
Beginner content levelBeginner
432 pages
11h 44m
English
Que
Content preview from Absolute Beginner's Guide to Programming, Third Edition

Simple HTML Text Formatting

When you want text to appear on the browser's screen, you enter the text inside the HTML code. Your Web page body could simply include lines of text like this:

<body>
This text will appear
on whatever Web browser screen
opens this HTML code.
</body>

Web browsers do not automatically format text. These three lines of text all appear on one line inside the browser, like this:

This text will appear on whatever Web browser screen opens this HTML code.

If you want to add line breaks, you must include the <br> tag (no ending <br> tag exists). <br> tells the Web browser to break the line at that point and move to the next line. The following <body> section displays three lines of text:

 <body> This text will appear<br> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Absolute Beginner's Guide to Programming, Second Edition

Absolute Beginner's Guide to Programming, Second Edition

Greg Perry

Publisher Resources

ISBN: 0789729059Purchase book