SlideShare a Scribd company logo
Chapter 7
Improving Web Design
with New Page Layouts
Web Design with
HTML5 & CSS3
8th Edition
• Explain when to use article, aside, and section
elements
• Define figure and figcaption elements
• Redesign wireframes for tablet and desktop
viewports
• Explain and use the opacity property
• Describe and use the text-shadow property
Chapter 7: Improving Web Design with New Page Layouts 2
Chapter Objectives
• Add a banner image to a website
• Insert and style a figure element
• Insert and style a section element
• Insert and style an article element
• Insert and style an aside element
• Create a three-column layout
• Describe and use the overflow property
Chapter 7: Improving Web Design with New Page Layouts 3
Chapter Objectives (continued)
Chapter 7: Improving Web Design with New Page Layouts 4
Using HTML5 Semantic Elements
• The article element, as described by the W3C, is
– a complete, self-contained composition in a
document, page, application, or site
– independently distributable or reusable, e.g. in
syndication
• The start and end tags of article elements are
<article> and </article>
• Content placed between these tags will appear on
a webpage as part of the article element
Chapter 7: Improving Web Design with New Page Layouts 5
Article Element
• Articles may be nested within other HTML
elements, such as the main element, the section
element, or other article elements
• Articles are commonly used to contain news
articles, blog and forum posts, or comments
Chapter 7: Improving Web Design with New Page Layouts 6
Article Element (continued 1)
Chapter 7: Improving Web Design with New Page Layouts 7
Article Element (continued 2)
• The aside element is used as a sidebar that
contains additional information about a particular
item mentioned within another element
• For example, if an article on a webpage contains a
recipe and a list of ingredients, one could include
an aside element with more information about
one of the key ingredients, such as its origin or
where to purchase it
• It can be nested within article elements or
within main or section elements
Chapter 7: Improving Web Design with New Page Layouts 8
Aside Element
Chapter 7: Improving Web Design with New Page Layouts 9
Aside Element (continued)
• The section element, as described by the W3C, is
an element that
– represents a generic section of a document or
application. Here, a section is a thematic grouping of
content. The theme of each section should be
identified as a child of the section element
– is not a generic container element. A general rule is
that the section element is appropriate only if the
element’s contents would be listed explicitly in the
document’s outline
Chapter 7: Improving Web Design with New Page Layouts 10
Section Element
• The following is an example of a several section
elements nested within an article element
<article>
<h1>Tutorials: Cooking Basics</h1>
<p>Watch our tutorials to learn
the basics of good cooking.</p>
<section>
<h1>Tutorial 1</h1>
<p>Assembling basic kitchen tools.</p>
</section>
…
</article>
Chapter 7: Improving Web Design with New Page Layouts 11
Section Element (continued 1)
Chapter 7: Improving Web Design with New Page Layouts 12
Section Element (continued 2)
• The figure element is used to group content, such
as illustrations, diagrams, and photos
• According to the W3C, the figure element
represents some flow content that is self-
contained and is typically referenced as a single
unit from the main flow of the document
• A figure element can contain one or more img
elements
Chapter 7: Improving Web Design with New Page Layouts 13
Figure and Figure Caption
Elements
• The figure element may contain an optional
figure caption element, which is used to provide a
caption for the figure element
• The start and end tags of the figure caption
element are <figcaption> and </figcaption>
Chapter 7: Improving Web Design with New Page Layouts 14
Figure and Figure Caption
Elements (continued 1)
• The following is an example of the figure
element and the figure caption element
<figure>
<figcaption>New York City
Highlights</figcaption>
<img src="ny1.jpg" alt="Statue of
Liberty">
<img src="ny2.jpg" alt="Central Park">
<img src="ny3.jpg" alt="New York at
Night">
</figure>
Chapter 7: Improving Web Design with New Page Layouts 15
Figure and Figure Caption
Elements (continued 2)
Chapter 7: Improving Web Design with New Page Layouts 16
Figure and Figure Caption
Elements (continued 3)
• A banner is a graphic that spans the width of a
webpage and usually brands a website, often by
displaying its name or an identifying image
• The CSS3 opacity property specifies the
transparency of an element
• The text-shadow property applies a shadow to
text
– h-shadow value – designates the horizontal position of
the shadow
– v-shadow value – designates the vertical position of
the shadow
Chapter 7: Improving Web Design with New Page Layouts 17
Website Layout
• An example of a style rule that applies a text
shadow to an element is shown below
h1 {
text-shadow: 0.2em 0.1em #292933;
}
In this example, a text shadow with a horizontal
position of 0.2em, a vertical position of 0.1em,
and a dark gray color is applied to an h1 element
Chapter 7: Improving Web Design with New Page Layouts 18
Website Layout (continued)
Redesigning the Home Page
19Chapter 7: Improving Web Design with New Page Layouts
Chapter 7: Improving Web Design with New Page Layouts 20
To Add a New div Element to the
Home Page
Chapter 7: Improving Web Design with New Page Layouts 21
To Add a New div Element to the
Home Page (continued)
Chapter 7: Improving Web Design with New Page Layouts 22
To Add a figure Element
to the Home Page
Chapter 7: Improving Web Design with New Page Layouts 23
To Add a figure Element
to the Home Page (continued)
Chapter 7: Improving Web Design with New Page Layouts 24
To Add New Style Rules
to the Tablet Viewport
Chapter 7: Improving Web Design with New Page Layouts 25
To Add Section Elements
to the About Us Page
Chapter 7: Improving Web Design with New Page Layouts 26
To Style the About Us Page
for a Tablet Viewport
Chapter 7: Improving Web Design with New Page Layouts 27
To Style the About Us Page
for a Tablet Viewport (continued)
Creating the Nutrition Page
28Chapter 7: Improving Web Design with New Page Layouts
• Overflow property – It is used to specify how to
manage content when it “spills over” into another
element
Chapter 7: Improving Web Design with New Page Layouts 29
Creating the Nutrition Page
(continued)
Chapter 7: Improving Web Design with New Page Layouts 30
To Create the Nutrition Page
Chapter 7: Improving Web Design with New Page Layouts 31
To Add article and aside
Elements to the Nutrition Page
Chapter 7: Improving Web Design with New Page Layouts 32
To Add article and aside Elements
to the Nutrition Page (continued 1)
Chapter 7: Improving Web Design with New Page Layouts 33
To Add article and aside Elements
to the Nutrition Page (continued 2)
Chapter 7: Improving Web Design with New Page Layouts 34
To Create a Three-Column Layout
for the Nutrition Page in a Tablet
Viewport
Chapter 7: Improving Web Design with New Page Layouts 35
To Create a Three-Column Layout
for the Nutrition Page in a Tablet
Viewport (continued)
• The main element is not in the correct area in
Figure 7–83
• The float property used within the article style
rule displaces the main element to the banner
image area
• To correct this issue, apply an overflow property
with a value of auto to the main style rule
contained within the tablet media query
– Use overflow: auto; to add a property and value
Chapter 7: Improving Web Design with New Page Layouts 36
To Apply the Overflow Property
to the main Element Style Rule
Chapter 7: Improving Web Design with New Page Layouts 37
To Apply the Overflow Property to the
main Element Style Rule (continued)
Chapter 7: Improving Web Design with New Page Layouts 38
To Style the article Element
for the Nutrition Page
Chapter 7: Improving Web Design with New Page Layouts 39
To Style the aside Element
for the Nutrition Page
Chapter 7: Improving Web Design with New Page Layouts 40
To Style the aside Element
for the Nutrition Page (continued)
Chapter 7 Complete
HTML5 & CSS3
8th Edition
Ad

