HTML and CSS Reference
In-Depth Information
Links are deined in HTML. his ability to have active references in a docu-
ment to other documents, no matter where they are physically located, is very
powerful. All of the Web's resources are addressable using a Uniform Resource
Locator (URL). Any information can be easily located and linked with related
content, creating frictionless connectivity.
he Web hosts many protocols and practices, but HTML is the foundation,
providing the basic language to mark up text content into a structured docu-
ment by describing the roles and attributes of its various elements. A com-
panion technology, Cascading Style Sheets (CSS) , lets you select document
elements and apply styling rules for presentation. CSS rules can be mixed into
the HTML code or can reside in external iles that can be employed across an
entire website. his keeps content creators and site designers from stepping all
over each other's work. HTML describes the page's content elements, and CSS
tells the browser how they should look (or sound.) he browser can override
the CSS instructions or ignore them.
Example 1.1 creates a very simple web page. You can copy this HTML code
into a plain text ile on your computer and open it in any browser. Give it a
ilename ending in the extension .html.
Example 1.1: HTML for a very simple web page
<!DOCTYPE html>
<html>
<head>
<title> Example 1.1 </title>
<style type="text/css">
h1 { text-align: center; }
</style>
</head>
<body>
<h1> Hello World Wide Web </h1>
<p>
Welcome to the first of many webpages.
I promise they will get more interesting than this.
</p>
</body>
</html>
 
 
Search WWH ::




Custom Search