SlideShare a Scribd company logo
4
Most read
13
Most read
15
Most read
Create divisions in a web page
Information and CommunicationTechnology – 8
Objectives
β€’Understand <div> tags and the new HTML semantic
tags in breaking a page into sections;
β€’Learn to place the division in a specified location within
your page; and
β€’Create a division-based layout to your web page.
GoodWeb Design Basics
HTML provides you a lot of ways to layout your page better.This lesson will
teach you how to use the <div> tag effectively.
We will also learn the HTML5 new elements to make appropriate and
meaningful divisions to your page.
HTML5- Create divisions in a web page
Good Web Design Basics
The basic idea behind good web design is to partition your web page into various sections and
columns to give it a professional appeal and to make it more user-friendly.
β€’ Creating a template that you can use on all your web pages to render a familiar look every time
a visitor goes to a different part of your site.
β€’ Creating a header section that runs across the top of your page in order to designate a
prominent place your website’s logo, slogan, graphic, etc.
β€’ Creating multiple columns that are clearly divided your webpage into various logical sections
such as:
β€’ Menu Column – should contain a list of links to other pages on your website.
β€’ Main Content Column –holds that text you are currently reading.This column should render the
main text and graphics which defines what your web page is about.
β€’ Creating a footer section to hold copy right information and important links.This help to create visual
ending to your web page and provide other important sections or link.
Advantages of Division-based Lay-out
β€’ The most popular way of structuring a web page is by creating
tables.This method of partitioning a web page has become
obsolete.
β€’ Web designers today are geared towards a more appealing wat
of separating content into sections which is called the division-
based layout.
β€’ A division-based layout defines the area of page with <div> tags.
Each part of the page you want to format separately should b a
division.
Table vs DIVs
β€’ Most websites have put their content in multiple columns.
β€’ Multiple columns can be created by using <div> or <table> elements.
β€’ Even though it is possible to create nice layouts with HTML tables, tables
were designed for presenting tabular data - NOT as a layout tool!
β€’ The div element is used for grouping HTML elements and for creating rows
and columns with the help of CSS.
Table div
HTML5- Create divisions in a web page
Advantages of the Division-based Layout
β€’ You can place layout styles externally, and then make the style changes
to many pages at once simply by modifying the style sheet.
β€’ It reduces the number of lines of code needed to produce a page.
What is <div> tag?
β€’ The <div> tag is used to establish separate divisions or areas of your
page.
β€’ The <div> tag is used to group block-elements to format them with CSS.
Masthead/header andTop
Navigation
Web Content body (can
still be divided into sub
section)
Bottom Navigation and
Copy Right Notice
If you layout the web page using <div> tags,
you can break thus page into general parts:
the masthead/header or the top navigator
bar, the content body text, the bottom
navigation bar, and the copyright notices.
Masthead is used as the title of a
newspaper or periodical as it appears
across the first page, front cover, or title
page issue.
On a website masthead represents the
graphic image or text title on the top of
the web page.
The id attribute
β€’ The id attribute can be used with any tag element. When used along with the <div>
tag, it will identify and define an area of your page.
β€’ Things to remember:
β€’ As a unique identifier, the id’s value should only be used once on your page.
β€’ Start the id value with a letter followed by any of these: letters, number digits (1-
9), dashes (-) and underscore ( _ ). Don’t use space or special characters.
β€’ The value is case-sensitive.
<div id= β€œtitle”> is different from <div id= β€œTitle”>
Syntax:
<div id =β€œmasthead”> . . . . . . . </div>
<div id =β€œtop-navigation”> . . . . . . . </div>
<div id =β€œweb-contentbody”> . . . . . . . </div>
<div id =β€œbottom-navigation”> . . . . . . . </div>
<div id =β€œcopyright-section”> . . . . . . . </div>
Creating Division to your Page
The output does not show a layout.You
can clearly see how your page is
divided into different sections.
Page Layout with <div>Tags
β€’ Putting a style in the <div> tag will allow you to set the
appearance or how your division of your web page behaves on
the screen.You can put various style such as the following:
β€’ Border
β€’ Background
β€’ Margin
β€’ Width
β€’ Height
Web Layouting with <div>Tag Styles
The <div> tag is general-purpose tag.
Though, without the id attribute of each
<div> tag, it’s hard to tell what section of
document each <div>.
The HTML5 Approach
β€’ You have learned in Lesson 4 the new Semantic tag that HTML5 offers. It
provides a set of tags that clearly defines blocks of content that make up
β€’ your webpage.
β€’ Header –This is your web titles, taglines, logo, etc.
β€’ Section –This is meant to identify substantial portions of content on the webpage.
β€’ Article –This identifies major segments of content within a web page.
β€’ Aside –This tag can be used in two different contexts.
β€’ Footer –This is for the copyright section; it can include navigational links, or contact
information.
β€’ Nav – this is intended for navigational links.
Set <aside>
β€’ The <aside> tag is a new element for HTML5.The context of this element is whether to use it inside or
outside the <article> element.
β€’ You can use the <aside> tag inside the <article> element or
β€’ You can use it outside the <article> element.
<aside> element being used as a pull-quote inside
the article.
Syntax:
<article>.
.
.
<aside>
.
.
<article>
Syntax:
<body>
<section>
<aside>. . . </aside>
<article>. . .</article>
</section>
</body>
<aside> being used outside the article.This can be
placed as another division to your page.
Positioning a Division
β€’ If you insert an additional <aside> division to your web page layout, and place your division beside
another either to the right or left, you can easily use the float style rule.
Positioning Style - if you want to place a division on a specific spot of your page, you can use the
position style rule.
There areThree possible values for a position style rule:
1. Static - An element with position: static; is not positioned in any special way; it is always
positioned according to the normal flow of the page.
2. Absolute value – position:absolute ;This value specifies a fixed position with the respect to its
parent element or tag. Usually, the <body> tag as the parent element.
3. Relative value – position: relative,This value is compensated from the element’s natural
position.Other elements on the page are not affected, even if the new position cause overlap.
4. Fixed value - position:fixed;This value specifies a fixed position within the browser window that
doesn’t change even when the display is scrolled up or down.
HTML5- Create divisions in a web page
HTML5- Create divisions in a web page
Position Style
β€’ You must use each of these values in combination with top, right, bottom,
and /or left style rule that specifies the location to which the position style
rules refers.
Example:
To position a section at exactly 100px from the top of the page and
200px from the left side, the syntax should be:
<section style=β€œtop:100px;left:200px;position:absolute”>
Horizontal Lines
β€’ Horizontal Lines can be useful as a visual dividers between sections of text in
a web page.
β€’ You can add a horizontal line after your header then add another horizontal
line before your footer.This will clearly show your division in your web page.
β€’ You can simply add the horizontal line <hr> (horizontal rule) tag where you
want the line to appear.
HTML5- Create divisions in a web page