More Related Content

What's hot (20)

Css selectors
Css selectorsCss selectors
Css selectors
Parth Trivedi
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
eShikshak
 
HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
Bernardo Raposo
 
Xhtml
XhtmlXhtml
Xhtml
Abdul Khan
 
Web Design Issues
Web Design IssuesWeb Design Issues
Web Design Issues
Dhrumil Panchal
 
Inserting and editing text in MS Word
Inserting and editing text in MS WordInserting and editing text in MS Word
Inserting and editing text in MS Word
ahmreenmalik
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
Doris Chen
 
Background property in css
Background property in cssBackground property in css
Background property in css
Dhruvin Nakrani
 
CSS.ppt
CSS.pptCSS.ppt
CSS.ppt
MukulSingh293955
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Seble Nigussie
 
CSS
CSSCSS
CSS
seedinteractive
 
Client side and server side scripting
Client side and server side scriptingClient side and server side scripting
Client side and server side scripting
baabtra.com - No. 1 supplier of quality freshers
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
Amit Kumar Singh
 
CSS Notes in PDF, Easy to understand. For beginner to advanced. ...
CSS Notes in PDF, Easy to understand. For beginner to advanced.              ...CSS Notes in PDF, Easy to understand. For beginner to advanced.              ...
CSS Notes in PDF, Easy to understand. For beginner to advanced. ...
syedfaisal759877
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
Madhuri Kavade
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Web Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSWeb Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSS
AnnMarie Ppl
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
Himanshu Pathak
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
Richa Singh
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 

