SlideShare a Scribd company logo
HTML5, CSS3,
and JavaScript
6th Edition
Getting Started with HTML5
Tutorial 1
Carey
XPXPXPXPXP
Objectives
• Explore the history of the web
• Create the structure of an HTML document
• Insert HTML elements and attributes
• Insert metadata into a document
• Define a page title
2New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
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
3New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Objectives (continued 2)
• Mark content using lists
• Create a navigation list
• Link to files within a website with hypertext
links
• Link to e-mail addresses and telephone
numbers
4New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
The Structure of an HTML5
Document
5New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPExploring the World Wide Web
• A network is a structure in which information
and services are shared among devices
• A host or a node can be any device that is
capable of sending and/or receiving data
electronically
• A server is a host that provides information or
a service to other devices on the network
6New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Exploring the World Wide Web
(continued 1)
• A computer or other device that receives a
service is called a client
• In a client-server network, clients access
information provided by one or more users
• Local area network - A network confined to a
small geographic area, such as within a
building or department
7New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Exploring the World Wide Web
(continued 2)
• 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
8New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Exploring the World Wide Web
(continued 3)
• 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 organization in which data
sources are interconnected through a series of links
or hyperlinks that users can activate to jump from
one piece of information to another
9New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPWeb Pages and Web Servers
• Each document on the web is referred to as a
web page
• Web pages are stored on web servers
• Documents on the web are accessed through a
software program called a web browser
10New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPIntroducing HTML
• A Web page is a text file written in HTML
(Hypertext Markup Language)
• A markup language describes the content and
structure of a document by identifying, or
tagging, different document elements
11New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe History of HTML
• In the early years of HTML, browser
developers were free to define and modify the
language as no rules or syntax were defined
• The World Wide Web Consortium, or the
W3C, created a set of standards or
specifications for all browser manufacturers to
follow
12New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe History of HTML (continued 1)
• The W3C has no enforcement power
• The recommendations of the W3C are usually
followed since a uniform approach to Web
page creation is beneficial to everyone
13New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe History of HTML (continued 2)
• XHTML (Extensible Hypertext Markup
Language) is a different version of HTML
enforced with a stricter set of standards
• HTML5 was developed as the de facto
standard for the next generation of HTML
• Older features of HTML are often deprecated,
or phased out; you may need to use them if
you are supporting older browsers
14New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe History of HTML (continued 3)
15New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPTools for Working with HTML
• Basic text editor such as Windows Notepad
• Other HTML editors such as Notepad++,
UltraEdit, CoffeeCup, BBEdit, and ConTEXT
16New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Tools for Working with HTML
(continued)
• IDE (Integrated Development Environment) -
A software package that provides
comprehensive coverage of all phases of the
development process from writing HTML code
to creating scripts for programs running on
web servers
• Validators are programs that test code to
ensure that it contains no syntax errors
17New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPExploring an HTML File
18New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe Document Type Declaration
• The first line in an HTML file is the document
type declaration, or doctype, that indicates
the type of markup language used in the
document
<!DOCTYPE html>
19New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPIntroducing Element Tags
• Element tag is the fundamental building block
in every HTML document that marks an
element in the document
• A starting tag (<element>) indicates the
beginning of an element, while an ending tag
(</element>) indicates the ending
• The general syntax of a two-sided element tag
is
<element>content</element>
20New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Introducing Element Tags
(continued)
• The following code marks a paragraph element
<p>Welcome to Curbside Thai.</p>
• Empty elements 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
21New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe Element Hierarchy
<!DOCTYPE html>
<html>
<head>
head content
</head>
<body>
body content
</body>
</html>
22New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPThe Element Hierarchy (continued)
• An HTML document is divided into two main
sections: the head and the body
• The head element marks information about
the document
• The body element marks the content that will
appear in the web page
• The body element is always placed after the
head element
23New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPIntroducing Element Attributes
• Element attributes provide additional
information to the browser about the purpose of
the element
• The general syntax of an element attribute is
<element attr1=”value1”
attr2=”value2” ...>
content</element>
where attr1, attr2, etc. are the names of attributes
associated with the element and value1, value2,
etc., are the attribute values
24New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPHandling White Space
• 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
25New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPViewing HTML File in a Browser
26New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Viewing HTML File in a Browser
(continued)
• HTML describes a document’s content and
structure, but not its appearance
• The actual appearance of the document is
determined by style sheets
27New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPCreating the Document Head
• The document head contains metadata
• Metadata is the content that describes or
provides information about how the
document should be processed by the browser
28New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Creating the Document Head
(continued)
29New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPSetting the Page Title
30New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Adding Metadata to the Document
• Meta element is used for general lists of
metadata values.
The meta element structure is
<meta attributes />
• Character encoding is the process by which a
computer converts text into a sequence of
bytes and vice versa when it stores the text
and when the text is read.
31New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Adding Metadata to the Document
(continued)
32New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Adding Comments to Your
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
33New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Adding Comments to your
Document (continued)
34New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPWriting the Page Body
• HTML marks the major topical areas of a
page using sectioning elements also referred
to as semantic elements.
35New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Comparing Sections in HTML4 and
HTML5
36New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPUsing Grouping Elements
37New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPUsing Text-Level Elements
38New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Linking an HTML Document to a
Style Sheet
• 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” />
39New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Working with Character Sets
and Special Characters
• Character set is a collection of characters and
symbols rendered by the browser
• Character encoding associates each character
from a character set that can be stored and
read by a computer program
• Character entity reference is also used to
insert a special symbol using the syntax
&char;
where char is the character’s entity reference
40New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPWorking with Inline Images
• To support embedded content, content
imported from another resource, HTML
provides embedded elements
• Inline images are images that are placed like
text-level elements in line with the
surrounding content
• To embed an inline image into the document,
use
<img src=“file” alt=“text” />
41New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPWorking with Lists
• List is a type of grouping element
• Ordered lists are used for items that follow
some defined sequential order, such as items
arranged alphabetically or numerically
• Unordered lists are used for lists in which the
items have no sequential order
• Description lists contain a list of terms and
matching descriptions
• Navigation lists are unordered lists of
hypertext links placed within the nav element
42New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPWorking with Hypertext Links
• Hypertext is created by enclosing content within
a set of opening and closing <a> tags like:
<a href=“url”>content</a>
where url is Uniform Resource Locator (URL)
• Inline images can also be turned into links by
enclosing the image within opening and closing
<a> tags
<a href=“ct_start.html”><img
src=“ct_logo2.png” /></a>
43New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Linking to the Internet and Other
Resources
• The type of resource that a hypertext link
points to is indicated by the link’s URL
scheme: location
where scheme indicates the resource type
and location provides the resource
• Protocol is a set of rules defining how
information is passed between two devices
44New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXP
Linking to the Internet and Other
Resources (continued)
45New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPLinking to a Web Resource
• Links to Web resources have a general
structure like:
http://server/path/filename#id
where server is the name of the web server
hosting the resource, path is the path to the
file on that server, filename is the name of
the file, and if necessary, id is the name of an
id within a file
46New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPLinking to an E-Mail Address
• E-mail address can be turned into a hypertext
link using the URL:
mailto : address
47New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
XPXPXPXPXPLinking to a Phone Number
• Many developers include links to phone
numbers for their company’s customer service
or help line
• The URL for a phone link is
tel : phone
48New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition

More Related Content

What's hot

Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
shan km
 
Web technologies lesson 1
Web technologies   lesson 1Web technologies   lesson 1
Web technologies lesson 1nhepner
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
www.netgains.org
 
Xml
XmlXml
Web Standards
Web StandardsWeb Standards
Web Standards
ChrisF1502010
 
Html links
Html linksHtml links
Html links
JayjZens
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
Singsys Pte Ltd
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New Features
Ata Ebrahimi
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Gil Fink
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
JayjZens
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
satvirsandhu9
 
Html form tag
Html form tagHtml form tag
Html form tag
shreyachougule
 
Html 5 Features And Benefits
Html 5 Features And Benefits  Html 5 Features And Benefits
Html 5 Features And Benefits
Software Engineering
 
Web Tech
Web TechWeb Tech
Web Tech
Rupsee
 
form view
form viewform view
form view
AbiMurugan2
 
Web application architecture
Web application architectureWeb application architecture
Web application architecture
Tejaswini Deshpande
 
HTML: Chapter 01
HTML: Chapter 01HTML: Chapter 01
HTML: Chapter 01
Steve Guinan
 

What's hot (20)

Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Web technologies lesson 1
Web technologies   lesson 1Web technologies   lesson 1
Web technologies lesson 1
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Xml
XmlXml
Xml
 