More Related Content

PDF
Html,javascript & css
PDF
Wordpress
PDF
Introduction to Web Design
PPS
Web Site Design Principles
PPT
PPTX
Basic Wordpress PPT
PPTX
Html
ODP
Content management system
Html,javascript & css
Wordpress
Introduction to Web Design
Web Site Design Principles
Basic Wordpress PPT
Html
Content management system

What's hot (20)

PPTX
Introduction to web page
PPTX
Introduction to WordPress
PPT
Css Ppt
PPTX
Introduction to Web Development
PPTX
Website design with Wordpress ppt
PPTX
Web design principles
PPTX
Word 2007
PPT
Lecture 1 intro to web designing
PPTX
Html5 and-css3-overview
PDF
Intro to html, css & sass
PPTX
Html multimedia
PPT
Intro to Web Design
PPT
Eye catching HTML BASICS tips: Learn easily
PPSX
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
PPTX
Microsoft word tutorial
PPT
PPTX
Different Types Of Websites - With Basic Information
PPTX
How to create basic webpage
PDF
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Introduction to web page
Introduction to WordPress
Css Ppt
Introduction to Web Development
Website design with Wordpress ppt
Web design principles
Word 2007
Lecture 1 intro to web designing
Html5 and-css3-overview
Intro to html, css & sass
Html multimedia
Intro to Web Design
Eye catching HTML BASICS tips: Learn easily
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
Microsoft word tutorial
Different Types Of Websites - With Basic Information
How to create basic webpage
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ad

Similar to HTML5- Create divisions in a web page (20)

PPTX
Css training
PPTX
css v1 guru
PDF
Explain how the division element is used to setup the layout of a we.pdf
PPTX
Castro Chapter 11
PDF
Evolution of CSS
PPT
PPTX
Designing for the web - 101
PPTX
Howcssworks 100207024009-phpapp01
DOCX
PPT
How Cascading Style Sheets (CSS) Works
PPTX
web development basics tables part2
PPTX
Layouts
PDF
Intro to HTML and CSS basics
PDF
Organize Your Website With Advanced CSS Tricks
PDF
Introduction to Frontend Development - Session 2 - CSS Fundamentals
PPT
CSS Introduction
PDF
Web Layout
PDF
Style Your Site Part 1
PDF
1. Advanced Web Designing (12th IT) (1).pdf
PPTX
Markup Documents
Css training
css v1 guru
Explain how the division element is used to setup the layout of a we.pdf
Castro Chapter 11
Evolution of CSS
Designing for the web - 101
Howcssworks 100207024009-phpapp01
How Cascading Style Sheets (CSS) Works
web development basics tables part2
Layouts
Intro to HTML and CSS basics
Organize Your Website With Advanced CSS Tricks
Introduction to Frontend Development - Session 2 - CSS Fundamentals
CSS Introduction
Web Layout
Style Your Site Part 1
1. Advanced Web Designing (12th IT) (1).pdf
Markup Documents
Ad