Viewers also liked (19)

CSS3 notes
CSS3 notesCSS3 notes
CSS3 notes
Rex Wang
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
application developer
 
Intro To ECAT
Intro To ECATIntro To ECAT
Intro To ECAT
cloeven
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
application developer
 
CSS
CSSCSS
CSS
Akila Iroshan
 
Chapter 19
Chapter 19Chapter 19
Chapter 19
application developer
 
Html ppt
Html pptHtml ppt
Html ppt
Iblesoft
 
CSS - Basics
CSS - BasicsCSS - Basics
CSS - Basics
Shubham_Saurabh
 
Unit 6, Lesson 3 - Vectors
Unit 6, Lesson 3 - VectorsUnit 6, Lesson 3 - Vectors
Unit 6, Lesson 3 - Vectors
judan1970
 
Bread board
Bread boardBread board
Bread board
André Walker
 
Breadboard
BreadboardBreadboard
Breadboard
EMEC101
 
Basic css
Basic cssBasic css
Basic css
Gopinath Ambothi
 
Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
Nosheen Qamar
 
Vernier caliper
Vernier caliperVernier caliper
Vernier caliper
Abinashpapu
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline Interpolation
aiQUANT
 
Interpolation and extrapolation
Interpolation and extrapolationInterpolation and extrapolation
Interpolation and extrapolation
Aswin Pv
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
Sun Technlogies
 
Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSS
Sun Technlogies
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Ad

Similar to HTML & CSS: Chapter 07 (20)

Великолепный Gatsby.js | Odessa Frontend Meetup #19
Великолепный Gatsby.js | Odessa Frontend Meetup #19Великолепный Gatsby.js | Odessa Frontend Meetup #19
Великолепный Gatsby.js | Odessa Frontend Meetup #19
OdessaFrontend
 
Master page in Asp.net
Master page in Asp.netMaster page in Asp.net
Master page in Asp.net
RupinderjitKaur9
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
Mani Chaubey
 
It 236 it236
It 236 it236It 236 it236
It 236 it236
GOODCourseHelp
 
It 236 it236
It 236 it236It 236 it236
It 236 it236
GOODCourseHelp
 
WSS MOSS Portfolio
WSS MOSS PortfolioWSS MOSS Portfolio
WSS MOSS Portfolio
dontrellbluford
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systems
Digital Systems
 
