Chapter 1 - Introduction To Web Design and Development
Chapter 1 - Introduction To Web Design and Development
Chapter 1 - Introduction To Web Design and Development
Chapter 1 introduction to
web design and
development
1
XP
Objectives (continued 1)
• Mark page structures with sectioning elements
• Organize page content with grouping elements
• Mark content with text-level elements
• Insert inline images
• Insert symbols based on character codes
• Create list
6
• Google server
XP
(supercomputer/
mainframe) –hosting
server
7
Exploring the World Wide Web
XP
(continued 2)
• Local area network - A network confined to a small geographic area, such
as within a building or department
• 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
HTML document:
• A Web page is a text mp_index.html
17
Exploring an HTML File XP
<!DOCTYPE html>
<hr/>
20
https://www.w3schools.com/code/tryit.asp?filename=GRY0T4XHLU5T XP
21
Introducing Element Tags
XP
(continued)
• Empty elements (one-sided tag)
are elements that are either
nontextual (images) or contain
directives to the browser about
how the page should be treated
• For example
– <br /> is used to indicate the
presence of a line break in the
text
– <hr/> is used to display a
horizontal line
https://www.w3schools.com/tags/tag_body.asp
Chapter 1 Introduction to Web Design and Development 23
Displaying an HTML File XP
• A markup language
describes the Web page (result):
content and mp_index web page
structure of a Software :
Web browser/mobile
document by browser
identifying, or Eg: Google chrome,
Firefox, Internet
tagging, different Explorer, Microsoft
Edge
document elements
where attr1, attr2, etc. are the names of attributes associated with
the element and value1, value2, etc., are the attribute values.
https://www.w3schools.com/tags/tag_hn.asp
Chapter 1 Introduction to Web Design and Development 29
• HTML file documents are composed of text characters and white space
• A white-space character is any empty or blank character such as a space,
tabs, or a line break
• You can use white space to make your file easier to read by separating one
code block from another https://
www.w3schools.com/code/tryit.asp?filename=GRR4Z2
QHIQJN
• HTML
describes a
document’s
content and
structure, but
not its
appearance
• The actual
appearance of
the document
is determined
by style
sheets
About_AACS1193.html
34
Creating Base Element <!DOCTYPE html>
<html>
<!DOCTYPE html> <head> XP
<html>
<head> </head>
<base href="images3/"> <body>
</head> <h1> Without base href attribute</h1>
<body>
<p><img src="images3/stickman.gif" width="2
<h1>The base href attribute</h1> 4" height="39" alt="Stickman"> - Notice that w
e have only specified a relative address for th
<p><img src="stickman.gif" width="24" height="39" alt= e image. Since we have specified a base URL
"Stickman"> - Notice that we have only specified a relat in the head section, the browser will look for t
ive address for the image. Since we have specified a b he image at "https://www.w3schools.com/ima
ase URL in the head section, the browser will look for t ges/stickman.gif".</p>
he image at "https://www.w3schools.com/images/stick <img src="images3/stickman.gif" width="24" h
man.gif".</p> eight="39" alt="Stickman"/>
<img src="stickman.gif" width="24" height="39" alt="Sti <img src="images3/stickman.gif" width="24" h
ckman"/> eight="39" alt="Stickman"/>
<img src="stickman.gif" width="24" height="39" alt="Sti <img src="images3/stickman.gif" width="24" h
ckman"/> eight="39" alt="Stickman"/>
<img src="stickman.gif" width="24" height="39" alt="Sti </body>
ckman"/> </html>
</body>
</html>
<meta charset="ISO-8859-1">
All HTML5 and XML processors support UTF-8, UTF-16, Windows-1252, and ISO-8859.
36
Adding Comments to Your
https://www.w3schools.com/html/html_comments.aspXP
Document
• A comment is descriptive text that is added to the HTML file but does not appear in
the browser window
<!-- comment -->
• Comments can be spread across several lines
• It is a good practice to always include a comment in the document head
https://www.w3schools.com/html/html_comments.asp
Creating Heading XP
• To mark a heading,
<hn>content</hn>
where n is an integer from 1 to 6 and content is the text of heading
• To mark a paragraph,
<p>content</p>
Image <img>
Words image
44
Using Grouping Elements/ block –level XP
elements
46
Using Text-Level Elements XP
https://www.w3schools.com/h
ml/html_formatting.asp
47
XP
Marking Text-level Elements
• Display text in bold italic font :
<b><i>K-Pop Star</i></b>
output: K-Pop Star
25
48
Linking an HTML Document to a Style Sheet
XP
(chapter 3)
• A style sheet is a set of rules specifying how page elements are displayed; it is
written in the Cascading Style Sheet (CSS) language
• To link an HTML document to an external style sheet file, add the following
element:
<link href= “file” rel=”stylesheet” />
49
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
XP
<meta name="keywords" content="Thai, restaurant, Charlotte, food" />
<title>About Curbside Thai</title>
<link href="ct_base.css" rel="stylesheet" />
<link href="ct_layout2.css" rel="stylesheet" />
</head>
<body>
<header>
<a href="ct_start.html"><img src="ct_logo2.png" alt="Curbside
Thai" /></a>
<nav>
Without <link>
<ul>
<li><a href="ct_about.html">About</a></li>
:
</ul>
</nav>
</header>
<article>
:
:
</article>
<footer>
Curbside Thai • 411 Belde Drive, Charlotte NC 28201
• 704-555-1151
</footer>
</body>
</html> (chapter 3) 50
Working with Character Sets and Special XP
Characters
https://www.w3schools.com/html/html_symbols.asp
https://www.w3schools.com/charsets/ref_emoji.asp
https://www.w3schools.com/html/html_attributes.asp
56
XP
https://www.w3schools.com/html/html_attributes.asp
57
Working with Lists XP
https://www.w3schools.com/html/html
_lists.asp
https://www.w3schools.com/tags/tryit.asp?filename=try
html5_ol_reversed
https://www.w3schools.com/html/html_lists.asp
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_lists_nested
https://www.w3schools.com/html/html_lists.asp 63
Navigation lists XP
https://www.w3scho
ols.com/tags/tryit.as
p?filename=tryhtml5
_nav
• Navigation list
unordered lists
hypertext links p
within the nav e
64