Web Standards
Web StandardsWeb Standards
Web Standards
 
Html links
Html linksHtml links
Html links
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New Features
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Html form tag
Html form tagHtml form tag
Html form tag
 
HTML5 & CSS3
HTML5 & CSS3 HTML5 & CSS3
HTML5 & CSS3
 
Html 5 Features And Benefits
Html 5 Features And Benefits  Html 5 Features And Benefits
Html 5 Features And Benefits
 
Web Tech
Web TechWeb Tech
Web Tech
 
form view
form viewform view
form view
 
Web application architecture
Web application architectureWeb application architecture
Web application architecture
 
HTML: Chapter 01
HTML: Chapter 01HTML: Chapter 01
HTML: Chapter 01
 

Similar to Chapter 1 Getting Started with HTML5

Web Design
Web DesignWeb Design
Web Design
Rawshan Ali
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1BeeNear
 
Using HTML to Create Web Pages
Using HTML to Create Web PagesUsing HTML to Create Web Pages
Using HTML to Create Web PagesBravocash
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
Rich Dron
 
9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx
clement swarnappa
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
Karthikeyan Dhanasekaran CUA
 
Chapter 9 Getting Started with JavaScript
Chapter 9 Getting Started with JavaScriptChapter 9 Getting Started with JavaScript
Chapter 9 Getting Started with JavaScript
Dr. Ahmed Al Zaidy
 
Fundamental Internet Programming.pdf
Fundamental Internet Programming.pdfFundamental Internet Programming.pdf
Fundamental Internet Programming.pdf
Ashenafi Workie
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
clement swarnappa
 
HTML Demo.ppt
HTML Demo.pptHTML Demo.ppt
HTML Demo.ppt
LimEchYrr
 
Chapter 7 Designing a web form
Chapter 7 Designing a web formChapter 7 Designing a web form
Chapter 7 Designing a web form
Dr. Ahmed Al Zaidy
 
Prueba ppt
Prueba pptPrueba ppt
Prueba ppt
Ulises Torelli
 
Html5v1
Html5v1Html5v1
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
RamyaH11
 
Chapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSSChapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSS
Dr. Ahmed Al Zaidy
 
Reengineering PDF-Based Documents Targeting Complex Software Specifications
Reengineering PDF-Based Documents Targeting Complex Software SpecificationsReengineering PDF-Based Documents Targeting Complex Software Specifications
Reengineering PDF-Based Documents Targeting Complex Software Specifications
Moutasm Tamimi
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
AliMUSSA3
 
Chapter 12 Working with Document nodes and style sheets
Chapter 12 Working with Document nodes and style sheetsChapter 12 Working with Document nodes and style sheets
Chapter 12 Working with Document nodes and style sheets
Dr. Ahmed Al Zaidy
 

Similar to Chapter 1 Getting Started with HTML5 (20)

Web Design
Web DesignWeb Design
Web Design
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1
 
Using HTML to Create Web Pages
Using HTML to Create Web PagesUsing HTML to Create Web Pages
Using HTML to Create Web Pages
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
 
9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
Chapter 9 Getting Started with JavaScript
Chapter 9 Getting Started with JavaScriptChapter 9 Getting Started with JavaScript
Chapter 9 Getting Started with JavaScript
 
Fundamental Internet Programming.pdf
Fundamental Internet Programming.pdfFundamental Internet Programming.pdf
Fundamental Internet Programming.pdf
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
HTML Demo.ppt
HTML Demo.pptHTML Demo.ppt
HTML Demo.ppt
 
Chapter 7 Designing a web form
Chapter 7 Designing a web formChapter 7 Designing a web form
Chapter 7 Designing a web form
 
Prueba ppt
Prueba pptPrueba ppt
Prueba ppt
 
Html5v1
Html5v1Html5v1
Html5v1
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
Chapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSSChapter 2 Getting Started with CSS
Chapter 2 Getting Started with CSS
 