Net4’s EasySite Builder Step By Step Guide to Create Business Website
Net4’s EasySite Builder Step By Step Guide to Create Business WebsiteNet4’s EasySite Builder Step By Step Guide to Create Business Website
Net4’s EasySite Builder Step By Step Guide to Create Business Website
Net4 India Ltd.
 
Net4’s EasySite Builder Step by Step Guide
Net4’s EasySite Builder Step by Step GuideNet4’s EasySite Builder Step by Step Guide
Net4’s EasySite Builder Step by Step Guide
Pallavi Vyas
 
Cis363 all i labs devry university
Cis363 all i labs devry universityCis363 all i labs devry university
Cis363 all i labs devry university
CIS363A
 
Cis363 all i labs devry university
Cis363 all i labs devry universityCis363 all i labs devry university
Cis363 all i labs devry university
jkkjhdy798iyi
 
Cis363 a all ilabs devry university
Cis363 a all ilabs devry universityCis363 a all ilabs devry university
Cis363 a all ilabs devry university
CIS363A
 
Cis363 a all ilabs devry university
Cis363 a all ilabs devry universityCis363 a all ilabs devry university
Cis363 a all ilabs devry university
CIS363A
 
HTML5- Create divisions in a web page
HTML5- Create divisions in a web pageHTML5- Create divisions in a web page
HTML5- Create divisions in a web page
Grayzon Gonzales, LPT
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
Dhairya Joshi
 
BI Step by Step
BI Step by StepBI Step by Step
BI Step by Step
Eduardo Castro
 
OpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containersOpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containers
Alkacon Software GmbH & Co. KG
 
Dreamweaver cs6 step by step
Dreamweaver cs6 step by stepDreamweaver cs6 step by step
Dreamweaver cs6 step by step
zoran Jelinek
 
Web 240 web240
Web 240 web240Web 240 web240
Web 240 web240
GOODCourseHelp
 
Share Point Solution Management Project Portfolio
Share Point Solution Management Project PortfolioShare Point Solution Management Project Portfolio
Share Point Solution Management Project Portfolio
guest883cb08
 
Великолепный Gatsby.js | Odessa Frontend Meetup #19
Великолепный Gatsby.js | Odessa Frontend Meetup #19Великолепный Gatsby.js | Odessa Frontend Meetup #19
Великолепный Gatsby.js | Odessa Frontend Meetup #19
OdessaFrontend
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
Mani Chaubey
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systems
Digital Systems
 
Net4’s EasySite Builder Step By Step Guide to Create Business Website
Net4’s EasySite Builder Step By Step Guide to Create Business WebsiteNet4’s EasySite Builder Step By Step Guide to Create Business Website
Net4’s EasySite Builder Step By Step Guide to Create Business Website
Net4 India Ltd.
 
Net4’s EasySite Builder Step by Step Guide
Net4’s EasySite Builder Step by Step GuideNet4’s EasySite Builder Step by Step Guide
Net4’s EasySite Builder Step by Step Guide
Pallavi Vyas
 
Cis363 all i labs devry university
Cis363 all i labs devry universityCis363 all i labs devry university
Cis363 all i labs devry university
CIS363A
 
Cis363 all i labs devry university
Cis363 all i labs devry universityCis363 all i labs devry university
Cis363 all i labs devry university
jkkjhdy798iyi
 
Cis363 a all ilabs devry university
Cis363 a all ilabs devry universityCis363 a all ilabs devry university
Cis363 a all ilabs devry university
CIS363A
 
Cis363 a all ilabs devry university
Cis363 a all ilabs devry universityCis363 a all ilabs devry university
Cis363 a all ilabs devry university
CIS363A
 
HTML5- Create divisions in a web page
HTML5- Create divisions in a web pageHTML5- Create divisions in a web page
HTML5- Create divisions in a web page
Grayzon Gonzales, LPT
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
Dhairya Joshi
 
OpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containersOpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containers
Alkacon Software GmbH & Co. KG
 
Dreamweaver cs6 step by step
Dreamweaver cs6 step by stepDreamweaver cs6 step by step
Dreamweaver cs6 step by step
zoran Jelinek
 
Share Point Solution Management Project Portfolio
Share Point Solution Management Project PortfolioShare Point Solution Management Project Portfolio
Share Point Solution Management Project Portfolio
guest883cb08
 
Ad

More from Steve Guinan (20)

Chapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and AnimationChapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and Animation
Steve Guinan
 
Chapter 17: Responsive Web Design
Chapter 17: Responsive Web DesignChapter 17: Responsive Web Design
Chapter 17: Responsive Web Design
Steve Guinan
 
Chapter 15: Floating and Positioning
Chapter 15: Floating and Positioning Chapter 15: Floating and Positioning
Chapter 15: Floating and Positioning
Steve Guinan
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
Steve Guinan
 
Chapter 8: Tables
Chapter 8: TablesChapter 8: Tables
Chapter 8: Tables
Steve Guinan
 
Chapter 14: Box Model
Chapter 14: Box ModelChapter 14: Box Model
Chapter 14: Box Model
Steve Guinan
 
Chapter 13: Colors and Backgrounds
Chapter 13: Colors and BackgroundsChapter 13: Colors and Backgrounds
Chapter 13: Colors and Backgrounds
Steve Guinan
 
Chapter 12: CSS Part 2
Chapter 12: CSS Part 2Chapter 12: CSS Part 2
Chapter 12: CSS Part 2
Steve Guinan
 
Chapter 11: Intro to CSS
Chapter 11: Intro to CSSChapter 11: Intro to CSS
Chapter 11: Intro to CSS
Steve Guinan
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web Images
Steve Guinan
 
Chapter 7: Images
Chapter 7: ImagesChapter 7: Images
Chapter 7: Images
Steve Guinan
 
HubSpot Student Instructions
HubSpot Student InstructionsHubSpot Student Instructions
HubSpot Student Instructions
Steve Guinan
 
Ch 6: Links
Ch 6: LinksCh 6: Links
Ch 6: Links
Steve Guinan
 
Ch 5: Marking up Text
Ch 5: Marking up TextCh 5: Marking up Text
Ch 5: Marking up Text
Steve Guinan
 
Ch 3: Big Concepts
Ch 3: Big ConceptsCh 3: Big Concepts
Ch 3: Big Concepts
Steve Guinan
 
Ch 2: How the Web Works
Ch 2: How the Web WorksCh 2: How the Web Works
Ch 2: How the Web Works
Steve Guinan
 
Ch 1: Getting Started
Ch 1: Getting StartedCh 1: Getting Started
Ch 1: Getting Started
Steve Guinan
 
Intro to Web Design 6e Chapter 7
Intro to Web Design 6e Chapter 7Intro to Web Design 6e Chapter 7
Intro to Web Design 6e Chapter 7
Steve Guinan
 
Intro to Web Design 6e Chapter 6
Intro to Web Design 6e Chapter 6Intro to Web Design 6e Chapter 6
Intro to Web Design 6e Chapter 6
Steve Guinan
 
Intro to Web Design 6e Chapter 5
Intro to Web Design 6e Chapter 5Intro to Web Design 6e Chapter 5
Intro to Web Design 6e Chapter 5
Steve Guinan
 
Chapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and AnimationChapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and Animation
Steve Guinan
 
Chapter 17: Responsive Web Design
Chapter 17: Responsive Web DesignChapter 17: Responsive Web Design
Chapter 17: Responsive Web Design
Steve Guinan
 
Chapter 15: Floating and Positioning
Chapter 15: Floating and Positioning Chapter 15: Floating and Positioning
Chapter 15: Floating and Positioning
Steve Guinan
 
