Basic Web Chapter 1
Basic Web Chapter 1
Developing
a Basic Web
Page
2
Exploring the History of the
World Wide Web
A computer or other device that requests services from a
server is called a client
One of the most commonly used designs is the client-
server network
If the computers that make up a network are close together
(within a single department or building), then the network is
referred to as a local area network (LAN)
3
Exploring the History of the
World Wide Web
A network that covers a wide area, such as several buildings
or cities, is called a wide area network (WAN)
The largest WAN in existence is the Internet
In its early days, the Internet was called ARPANET and
consisted of two network nodes located at UCLA and
Stanford, connected by a phone line
4
Exploring the History of the
World Wide Web
Today the Internet has grown to include an uncountable
number of nodes involving computers, cell phones, PDAs,
MP3 players, gaming systems, and television stations
The physical structure of the Internet uses fiber-optic cables,
satellites, phone lines, wireless access points, and other
telecommunications media
6
Structure of the Internet
7
Exploring the History of the
World Wide Web
Timothy Berners-Lee and other researchers
at the CERN nuclear research facility near
Geneva, Switzerland laid the foundations
for the World Wide Web, or the Web, in
1989
They developed a system of
interconnected hypertext documents that
allowed their users to easily navigate from
one topic to another
Hypertext is a method of organizing 8
Hypertext Documents
9
Hypertext Documents
11
Web Pages and Web Servers
12
Introducing HTML
13
The History of HTML
14
The History of HTML
15
The History of HTML
16
Writing HTML Code
1. Become well-versed in the history of HTML
2. Know your market
3. Test your code on several different browsers and browser
versions
4. Read the documentation on the different versions of HTML
and XHTML
17
Tools for Creating
HTML Documents
Basic text editor such as Windows Notepad
18
Tools for Creating
HTML Documents
HTML Editor helps you create an HTML file by inserting
HTML codes for you as you work
They can save you a lot of time and help you work more
efficiently
Advantages and limitations similar to those of HTML converters
Allow you to set up a Web page quickly
Will usually still have to work with HTML code to create a finished
document
19
Creating an HTML Document
20
Creating an HTML Document
21
Creating an HTML Document
22
Marking Elements with Tags
The core building block of HTML is the tag, which marks the
presence of an element
A two-sided tag is a tag that contains some document
content General syntax for a two-sided tag:
<element>content</el
ement>
23
Marking Elements with Tags
24
The Structure of an HTML File
25
The Structure of an HTML File
26
The Structure of an HTML File
27
Converting an HTML Document
into XHTML
There is considerable overlap between HTML and XHTML
You can convert an HTML file into an XHTML file by replacing
the opening <html> tag with the following three lines of
code:
<?xml version="10" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 10 Strict//EN
http://wwww3org/TR/xhtml1/DTD/xhtml1-strictdtd">
<html xmlns=http://wwww3org/1999/xhtml>
28
Adding Comments
29
Adding Comments
30
Displaying an HTML File
As you continue modifying the HTML code, you should
occasionally view it with your Web browser to verify that you
have not introduced any errors
You may want to view the results using different browsers to
check for compatibility
31
Displaying an HTML File
32
Working with
Block-Level Elements
Block-level elements are elements that contain content
that is viewed as a distinct block within the Web page
Heading elements are block-level elements that contain
the text of main headings on the Web page
<hn>content<hn>
n is an integer between 1 and 6
<h1> is the largest heading
<h6> is the smallest heading
33
Marking Block-Level Elements
34
Adding <h1> and <h2>
Markup Tags
35
Marking Paragraph Elements
36
White Space and HTML
37
Marking a Block Quote
38
Marking a List
39
Marking a List
40
Creating a Definition List
41
Using Other Block-Level
Elements
HTML supports the address element to indicate contact
information Most browsers display an address element in an
italicized font, and some right-justify or indent addresses
42
Using Other Block-Level
Elements
43
Working with Inline Elements
44
Working with Inline Elements
45
Using Element Attributes
46
The Style Attribute
47
The Style Attribute
48
The Style Attribute
49
Working with Empty Elements
50
Working with Empty Elements
51
Working with Empty Elements
52
Working with Empty Elements
53
Working with Character Sets
and Special Characters
Character sets come in a wide variety of sizes, based on
the number of symbols required for communication in the
chosen Language
ASCII (American Standard Code for Information
Interchange)
Latin-1
ISO 8859-1
Unicode
UTF-8
54
Working with Character Sets
and Special Characters
To store a character set, browsers need to associate each
symbol with a number in a process called character
encoding
Another way to insert a special symbol is to use a character
entity reference, in which a short memorable name is
used in place of the numeric character reference
55
Working with Character Sets
and Special Characters
56
Working with Character Sets
and Special Characters
57