Reengineering PDF-Based Documents Targeting Complex Software Specifications
Reengineering PDF-Based Documents Targeting Complex Software SpecificationsReengineering PDF-Based Documents Targeting Complex Software Specifications
Reengineering PDF-Based Documents Targeting Complex Software Specifications
 
Ppt ch01
Ppt ch01Ppt ch01
Ppt ch01
 
Ppt ch01
Ppt ch01Ppt ch01
Ppt ch01
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
 
Chapter 12 Working with Document nodes and style sheets
Chapter 12 Working with Document nodes and style sheetsChapter 12 Working with Document nodes and style sheets
Chapter 12 Working with Document nodes and style sheets
 

More from Dr. Ahmed Al Zaidy

Chapter 14 Exploring Object-based Programming
Chapter 14 Exploring Object-based ProgrammingChapter 14 Exploring Object-based Programming
Chapter 14 Exploring Object-based Programming
Dr. Ahmed Al Zaidy
 
Chapter 13 Programming for web forms
Chapter 13 Programming for web formsChapter 13 Programming for web forms
Chapter 13 Programming for web forms
Dr. Ahmed Al Zaidy
 
Chapter 11 Working with Events and Styles
Chapter 11 Working with Events and StylesChapter 11 Working with Events and Styles
Chapter 11 Working with Events and Styles
Dr. Ahmed Al Zaidy
 
Chapter 10 Exploring arrays, loops, and conditional statements
Chapter 10 Exploring arrays, loops, and conditional statementsChapter 10 Exploring arrays, loops, and conditional statements
Chapter 10 Exploring arrays, loops, and conditional statements
Dr. Ahmed Al Zaidy
 
Chapter 8 Enhancing a website with multimedia
Chapter 8 Enhancing a website with multimediaChapter 8 Enhancing a website with multimedia
Chapter 8 Enhancing a website with multimedia
Dr. Ahmed Al Zaidy
 
Chapter 6 Working with Tables and Columns
Chapter 6 Working with Tables and ColumnsChapter 6 Working with Tables and Columns
Chapter 6 Working with Tables and Columns
Dr. Ahmed Al Zaidy
 
Chapter 5 Designing for the mobile web
Chapter 5 Designing for the mobile webChapter 5 Designing for the mobile web
Chapter 5 Designing for the mobile web
Dr. Ahmed Al Zaidy
 
Chapter 4 Graphic Design with CSS
Chapter 4 Graphic Design with CSSChapter 4 Graphic Design with CSS
Chapter 4 Graphic Design with CSS
Dr. Ahmed Al Zaidy
 
Chapter 3 Designing a Page Layout
Chapter 3 Designing a Page LayoutChapter 3 Designing a Page Layout
Chapter 3 Designing a Page Layout
Dr. Ahmed Al Zaidy
 
Integer overflows
Integer overflowsInteger overflows
Integer overflows
Dr. Ahmed Al Zaidy
 
testing throughout-the-software-life-cycle-section-2
testing throughout-the-software-life-cycle-section-2testing throughout-the-software-life-cycle-section-2
testing throughout-the-software-life-cycle-section-2
Dr. Ahmed Al Zaidy
 
Fundamental of testing
Fundamental of testingFundamental of testing
Fundamental of testing
Dr. Ahmed Al Zaidy
 
Chapter 15 Risk Mitigation
Chapter 15 Risk MitigationChapter 15 Risk Mitigation
Chapter 15 Risk Mitigation
Dr. Ahmed Al Zaidy
 
Chapter 14 Business Continuity
Chapter 14 Business ContinuityChapter 14 Business Continuity
Chapter 14 Business Continuity
Dr. Ahmed Al Zaidy
 
Chapter 13 Vulnerability Assessment and Data Security
Chapter 13 Vulnerability Assessment and Data SecurityChapter 13 Vulnerability Assessment and Data Security
Chapter 13 Vulnerability Assessment and Data Security
Dr. Ahmed Al Zaidy
 
Chapter 12 Access Management
Chapter 12 Access ManagementChapter 12 Access Management
Chapter 12 Access Management
Dr. Ahmed Al Zaidy
 
Chapter 11 Authentication and Account Management
Chapter 11 Authentication and Account ManagementChapter 11 Authentication and Account Management
Chapter 11 Authentication and Account Management
Dr. Ahmed Al Zaidy
 