More from Grayzon Gonzales, LPT (13)

PPTX
Lesson 2.2 Online Safety And Security.pptx
PPTX
Lesson 2.1 Rules of Netiquette.pptx
PPTX
Lesson 1 Introudctioin to ICT.pptx
PPTX
ICT as a Platform for Change
PPTX
Computer hardware servicing practice occupational health and safety procedure
PPTX
Small Basic - Branching and Loop
PPTX
HTML5 - create hyperlinks and anchors
PPTX
HTML5 - Insert images and Apply page backgrounds
PPTX
HTML5 - My First Webpage
PPTX
HTML Tags
PPTX
HTML Start Up - Introduction to HTML
PPTX
Adobe Photoshop - Brush tool
PPTX
Adobe Photoshop and its role in society ( Introduction)
Lesson 2.2 Online Safety And Security.pptx
Lesson 2.1 Rules of Netiquette.pptx
Lesson 1 Introudctioin to ICT.pptx
ICT as a Platform for Change
Computer hardware servicing practice occupational health and safety procedure
Small Basic - Branching and Loop
HTML5 - create hyperlinks and anchors
HTML5 - Insert images and Apply page backgrounds
HTML5 - My First Webpage
HTML Tags
HTML Start Up - Introduction to HTML
Adobe Photoshop - Brush tool
Adobe Photoshop and its role in society ( Introduction)

Recently uploaded (20)

PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Digital Literacy And Online Safety on internet
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
The Internet -By the Numbers, Sri Lanka Edition
Β 
PPTX
artificial intelligence overview of it and more
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Testing WebRTC applications at scale.pdf
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPT
tcp ip networks nd ip layering assotred slides
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
DOCX
Unit-3 cyber security network security of internet system
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PDF
WebRTC in SignalWire - troubleshooting media negotiation
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
international classification of diseases ICD-10 review PPT.pptx
Digital Literacy And Online Safety on internet
Introuction about WHO-FIC in ICD-10.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
The Internet -By the Numbers, Sri Lanka Edition
Β 
artificial intelligence overview of it and more
An introduction to the IFRS (ISSB) Stndards.pdf
SASE Traffic Flow - ZTNA Connector-1.pdf
Testing WebRTC applications at scale.pdf
SAP Ariba Sourcing PPT for learning material
Introuction about ICD -10 and ICD-11 PPT.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
PptxGenJS_Demo_Chart_20250317130215833.pptx
tcp ip networks nd ip layering assotred slides
introduction about ICD -10 & ICD-11 ppt.pptx
Unit-3 cyber security network security of internet system
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
WebRTC in SignalWire - troubleshooting media negotiation