Chapter 14: Box Model
Chapter 14: Box ModelChapter 14: Box Model
Chapter 14: Box Model
Steve Guinan
 
Chapter 13: Colors and Backgrounds
Chapter 13: Colors and BackgroundsChapter 13: Colors and Backgrounds
Chapter 13: Colors and Backgrounds
Steve Guinan
 
Chapter 12: CSS Part 2
Chapter 12: CSS Part 2Chapter 12: CSS Part 2
Chapter 12: CSS Part 2
Steve Guinan
 
Chapter 11: Intro to CSS
Chapter 11: Intro to CSSChapter 11: Intro to CSS
Chapter 11: Intro to CSS
Steve Guinan
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web Images
Steve Guinan
 
HubSpot Student Instructions
HubSpot Student InstructionsHubSpot Student Instructions
HubSpot Student Instructions
Steve Guinan
 
Ch 5: Marking up Text
Ch 5: Marking up TextCh 5: Marking up Text
Ch 5: Marking up Text
Steve Guinan
 
Ch 3: Big Concepts
Ch 3: Big ConceptsCh 3: Big Concepts
Ch 3: Big Concepts
Steve Guinan
 
Ch 2: How the Web Works
Ch 2: How the Web WorksCh 2: How the Web Works
Ch 2: How the Web Works
Steve Guinan
 
Ch 1: Getting Started
Ch 1: Getting StartedCh 1: Getting Started
Ch 1: Getting Started
Steve Guinan
 
Intro to Web Design 6e Chapter 7
Intro to Web Design 6e Chapter 7Intro to Web Design 6e Chapter 7
Intro to Web Design 6e Chapter 7
Steve Guinan
 
Intro to Web Design 6e Chapter 6
Intro to Web Design 6e Chapter 6Intro to Web Design 6e Chapter 6
Intro to Web Design 6e Chapter 6
Steve Guinan
 
Intro to Web Design 6e Chapter 5
Intro to Web Design 6e Chapter 5Intro to Web Design 6e Chapter 5
Intro to Web Design 6e Chapter 5
Steve Guinan
 

Recently uploaded (20)

Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Sugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptxSugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptx
Dr. Renu Jangid
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
Nguyen Thanh Tu Collection
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
dynastic art of the Pallava dynasty south India
dynastic art of the Pallava dynasty south Indiadynastic art of the Pallava dynasty south India
dynastic art of the Pallava dynasty south India
PrachiSontakke5
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Engage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdfEngage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdf
TechSoup
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Link your Lead Opportunities into Spreadsheet using odoo CRM
Link your Lead Opportunities into Spreadsheet using odoo CRMLink your Lead Opportunities into Spreadsheet using odoo CRM
Link your Lead Opportunities into Spreadsheet using odoo CRM
Celine George
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
National Information Standards Organization (NISO)
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
APM Midlands Region April 2025 Sacha Hind Circulated.pdf
APM Midlands Region April 2025 Sacha Hind Circulated.pdfAPM Midlands Region April 2025 Sacha Hind Circulated.pdf
APM Midlands Region April 2025 Sacha Hind Circulated.pdf
Association for Project Management
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Sugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptxSugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptx
Dr. Renu Jangid
 
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
Nguyen Thanh Tu Collection
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
dynastic art of the Pallava dynasty south India
dynastic art of the Pallava dynasty south Indiadynastic art of the Pallava dynasty south India
dynastic art of the Pallava dynasty south India
PrachiSontakke5
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Engage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdfEngage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdf
TechSoup
 
Link your Lead Opportunities into Spreadsheet using odoo CRM
Link your Lead Opportunities into Spreadsheet using odoo CRMLink your Lead Opportunities into Spreadsheet using odoo CRM
Link your Lead Opportunities into Spreadsheet using odoo CRM
Celine George
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 