Chapter 10 Mobile and Embedded Device Security
Chapter 10 Mobile and Embedded Device Security Chapter 10 Mobile and Embedded Device Security
Chapter 10 Mobile and Embedded Device Security
Dr. Ahmed Al Zaidy
 
Chapter 9 Client and application Security
Chapter 9 Client and application SecurityChapter 9 Client and application Security
Chapter 9 Client and application Security
Dr. Ahmed Al Zaidy
 
Chapter 8 Wireless Network Security
Chapter 8 Wireless Network SecurityChapter 8 Wireless Network Security
Chapter 8 Wireless Network Security
Dr. Ahmed Al Zaidy
 

More from Dr. Ahmed Al Zaidy (20)

Chapter 14 Exploring Object-based Programming
Chapter 14 Exploring Object-based ProgrammingChapter 14 Exploring Object-based Programming
Chapter 14 Exploring Object-based Programming
 
Chapter 13 Programming for web forms
Chapter 13 Programming for web formsChapter 13 Programming for web forms
Chapter 13 Programming for web forms
 
Chapter 11 Working with Events and Styles
Chapter 11 Working with Events and StylesChapter 11 Working with Events and Styles
Chapter 11 Working with Events and Styles
 
Chapter 10 Exploring arrays, loops, and conditional statements
Chapter 10 Exploring arrays, loops, and conditional statementsChapter 10 Exploring arrays, loops, and conditional statements
Chapter 10 Exploring arrays, loops, and conditional statements
 
Chapter 8 Enhancing a website with multimedia
Chapter 8 Enhancing a website with multimediaChapter 8 Enhancing a website with multimedia
Chapter 8 Enhancing a website with multimedia
 
Chapter 6 Working with Tables and Columns
Chapter 6 Working with Tables and ColumnsChapter 6 Working with Tables and Columns
Chapter 6 Working with Tables and Columns
 
Chapter 5 Designing for the mobile web
Chapter 5 Designing for the mobile webChapter 5 Designing for the mobile web
Chapter 5 Designing for the mobile web
 
Chapter 4 Graphic Design with CSS
Chapter 4 Graphic Design with CSSChapter 4 Graphic Design with CSS
Chapter 4 Graphic Design with CSS
 
Chapter 3 Designing a Page Layout
Chapter 3 Designing a Page LayoutChapter 3 Designing a Page Layout
Chapter 3 Designing a Page Layout
 
Integer overflows
Integer overflowsInteger overflows
Integer overflows
 
testing throughout-the-software-life-cycle-section-2
testing throughout-the-software-life-cycle-section-2testing throughout-the-software-life-cycle-section-2
testing throughout-the-software-life-cycle-section-2
 
Fundamental of testing
Fundamental of testingFundamental of testing
Fundamental of testing
 
Chapter 15 Risk Mitigation
Chapter 15 Risk MitigationChapter 15 Risk Mitigation
Chapter 15 Risk Mitigation
 
Chapter 14 Business Continuity
Chapter 14 Business ContinuityChapter 14 Business Continuity
Chapter 14 Business Continuity
 
Chapter 13 Vulnerability Assessment and Data Security
Chapter 13 Vulnerability Assessment and Data SecurityChapter 13 Vulnerability Assessment and Data Security
Chapter 13 Vulnerability Assessment and Data Security
 
Chapter 12 Access Management
Chapter 12 Access ManagementChapter 12 Access Management
Chapter 12 Access Management
 
Chapter 11 Authentication and Account Management
Chapter 11 Authentication and Account ManagementChapter 11 Authentication and Account Management
Chapter 11 Authentication and Account Management
 
Chapter 10 Mobile and Embedded Device Security
Chapter 10 Mobile and Embedded Device Security Chapter 10 Mobile and Embedded Device Security
Chapter 10 Mobile and Embedded Device Security
 
Chapter 9 Client and application Security
Chapter 9 Client and application SecurityChapter 9 Client and application Security
Chapter 9 Client and application Security
 
Chapter 8 Wireless Network Security
Chapter 8 Wireless Network SecurityChapter 8 Wireless Network Security
Chapter 8 Wireless Network Security
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 