HTML5- Create divisions in a web page

  • 1. Create divisions in a web page Information and CommunicationTechnology – 8
  • 2. Objectives β€’Understand <div> tags and the new HTML semantic tags in breaking a page into sections; β€’Learn to place the division in a specified location within your page; and β€’Create a division-based layout to your web page.
  • 3. GoodWeb Design Basics HTML provides you a lot of ways to layout your page better.This lesson will teach you how to use the <div> tag effectively. We will also learn the HTML5 new elements to make appropriate and meaningful divisions to your page.
  • 5. Good Web Design Basics The basic idea behind good web design is to partition your web page into various sections and columns to give it a professional appeal and to make it more user-friendly. β€’ Creating a template that you can use on all your web pages to render a familiar look every time a visitor goes to a different part of your site. β€’ Creating a header section that runs across the top of your page in order to designate a prominent place your website’s logo, slogan, graphic, etc. β€’ Creating multiple columns that are clearly divided your webpage into various logical sections such as: β€’ Menu Column – should contain a list of links to other pages on your website. β€’ Main Content Column –holds that text you are currently reading.This column should render the main text and graphics which defines what your web page is about. β€’ Creating a footer section to hold copy right information and important links.This help to create visual ending to your web page and provide other important sections or link.
  • 6. Advantages of Division-based Lay-out β€’ The most popular way of structuring a web page is by creating tables.This method of partitioning a web page has become obsolete. β€’ Web designers today are geared towards a more appealing wat of separating content into sections which is called the division- based layout. β€’ A division-based layout defines the area of page with <div> tags. Each part of the page you want to format separately should b a division.
  • 7. Table vs DIVs β€’ Most websites have put their content in multiple columns. β€’ Multiple columns can be created by using <div> or <table> elements. β€’ Even though it is possible to create nice layouts with HTML tables, tables were designed for presenting tabular data - NOT as a layout tool! β€’ The div element is used for grouping HTML elements and for creating rows and columns with the help of CSS. Table div
  • 9. Advantages of the Division-based Layout β€’ You can place layout styles externally, and then make the style changes to many pages at once simply by modifying the style sheet. β€’ It reduces the number of lines of code needed to produce a page. What is <div> tag? β€’ The <div> tag is used to establish separate divisions or areas of your page. β€’ The <div> tag is used to group block-elements to format them with CSS.
  • 10. Masthead/header andTop Navigation Web Content body (can still be divided into sub section) Bottom Navigation and Copy Right Notice
  • 11. If you layout the web page using <div> tags, you can break thus page into general parts: the masthead/header or the top navigator bar, the content body text, the bottom navigation bar, and the copyright notices. Masthead is used as the title of a newspaper or periodical as it appears across the first page, front cover, or title page issue. On a website masthead represents the graphic image or text title on the top of the web page.
  • 12. The id attribute β€’ The id attribute can be used with any tag element. When used along with the <div> tag, it will identify and define an area of your page. β€’ Things to remember: β€’ As a unique identifier, the id’s value should only be used once on your page. β€’ Start the id value with a letter followed by any of these: letters, number digits (1- 9), dashes (-) and underscore ( _ ). Don’t use space or special characters. β€’ The value is case-sensitive. <div id= β€œtitle”> is different from <div id= β€œTitle”> Syntax: <div id =β€œmasthead”> . . . . . . . </div> <div id =β€œtop-navigation”> . . . . . . . </div> <div id =β€œweb-contentbody”> . . . . . . . </div> <div id =β€œbottom-navigation”> . . . . . . . </div> <div id =β€œcopyright-section”> . . . . . . . </div>
  • 13. Creating Division to your Page The output does not show a layout.You can clearly see how your page is divided into different sections.
  • 14. Page Layout with <div>Tags β€’ Putting a style in the <div> tag will allow you to set the appearance or how your division of your web page behaves on the screen.You can put various style such as the following: β€’ Border β€’ Background β€’ Margin β€’ Width β€’ Height
  • 15. Web Layouting with <div>Tag Styles The <div> tag is general-purpose tag. Though, without the id attribute of each <div> tag, it’s hard to tell what section of document each <div>.
  • 16. The HTML5 Approach β€’ You have learned in Lesson 4 the new Semantic tag that HTML5 offers. It provides a set of tags that clearly defines blocks of content that make up β€’ your webpage. β€’ Header –This is your web titles, taglines, logo, etc. β€’ Section –This is meant to identify substantial portions of content on the webpage. β€’ Article –This identifies major segments of content within a web page. β€’ Aside –This tag can be used in two different contexts. β€’ Footer –This is for the copyright section; it can include navigational links, or contact information. β€’ Nav – this is intended for navigational links.
  • 17. Set <aside> β€’ The <aside> tag is a new element for HTML5.The context of this element is whether to use it inside or outside the <article> element. β€’ You can use the <aside> tag inside the <article> element or β€’ You can use it outside the <article> element. <aside> element being used as a pull-quote inside the article. Syntax: <article>. . . <aside> . . <article> Syntax: <body> <section> <aside>. . . </aside> <article>. . .</article> </section> </body> <aside> being used outside the article.This can be placed as another division to your page.
  • 18. Positioning a Division β€’ If you insert an additional <aside> division to your web page layout, and place your division beside another either to the right or left, you can easily use the float style rule. Positioning Style - if you want to place a division on a specific spot of your page, you can use the position style rule. There areThree possible values for a position style rule: 1. Static - An element with position: static; is not positioned in any special way; it is always positioned according to the normal flow of the page. 2. Absolute value – position:absolute ;This value specifies a fixed position with the respect to its parent element or tag. Usually, the <body> tag as the parent element. 3. Relative value – position: relative,This value is compensated from the element’s natural position.Other elements on the page are not affected, even if the new position cause overlap. 4. Fixed value - position:fixed;This value specifies a fixed position within the browser window that doesn’t change even when the display is scrolled up or down.
  • 21. Position Style β€’ You must use each of these values in combination with top, right, bottom, and /or left style rule that specifies the location to which the position style rules refers. Example: To position a section at exactly 100px from the top of the page and 200px from the left side, the syntax should be: <section style=β€œtop:100px;left:200px;position:absolute”>
  • 22. Horizontal Lines β€’ Horizontal Lines can be useful as a visual dividers between sections of text in a web page. β€’ You can add a horizontal line after your header then add another horizontal line before your footer.This will clearly show your division in your web page. β€’ You can simply add the horizontal line <hr> (horizontal rule) tag where you want the line to appear.