15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

464<br />

The Structure of an HTML Document<br />

The last tag uses a slash (/) to identify the end of the tag.<br />

Generally, HTML tags work in pairs — the first tag defines something, and<br />

the second tag (the one beginning with a slash) marks the end of that definition.<br />

If you omit one of the or tags, your HTML Web page<br />

won’t appear.<br />

HTML tags are not case sensitive, so you could’ve defined the tags as<br />

and .<br />

Creating a title<br />

Most Web pages include a title, which appears in the title bar of a window.<br />

To display text in a window’s title bar, type text in between the and<br />

tags inside the and tags like this:<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

Creating the body text<br />

The bulk of a Web page falls within the and tags. To display<br />

text, you need to use the paragraph tags and like this:<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

This text appears on the web page.<br />

<br />

<br />

If you want to make sure a line of text breaks at a certain point, you can use<br />

the tag, such as<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

This text appears on the web page.This appears<br />

on a separate line.<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!