30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix H Introduction <strong>to</strong> HyperText Markup Language 4: Part 1 1345<br />

Marvin Cohen<br />

Outline<br />

H.1 Introduction<br />

H.2 Markup Languages<br />

H.3 Editing HTML<br />

H.4 Common Elements<br />

H.5 Headers<br />

H.6 Linking<br />

H.7 Images<br />

H.8 Special Characters and More Line Breaks<br />

H.9 Unordered Lists<br />

H.10 Nested and Ordered Lists<br />

H.11 Internet and World Wide Web Resources<br />

Summary Terminology Self-Review Exercises Answers <strong>to</strong> Self-Review Exercises Exercises<br />

H.1 Introduction<br />

In this appendix we introduce the basics of creating Web pages in HTML. We write many<br />

simple Web pages. In Appendix I, Introduction <strong>to</strong> HyperText Markup Language 4: Part 2,<br />

we introduce more sophisticated HTML techniques, such as tables, which are particularly<br />

useful for structuring information from databases. In this appendix, we do not present any<br />

<strong>Visual</strong> <strong>Basic</strong> programming.<br />

In this appendix, we introduce basic HTML elements and attributes. A key issue when<br />

using HTML is the separation of the presentation of a document (i.e., how the document is<br />

rendered on the screen by a browser) from the structure of that document. In this appendix<br />

and in Appendix I, we discuss this issue in depth.<br />

H.2 Markup Languages<br />

HTML is a markup language. It is used <strong>to</strong> format text and information. This “marking up”<br />

of information is different from the intent of traditional programming languages, which is<br />

<strong>to</strong> perform actions in a designated order.<br />

In HTML, text is marked up with elements, delineated by tags that are keywords contained<br />

in pairs of angle brackets. For example, the HTML element itself, which indicates<br />

that we are writing a Web page <strong>to</strong> be rendered by a browser, begins with the start tag<br />

and terminates with the end tag . These elements format your page in<br />

a specified way. Over the course of the next two appendices, we introduce many of the<br />

commonly used tags and how <strong>to</strong> use them.<br />

Good <strong>Program</strong>ming Practice H.1<br />

HTML tags are not case sensitive. <strong>How</strong>ever, keeping all the letters in one case improves program<br />

readability. Although the choice of case is up <strong>to</strong> you, we recommend that you write all<br />

of your code in lowercase. Writing in lowercase ensures greater compatibility with future<br />

markup languages that are designed <strong>to</strong> be written with only lowercase tags and elements. H.1

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

Saved successfully!

Ooh no, something went wrong!