Вы находитесь на странице: 1из 3

Introduction

W elcome to Learn HTML and CSS with w3schools. This book is for Web users learn-
ing to create their own Web pages using HTML, the standard tagging language for
the World Wide Web.
w3schools (www.w3schools.com) is one of the top Web destinations to learn HMTL and
many other key Web languages. w3schools’ tutorials are recommended reading in more
than 100 universities and high schools all over the world. This book is a great companion
to the HTML and CSS tutorials on the w3schools site, which were written by Hege Ref-
snes, Ståle Refsnes, Kai Jim Refsnes, and Jan Egil Refsnes.
Like the w3schools online tutorials, this book features a brief presentation of each topic,
trading lengthy explanations for abundant examples showcasing each key feature. This
book, as well as other w3schools books published by Wiley, features straightforward and
concise tutorials on each topic from which the beginning Web developer can easily learn.
All of the book’s content is derived from w3schools’ accurate, user-tested content used by
millions of learners every month.

HTML
With HTML, you can create your own Web site. HTML is the core technology in which
all Web pages are written. This tutorial teaches you everything about HTML. HTML is
easy to learn—you will enjoy it.

What You Should Already Know


Before you continue, you should have a basic understanding of how to use a browser to
view pages on the Web.
If you want to study these subjects first, please read The Internet For Dummies, 12th Edi-
tion, also from Wiley Publishing.

What is HTML?
HTML is a language for describing Web pages.
8 HTML stands for HyperText Markup Language.
8 HTML is not a programming language, it is a markup language.
8 A markup language is a collection of markup tags.
8 HTML uses markup tags to describe Web pages.

1
Learn HTML and CSS with w3schools

What are Tags?


8 HTML markup tags are usually called HTML tags or just tags.
8 HTML tags are keywords surrounded by angle brackets like <html>.
8 HTML tags normally come in pairs, like <b> and </b>.
8 The first tag in a pair is the start tag; the second tag is the end tag.
8 Start and end tags are also called opening tags and closing tags.

HTML Documents = Web Pages


8 HTML documents describe Web pages.
8 HTML documents contain HTML tags and plain text.
8 HTML documents are also called Web pages.
The purpose of a Web browser (like Internet Explorer or Mozilla Firefox) is to read
HTML documents and display them as Web pages. The browser does not display
the HTML tags, but uses the tags to interpret the content of the page. In your
browser, it looks like figure I.1.

<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph</p>

</body>
</html>

In the previous code example,


8 The text between <html> and </html> describes the Web page.
8 The text between <body> and </body> is the visible page content.
8 The text between <h1> and </h1> is displayed as a heading.
8 The text between <p> and </p> is displayed as a paragraph.

Figure I.1

2
Introduction

How to Use This Book


Throughout this book, you will see several icons:

Try it yourself >>


The Try It Yourself icon indicates an opportunity for you to practice what you’ve just
learned. The code and examples under this icon come from examples on the w3schools
site, which allow you to make changes to the code and see the results immediately. You do
not have to type the code examples in this book; you can find them all on the w3schools
site.

The w3schools icon indicates that more information is available on the


w3schools site.

This icon indicates where you will find further information about a topic that
is covered more thoroughly elsewhere within the book.

NO T E Notes call your attention to important information you need to know


before proceeding.

TIP Tips provide you with suggested shortcuts and information to help you be
more productive.

This book is divided into three sections:


8 Section I: HTML Basic
8 Section II: HTML/CSS Advanced
8 Section III: Appendixes
If you’re eager to improve your Web pages and to add some interactivity, jump right
in with HTML basics. Plenty of examples and opportunities to try things await, and
w3schools will be right there when you need them!

Вам также может понравиться