PHP 64 Lec 1
PHP 64 Lec 1
EVS_PHP_64_LEC_1
05/03/2011
ZIA-UR-REHMAN
PROGRAM MANAGER
The World Wide Web
A document on the Web is called a Web
page, identified by a unique address called
the Uniform Resource Locator, or URL
URL commonly referred to as a Web
address
The World Wide Web
A URL is a type of Uniform Resource
Identifier (URI), which is a generic term for
many types of names and addresses on the
World Wide Web
The World Wide Web
A Web site refers to the location on the
Internet of the Web pages and related files
(such as graphic files) that belong to a
company, organization, or individual
HTML Documents
Originally,
people created Web pages using
Hypertext Markup Language
Hypertext Markup Language (HTML) is a
simple language used to create the Web
pages that appear on the World Wide Web
HTML Documents
A markup language is a set of characters or
symbols that define a document’s logical
structure or how a document should be
printed or displayed
HTML Documents
HTML is based on an older language called
Standard Generalized Markup Language,
or SGML, which defines the data in a
document independently of how the data will
be displayed
HTML Documents
A target output format refers to the medium
in which a document will be displayed, such
as a Web page or an online help system
Basic HTML Syntax
HTML documents are text documents that
contain:
formatting instructions, called tags
the text that is to be displayed on a Web
page
Basic HTML Syntax
HTML tags range from formatting commands
to controls that allow user input
Tags are enclosed in brackets (< >), and
most consist of a starting tag and an ending
tag that surround the text or other items they
are formatting or controlling
Common Structure and
Formatting HTML Tags
Basic HTML Syntax
AllHTML documents begin with <html> and
end with </html>
</html>
Creating an HTML file (cont.)
Header information
<head> to begin, and </head> to end
Gives information about the page that is not displayed on
the page itself
Page Title
<title> to begin, and </title> to end
Example: <title>EVS_PHP_64</title>
The title tag:
<html>
<head>
<title>EVS_PHP_64</title>
</head>
</html>
Creating Text in HTML
Body Tags
<body> and </body>
*Note* that all text that appears on the page must be
encapsulated within the body tags
Text headings
<h1> and </h1>
There are six defined heading sizes
<h1> (largest) through <h6> (smallest)
Paragraphs
<p> and </p>
Text Example
<html>
<header>
<title>EVS_PHP_64</title>
</header>
<body>
</body>
</html>
Text Example output (cont.)
This is a big heading!
This is a smaller heading!
</body>
</html>
request (URL)