HTML & CSS: Chapter 07

  • 1. Chapter 7 Improving Web Design with New Page Layouts Web Design with HTML5 & CSS3 8th Edition
  • 2. • Explain when to use article, aside, and section elements • Define figure and figcaption elements • Redesign wireframes for tablet and desktop viewports • Explain and use the opacity property • Describe and use the text-shadow property Chapter 7: Improving Web Design with New Page Layouts 2 Chapter Objectives
  • 3. • Add a banner image to a website • Insert and style a figure element • Insert and style a section element • Insert and style an article element • Insert and style an aside element • Create a three-column layout • Describe and use the overflow property Chapter 7: Improving Web Design with New Page Layouts 3 Chapter Objectives (continued)
  • 4. Chapter 7: Improving Web Design with New Page Layouts 4 Using HTML5 Semantic Elements
  • 5. • The article element, as described by the W3C, is – a complete, self-contained composition in a document, page, application, or site – independently distributable or reusable, e.g. in syndication • The start and end tags of article elements are <article> and </article> • Content placed between these tags will appear on a webpage as part of the article element Chapter 7: Improving Web Design with New Page Layouts 5 Article Element
  • 6. • Articles may be nested within other HTML elements, such as the main element, the section element, or other article elements • Articles are commonly used to contain news articles, blog and forum posts, or comments Chapter 7: Improving Web Design with New Page Layouts 6 Article Element (continued 1)
  • 7. Chapter 7: Improving Web Design with New Page Layouts 7 Article Element (continued 2)
  • 8. • The aside element is used as a sidebar that contains additional information about a particular item mentioned within another element • For example, if an article on a webpage contains a recipe and a list of ingredients, one could include an aside element with more information about one of the key ingredients, such as its origin or where to purchase it • It can be nested within article elements or within main or section elements Chapter 7: Improving Web Design with New Page Layouts 8 Aside Element
  • 9. Chapter 7: Improving Web Design with New Page Layouts 9 Aside Element (continued)
  • 10. • The section element, as described by the W3C, is an element that – represents a generic section of a document or application. Here, a section is a thematic grouping of content. The theme of each section should be identified as a child of the section element – is not a generic container element. A general rule is that the section element is appropriate only if the element’s contents would be listed explicitly in the document’s outline Chapter 7: Improving Web Design with New Page Layouts 10 Section Element
  • 11. • The following is an example of a several section elements nested within an article element <article> <h1>Tutorials: Cooking Basics</h1> <p>Watch our tutorials to learn the basics of good cooking.</p> <section> <h1>Tutorial 1</h1> <p>Assembling basic kitchen tools.</p> </section> … </article> Chapter 7: Improving Web Design with New Page Layouts 11 Section Element (continued 1)
  • 12. Chapter 7: Improving Web Design with New Page Layouts 12 Section Element (continued 2)
  • 13. • The figure element is used to group content, such as illustrations, diagrams, and photos • According to the W3C, the figure element represents some flow content that is self- contained and is typically referenced as a single unit from the main flow of the document • A figure element can contain one or more img elements Chapter 7: Improving Web Design with New Page Layouts 13 Figure and Figure Caption Elements
  • 14. • The figure element may contain an optional figure caption element, which is used to provide a caption for the figure element • The start and end tags of the figure caption element are <figcaption> and </figcaption> Chapter 7: Improving Web Design with New Page Layouts 14 Figure and Figure Caption Elements (continued 1)
  • 15. • The following is an example of the figure element and the figure caption element <figure> <figcaption>New York City Highlights</figcaption> <img src="ny1.jpg" alt="Statue of Liberty"> <img src="ny2.jpg" alt="Central Park"> <img src="ny3.jpg" alt="New York at Night"> </figure> Chapter 7: Improving Web Design with New Page Layouts 15 Figure and Figure Caption Elements (continued 2)
  • 16. Chapter 7: Improving Web Design with New Page Layouts 16 Figure and Figure Caption Elements (continued 3)
  • 17. • A banner is a graphic that spans the width of a webpage and usually brands a website, often by displaying its name or an identifying image • The CSS3 opacity property specifies the transparency of an element • The text-shadow property applies a shadow to text – h-shadow value – designates the horizontal position of the shadow – v-shadow value – designates the vertical position of the shadow Chapter 7: Improving Web Design with New Page Layouts 17 Website Layout
  • 18. • An example of a style rule that applies a text shadow to an element is shown below h1 { text-shadow: 0.2em 0.1em #292933; } In this example, a text shadow with a horizontal position of 0.2em, a vertical position of 0.1em, and a dark gray color is applied to an h1 element Chapter 7: Improving Web Design with New Page Layouts 18 Website Layout (continued)
  • 19. Redesigning the Home Page 19Chapter 7: Improving Web Design with New Page Layouts
  • 20. Chapter 7: Improving Web Design with New Page Layouts 20 To Add a New div Element to the Home Page
  • 21. Chapter 7: Improving Web Design with New Page Layouts 21 To Add a New div Element to the Home Page (continued)
  • 22. Chapter 7: Improving Web Design with New Page Layouts 22 To Add a figure Element to the Home Page
  • 23. Chapter 7: Improving Web Design with New Page Layouts 23 To Add a figure Element to the Home Page (continued)
  • 24. Chapter 7: Improving Web Design with New Page Layouts 24 To Add New Style Rules to the Tablet Viewport
  • 25. Chapter 7: Improving Web Design with New Page Layouts 25 To Add Section Elements to the About Us Page
  • 26. Chapter 7: Improving Web Design with New Page Layouts 26 To Style the About Us Page for a Tablet Viewport
  • 27. Chapter 7: Improving Web Design with New Page Layouts 27 To Style the About Us Page for a Tablet Viewport (continued)
  • 28. Creating the Nutrition Page 28Chapter 7: Improving Web Design with New Page Layouts
  • 29. • Overflow property – It is used to specify how to manage content when it “spills over” into another element Chapter 7: Improving Web Design with New Page Layouts 29 Creating the Nutrition Page (continued)
  • 30. Chapter 7: Improving Web Design with New Page Layouts 30 To Create the Nutrition Page
  • 31. Chapter 7: Improving Web Design with New Page Layouts 31 To Add article and aside Elements to the Nutrition Page
  • 32. Chapter 7: Improving Web Design with New Page Layouts 32 To Add article and aside Elements to the Nutrition Page (continued 1)
  • 33. Chapter 7: Improving Web Design with New Page Layouts 33 To Add article and aside Elements to the Nutrition Page (continued 2)
  • 34. Chapter 7: Improving Web Design with New Page Layouts 34 To Create a Three-Column Layout for the Nutrition Page in a Tablet Viewport
  • 35. Chapter 7: Improving Web Design with New Page Layouts 35 To Create a Three-Column Layout for the Nutrition Page in a Tablet Viewport (continued)
  • 36. • The main element is not in the correct area in Figure 7–83 • The float property used within the article style rule displaces the main element to the banner image area • To correct this issue, apply an overflow property with a value of auto to the main style rule contained within the tablet media query – Use overflow: auto; to add a property and value Chapter 7: Improving Web Design with New Page Layouts 36 To Apply the Overflow Property to the main Element Style Rule
  • 37. Chapter 7: Improving Web Design with New Page Layouts 37 To Apply the Overflow Property to the main Element Style Rule (continued)
  • 38. Chapter 7: Improving Web Design with New Page Layouts 38 To Style the article Element for the Nutrition Page
  • 39. Chapter 7: Improving Web Design with New Page Layouts 39 To Style the aside Element for the Nutrition Page
  • 40. Chapter 7: Improving Web Design with New Page Layouts 40 To Style the aside Element for the Nutrition Page (continued)
  • 41. Chapter 7 Complete HTML5 & CSS3 8th Edition