Chapter 1 Getting Started with HTML5

  • 1. HTML5, CSS3, and JavaScript 6th Edition Getting Started with HTML5 Tutorial 1 Carey
  • 2. XPXPXPXPXP Objectives • Explore the history of the web • Create the structure of an HTML document • Insert HTML elements and attributes • Insert metadata into a document • Define a page title 2New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 3. XPXPXPXPXP 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 3New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 4. XPXPXPXPXP Objectives (continued 2) • Mark content using lists • Create a navigation list • Link to files within a website with hypertext links • Link to e-mail addresses and telephone numbers 4New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 5. XPXPXPXPXP The Structure of an HTML5 Document 5New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 6. XPXPXPXPXPExploring the World Wide Web • A network is a structure in which information and services are shared among devices • A host or a node can be any device that is capable of sending and/or receiving data electronically • A server is a host that provides information or a service to other devices on the network 6New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 7. XPXPXPXPXP Exploring the World Wide Web (continued 1) • A computer or other device that receives a service is called a client • In a client-server network, clients access information provided by one or more users • Local area network - A network confined to a small geographic area, such as within a building or department 7New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 8. XPXPXPXPXP Exploring the World Wide Web (continued 2) • 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 8New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 9. XPXPXPXPXP Exploring the World Wide Web (continued 3) • 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 organization in which data sources are interconnected through a series of links or hyperlinks that users can activate to jump from one piece of information to another 9New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 10. XPXPXPXPXPWeb Pages and Web Servers • Each document on the web is referred to as a web page • Web pages are stored on web servers • Documents on the web are accessed through a software program called a web browser 10New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 11. XPXPXPXPXPIntroducing HTML • A Web page is a text file written in HTML (Hypertext Markup Language) • A markup language describes the content and structure of a document by identifying, or tagging, different document elements 11New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 12. XPXPXPXPXPThe History of HTML • In the early years of HTML, browser developers were free to define and modify the language as no rules or syntax were defined • The World Wide Web Consortium, or the W3C, created a set of standards or specifications for all browser manufacturers to follow 12New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 13. XPXPXPXPXPThe History of HTML (continued 1) • The W3C has no enforcement power • The recommendations of the W3C are usually followed since a uniform approach to Web page creation is beneficial to everyone 13New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 14. XPXPXPXPXPThe History of HTML (continued 2) • XHTML (Extensible Hypertext Markup Language) is a different version of HTML enforced with a stricter set of standards • HTML5 was developed as the de facto standard for the next generation of HTML • Older features of HTML are often deprecated, or phased out; you may need to use them if you are supporting older browsers 14New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 15. XPXPXPXPXPThe History of HTML (continued 3) 15New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 16. XPXPXPXPXPTools for Working with HTML • Basic text editor such as Windows Notepad • Other HTML editors such as Notepad++, UltraEdit, CoffeeCup, BBEdit, and ConTEXT 16New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 17. XPXPXPXPXP Tools for Working with HTML (continued) • IDE (Integrated Development Environment) - A software package that provides comprehensive coverage of all phases of the development process from writing HTML code to creating scripts for programs running on web servers • Validators are programs that test code to ensure that it contains no syntax errors 17New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 18. XPXPXPXPXPExploring an HTML File 18New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 19. XPXPXPXPXPThe Document Type Declaration • The first line in an HTML file is the document type declaration, or doctype, that indicates the type of markup language used in the document <!DOCTYPE html> 19New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 20. XPXPXPXPXPIntroducing Element Tags • Element tag is the fundamental building block in every HTML document that marks an element in the document • A starting tag (<element>) indicates the beginning of an element, while an ending tag (</element>) indicates the ending • The general syntax of a two-sided element tag is <element>content</element> 20New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 21. XPXPXPXPXP Introducing Element Tags (continued) • The following code marks a paragraph element <p>Welcome to Curbside Thai.</p> • Empty elements 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 21New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 22. XPXPXPXPXPThe Element Hierarchy <!DOCTYPE html> <html> <head> head content </head> <body> body content </body> </html> 22New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 23. XPXPXPXPXPThe Element Hierarchy (continued) • An HTML document is divided into two main sections: the head and the body • The head element marks information about the document • The body element marks the content that will appear in the web page • The body element is always placed after the head element 23New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 24. XPXPXPXPXPIntroducing Element Attributes • Element attributes provide additional information to the browser about the purpose of the element • The general syntax of an element attribute is <element attr1=”value1” attr2=”value2” ...> content</element> where attr1, attr2, etc. are the names of attributes associated with the element and value1, value2, etc., are the attribute values 24New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 25. XPXPXPXPXPHandling White Space • 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 25New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 26. XPXPXPXPXPViewing HTML File in a Browser 26New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 27. XPXPXPXPXP Viewing HTML File in a Browser (continued) • HTML describes a document’s content and structure, but not its appearance • The actual appearance of the document is determined by style sheets 27New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 28. XPXPXPXPXPCreating the Document Head • The document head contains metadata • Metadata is the content that describes or provides information about how the document should be processed by the browser 28New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 29. XPXPXPXPXP Creating the Document Head (continued) 29New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 30. XPXPXPXPXPSetting the Page Title 30New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 31. XPXPXPXPXP Adding Metadata to the Document • Meta element is used for general lists of metadata values. The meta element structure is <meta attributes /> • Character encoding is the process by which a computer converts text into a sequence of bytes and vice versa when it stores the text and when the text is read. 31New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 32. XPXPXPXPXP Adding Metadata to the Document (continued) 32New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 33. XPXPXPXPXP Adding Comments to Your 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 33New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 34. XPXPXPXPXP Adding Comments to your Document (continued) 34New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 35. XPXPXPXPXPWriting the Page Body • HTML marks the major topical areas of a page using sectioning elements also referred to as semantic elements. 35New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 36. XPXPXPXPXP Comparing Sections in HTML4 and HTML5 36New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 37. XPXPXPXPXPUsing Grouping Elements 37New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 38. XPXPXPXPXPUsing Text-Level Elements 38New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 39. XPXPXPXPXP Linking an HTML Document to a Style Sheet • 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” /> 39New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 40. XPXPXPXPXP Working with Character Sets and Special Characters • Character set is a collection of characters and symbols rendered by the browser • Character encoding associates each character from a character set that can be stored and read by a computer program • Character entity reference is also used to insert a special symbol using the syntax &char; where char is the character’s entity reference 40New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 41. XPXPXPXPXPWorking with Inline Images • To support embedded content, content imported from another resource, HTML provides embedded elements • Inline images are images that are placed like text-level elements in line with the surrounding content • To embed an inline image into the document, use <img src=“file” alt=“text” /> 41New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 42. XPXPXPXPXPWorking with Lists • List is a type of grouping element • Ordered lists are used for items that follow some defined sequential order, such as items arranged alphabetically or numerically • Unordered lists are used for lists in which the items have no sequential order • Description lists contain a list of terms and matching descriptions • Navigation lists are unordered lists of hypertext links placed within the nav element 42New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 43. XPXPXPXPXPWorking with Hypertext Links • Hypertext is created by enclosing content within a set of opening and closing <a> tags like: <a href=“url”>content</a> where url is Uniform Resource Locator (URL) • Inline images can also be turned into links by enclosing the image within opening and closing <a> tags <a href=“ct_start.html”><img src=“ct_logo2.png” /></a> 43New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 44. XPXPXPXPXP Linking to the Internet and Other Resources • The type of resource that a hypertext link points to is indicated by the link’s URL scheme: location where scheme indicates the resource type and location provides the resource • Protocol is a set of rules defining how information is passed between two devices 44New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 45. XPXPXPXPXP Linking to the Internet and Other Resources (continued) 45New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 46. XPXPXPXPXPLinking to a Web Resource • Links to Web resources have a general structure like: http://server/path/filename#id where server is the name of the web server hosting the resource, path is the path to the file on that server, filename is the name of the file, and if necessary, id is the name of an id within a file 46New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 47. XPXPXPXPXPLinking to an E-Mail Address • E-mail address can be turned into a hypertext link using the URL: mailto : address 47New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition
  • 48. XPXPXPXPXPLinking to a Phone Number • Many developers include links to phone numbers for their company’s customer service or help line • The URL for a phone link is tel : phone 48New Perspectives on HTML5, CSS3, and JavaScript, 6th Edition

Editor's Notes

  1. Check the footer.