SlideShare a Scribd company logo
Basic HTML/CSS WebPage Part 1 - HTML
Submittedby:
Yorkiebar
Saturday,April 5, 2014 - 08:26
Language:
HTML/CSS
Introduction:
Thistutorial isgoingto be the firstof two basicparts on how to create a basic webpage withthe
essential componentsusingpure HTML and CSS.
The Structure:
Our webpage isgoingto consistof a headercoveringthe full widthof contentatthe topof the page,a
bodysectioncoveringmostof the wide fromheadertofairlyfardownthe page,a side barcontaining
widgetsonthe righthand side of the page - nexttothe mainbodysectionof the page,and a foot
coveringthe same width(andprobablyheight)asthe headersection;underneathourbodyandside bar
sections.
ThisPart:
Thispart is goingto be on the HTML (HypertextMarkupLanguage),the secondpartisgoingto be on
stylingthe componentsinCSS(Cascade Style Sheets).
Main HTML File:
Firstwe want to define abasicHTML file,itneedsthe doctype,html andbodytags...
<!DOCTYPE>
<html>
<head>
</head>
<body>
</body>
</html>
Head:
For those of you whohave notusedHTML before,the headtagsare usedto containthingslike imports,
requiresandexternal references,while the bodysection of tagsisusedtoholdthe displayandgraphics
informationsuchasthe headers,footers,images,etc.
For thispage we are goingto be usinga CSS file inthe nextpartso we'll firstinclude thatfile(it'snotyet
createdthoughbut still shouldn'tgive usanymajor,website breakingerrors)...
<head>
<link rel='stylesheet' href='style.css' type='text/css'>
</head>
We reference afile named'style.css'withinthe same directoryasthe file the code iscontainedin
(index.html).We'llcreate thisinthe nextpart.
Nextwe are goingto give our page a title,thiswill show upinthe tab/windowframe of the webpage...
<head>
<link rel='stylesheet' href='style.css' type='text/css'>
<title>My Basic Webpage</title>
</head>
Body:
Nextwe are goingto want to create the mainbodysectionof the page.We are goingto use divsas the
type of contentholdertagsfor separatingoursectionsout.Divs - or Divisions - are usedto holdfair
amountsof data, splitthemupin to easilyreadableandusable sections,aswell asbeingable tohold
otherHTML tags withinthem.
The other thingyouwill needtoknowaboutare classesandIDs. ClassesandIDs are usedinCSS to pair
the stylinggivenwithwherethe stylingshouldbe appliedtowithinthe givenHTML/Jade/PHPfiles.Any
HTML tag can have a CSS ID or Class.Classesare supposedtobe usedforstylingthatisusedmore than
once and for importantcomponentswithinfileswhile IDsare supposedtobe usedforsingularitems
that onlyexistonce withinafile - suchas an article withaspecifictitle,the idcouldbe the title because
it wouldn'tcome upagainwhereasthe classcouldbe 'article'because articleswouldbe usedmultiple
timesandtheywouldhave touse the same styling.
So firstwe move into our bodysection,betweenthe openingandclosingbodytagsandtype twonew
divs,one fora wrapperand the otherfor our header.We give themthe appropriate classnames...
<body>
<div class='wrapper'>
<div class='header'>
</div>
</div>
</body>
Next,underneaththe headerwe wanttocreate a bodysection,I've namedthe class'content'...
<body>
<div class='wrapper'>
<div class='header'>
</div>
<div class='content'>
</div>
</div>
</body>
Nowwe create a side barsection,the classname isset to 'side'...
<body>
<div class='wrapper'>
<div class='header'>
</div>
<div class='content'>
</div>
<div class='side'>
</div>
</div>
</body>
Andfinally,we create afootersectionwithaclassname of 'footer'...
<body>
<div class='wrapper'>
<div class='header'>
</div>
<div class='content'>
</div>
<div class='side'>
</div>
<div class='footer'>
</div>
</div>
</body>
We encase all of our sectionsinthe wrapperdivbecause we are goingtouse the wrapperdivtoset the
boundarieson-screenforthe restof the componentsof the webpage.
Classand ID namescan be set towhateveriseasiestforyou,the developerbutmustbe rememberedor
easilyfound/relatedtowhenusingthemlaterontostyle the elements.
NextTutorial:
Nexttutorial we are goingto be stylingthese elementsusingourstyle.cssfile whichwe will create
withinthattutorial.
Basic HTML/CSS Web Page Part 2 - CSS
Submitted by:
Yorkiebar
Sunday, April 6, 2014 - 18:43
Language:
HTML/CSS
Visitors have accessed this post 65 times.
Introduction:
This tutorial is going to be the second of two basic parts on how to create a basic web page with
the essential components using pure HTML and CSS.
The Structure:
Our web page is going to consist of a header covering the full width of content at the top of the
page, a body section covering most of the wide from header to fairly far down the page, a side
bar containing widgets on the right hand side of the page - next to the main body section of the
page, and a foot covering the same width (and probably height) as the header section;
underneath our body and side bar sections.
This Part:
The first part was on the HTML (Hypertext Markup Language), this second part is going to be on
styling the components in CSS (Cascade Style Sheets).
All Components:
First we want to ensure that all the components have our default styling instead of the browsers
default styling that the user is currently using to access the webpage. We do thsi by setting the
all components property which is a star/an asterix (*)...
1. * {
2. padding: 0px;
3. margin: 0px;
4. font-size: 18px;
5. font-color: #0a0a0a;
6. font-family: Verdana;
7. }
We give all the components a default value of no padding or margin (no white space or extra
space), and a default font size, colour and family. (Note; Colour must be spelt the american way
(color)).
We set the default properties for all the components at once because it makes it easier for us
later on without having to re-type the same property code for many different components.
HTML:
This part is not really needed but we also set the html tags to have a full 100% width of the
entire browsing window and a default height (it should stop wherever the components do)...
1. html {
2. width: 100%;
3. height: auto;
4. }
Wrapper:
Next we have the wrapper class. This wrapper class, as mentioned in the previous tutorial, is
going to set the boundaries for the rest of the components. Since we want the rest of the
components to center on the page (within reason of course), we are going to give this wrapper
class div a width of just 980px (essentially the most commonly used desktop width) and center it
in to the middle of the 100% browser width html tags...
1. .wrapper {
2. width: 980px;
3. margin: 0px auto;
4. background-color: #ccc;
5. }
We center the wrapper class by giving it a margin of '0px auto', this sets the top and bottom to
0px white space/extra space, and the left and right sides to auto - which means they have to be
the same, and are therefore centering the container.
Header:
Now we need to style the header. As you can see, we set the wrappers background colour to
hex code #ccc which is a light grey. We are going to set the header to have a width of 980px as
well, center it in the wrapper container div and give it a background colour of black...
1. .header {
2. width: 980px;
3. height: 80px;
4. background-color: black;
5. margin: 0px auto;
6. }
We also set a height property on the header class because we want to be able to see it without
content. By default, the height and width properties are set to auto which means they will only
go as big as they need to be, so since we have no content within the divs, they would not show
up at all.
Content:
Now we have the content div. Instead of giving this one a full 980px browser width of the page,
we want it to stand by the side of the side bar so we set the content to 700px width, giving
280px spare space to use.
1. .content {
2. width: 700px;
3. min-height: 450px;
4. float: left;
5. background-color: blue;
6. margin: 0px auto;
7. }
We also float the content block left which means it will go as far left as possible and other
containers have the ability to be inline with or go past it.
The background colour of this content section is blue.
Side:
The side bar fills up the rest of the space next to the content section. This section has 260px
browser width, which added with the 700px browser width of the content container, gives us a
total of 960px used giving 20px spare. So we use this 20px to separate the two sections by
giving this side bar a 20px padding on the left of it.
1. .side {
2. width: 260px;
3. min-height: 450px;
4. padding-left: 20px;
5. float: right;
6. background-color: red;
7. margin: 0px auto;
8. }
Again, we set a default minimum height, the same as the content container since we may want
them to be the same size at a minimum to make the page look like it has a nice grid like layout.
The background colour of the side bar is red.
Footer:
Finally we have the footer container, this footer has the properties we've seen in all the previous
components but there is one new one, that is 'clear: both;'.
Clear both means that the floats that occured above the section that has the clear:both section
no longer affect the components. This means that it will go with the grid like layout. Whereas if
we didn't have this clear both property on the footer, it would simply go and hide behind the
content and side bar containers - try it out, remove the line and refresh your index.html page.
1. .footer {
2. clear: both;
3. width: 980px;
4. height: 80px;
5. background-color: black;
6. margin: 0px auto;
7. }
Finished, But...
So that is the basic two part tutorial series of setting up a basic HTML and CSS webpage, but
as you can see, it has no content and doesn't look very nice. I've used the different bold colours
to easily show you exactly where the boundaries of each section begin and end.
So, I will almost definitely make another few tutorials on how to make them look nice, add
content and make them flow with each other. If you look forward to seeing them, make sure to
check my tracking on my account/profile page to see if they have been posted yet, or check out
any of my other thread posts.
Thanks for reading!

More Related Content

What's hot (11)

Designer toolkit
Designer toolkitDesigner toolkit
Designer toolkit
Harsha Nagaraj
 
Basic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligetiBasic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligeti
Naveen Kumar Veligeti
 
Chapter8
Chapter8Chapter8
Chapter8
DeAnna Gossett
 
Designer toolkit
Designer toolkitDesigner toolkit
Designer toolkit
Harsha Nagaraj
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
Ketan Raval
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
ketanraval
 
10 WordPress Theme Hacks to Improve Your Site
10 WordPress Theme Hacks to Improve Your Site10 WordPress Theme Hacks to Improve Your Site
10 WordPress Theme Hacks to Improve Your Site
Morten Rand-Hendriksen
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
Russ Weakley
 
Day of code
Day of codeDay of code
Day of code
Evan Farr
 
How to Create simple One Page site
How to Create simple One Page siteHow to Create simple One Page site
How to Create simple One Page site
Moneer kamal
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS Basics
Lukas Oppermann
 
Basic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligetiBasic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligeti
Naveen Kumar Veligeti
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
Ketan Raval
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
ketanraval
 
10 WordPress Theme Hacks to Improve Your Site
10 WordPress Theme Hacks to Improve Your Site10 WordPress Theme Hacks to Improve Your Site
10 WordPress Theme Hacks to Improve Your Site
Morten Rand-Hendriksen
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
Russ Weakley
 
How to Create simple One Page site
How to Create simple One Page siteHow to Create simple One Page site
How to Create simple One Page site
Moneer kamal
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS Basics
Lukas Oppermann
 

Viewers also liked (15)

Abbottabad State of Environment and Development Plan
Abbottabad State of Environment and Development PlanAbbottabad State of Environment and Development Plan
Abbottabad State of Environment and Development Plan
zubeditufail
 
E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...
E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...
E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...
zubeditufail
 
Manual on Labor-Management Relations: Japanese Experiences and Best Practices
Manual on Labor-Management Relations: Japanese Experiences and Best PracticesManual on Labor-Management Relations: Japanese Experiences and Best Practices
Manual on Labor-Management Relations: Japanese Experiences and Best Practices
zubeditufail
 
Ports Australia
Ports Australia Ports Australia
Ports Australia
zubeditufail
 
Chitral - Integrated Development Vision
Chitral - Integrated Development VisionChitral - Integrated Development Vision
Chitral - Integrated Development Vision
zubeditufail
 
Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)
Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)
Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)
zubeditufail
 
Sea workshop report Pakistan
Sea workshop report  PakistanSea workshop report  Pakistan
Sea workshop report Pakistan
zubeditufail
 
Simplified Resource Manual to Support Application of the Protocol on Strategi...
Simplified Resource Manual to Support Application of the Protocol on Strategi...Simplified Resource Manual to Support Application of the Protocol on Strategi...
Simplified Resource Manual to Support Application of the Protocol on Strategi...
zubeditufail
 
1725 file sea_manual
1725 file sea_manual1725 file sea_manual
1725 file sea_manual
zubeditufail
 
Zorlu pakistan eia april 2010
Zorlu pakistan eia april 2010Zorlu pakistan eia april 2010
Zorlu pakistan eia april 2010
zubeditufail
 
African Development Bank Strategic Impact Assessment Guidelines Final Report
African Development Bank Strategic Impact Assessment Guidelines Final ReportAfrican Development Bank Strategic Impact Assessment Guidelines Final Report
African Development Bank Strategic Impact Assessment Guidelines Final Report
zubeditufail
 
13ways to inspire your audience
13ways to inspire your audience13ways to inspire your audience
13ways to inspire your audience
zubeditufail
 
IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...
IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...
IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...
zubeditufail
 
Environment challanges-and-response-of-pakistan
Environment challanges-and-response-of-pakistanEnvironment challanges-and-response-of-pakistan
Environment challanges-and-response-of-pakistan
zubeditufail
 
UNECE Protocol on Strategic Environmental Assessment (SEA) - An Introduction
UNECE Protocol on Strategic Environmental Assessment (SEA) - An IntroductionUNECE Protocol on Strategic Environmental Assessment (SEA) - An Introduction
UNECE Protocol on Strategic Environmental Assessment (SEA) - An Introduction
zubeditufail
 
Abbottabad State of Environment and Development Plan
Abbottabad State of Environment and Development PlanAbbottabad State of Environment and Development Plan
Abbottabad State of Environment and Development Plan
zubeditufail
 
E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...
E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...
E book puttingthecustomer_atthecenter_accountplanningstrategies_togrowrevenue...
zubeditufail
 
Manual on Labor-Management Relations: Japanese Experiences and Best Practices
Manual on Labor-Management Relations: Japanese Experiences and Best PracticesManual on Labor-Management Relations: Japanese Experiences and Best Practices
Manual on Labor-Management Relations: Japanese Experiences and Best Practices
zubeditufail
 
Chitral - Integrated Development Vision
Chitral - Integrated Development VisionChitral - Integrated Development Vision
Chitral - Integrated Development Vision
zubeditufail
 
Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)
Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)
Brief SINDH AGRICULTURAL GROWTH PROJECT (SAGP)
zubeditufail
 
Sea workshop report Pakistan
Sea workshop report  PakistanSea workshop report  Pakistan
Sea workshop report Pakistan
zubeditufail
 
Simplified Resource Manual to Support Application of the Protocol on Strategi...
Simplified Resource Manual to Support Application of the Protocol on Strategi...Simplified Resource Manual to Support Application of the Protocol on Strategi...
Simplified Resource Manual to Support Application of the Protocol on Strategi...
zubeditufail
 
1725 file sea_manual
1725 file sea_manual1725 file sea_manual
1725 file sea_manual
zubeditufail
 
Zorlu pakistan eia april 2010
Zorlu pakistan eia april 2010Zorlu pakistan eia april 2010
Zorlu pakistan eia april 2010
zubeditufail
 
African Development Bank Strategic Impact Assessment Guidelines Final Report
African Development Bank Strategic Impact Assessment Guidelines Final ReportAfrican Development Bank Strategic Impact Assessment Guidelines Final Report
African Development Bank Strategic Impact Assessment Guidelines Final Report
zubeditufail
 
13ways to inspire your audience
13ways to inspire your audience13ways to inspire your audience
13ways to inspire your audience
zubeditufail
 
IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...
IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...
IFC - PROMOTING ENVIRONMENTAL AND SOCIAL RISK MANAGEMENT (ESRM) IN THE FINANC...
zubeditufail
 
Environment challanges-and-response-of-pakistan
Environment challanges-and-response-of-pakistanEnvironment challanges-and-response-of-pakistan
Environment challanges-and-response-of-pakistan
zubeditufail
 
UNECE Protocol on Strategic Environmental Assessment (SEA) - An Introduction
UNECE Protocol on Strategic Environmental Assessment (SEA) - An IntroductionUNECE Protocol on Strategic Environmental Assessment (SEA) - An Introduction
UNECE Protocol on Strategic Environmental Assessment (SEA) - An Introduction
zubeditufail
 
Ad

Similar to Html n css tutorial (20)

Css for Development
Css for DevelopmentCss for Development
Css for Development
tsengsite
 
Layouts
Layouts Layouts
Layouts
kjkleindorfer
 
css-tutorial
css-tutorialcss-tutorial
css-tutorial
tutorialsruby
 
css-tutorial
css-tutorialcss-tutorial
css-tutorial
tutorialsruby
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
mlincol2
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
3 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 202101053 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 20210105
John Picasso
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
Samay16
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
VARSHAKUMARI49
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS
BeckhamWee
 
Css notes
Css notesCss notes
Css notes
Computer Hardware & Trouble shooting
 
css front end development , designing web page
css front end development , designing web pagecss front end development , designing web page
css front end development , designing web page
Indu32
 
CSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easilyCSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easily
Indu32
 
Design and CSS
Design and CSSDesign and CSS
Design and CSS
nolly00
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
Chapter6
Chapter6Chapter6
Chapter6
DeAnna Gossett
 
Introduction to CSS in HTML.ppt
Introduction to CSS in HTML.pptIntroduction to CSS in HTML.ppt
Introduction to CSS in HTML.ppt
parveen837153
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
Zoltan Iszlai
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Css for Development
Css for DevelopmentCss for Development
Css for Development
tsengsite
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
mlincol2
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
3 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 202101053 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 20210105
John Picasso
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
Samay16
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS
BeckhamWee
 
css front end development , designing web page
css front end development , designing web pagecss front end development , designing web page
css front end development , designing web page
Indu32
 
CSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easilyCSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easily
Indu32
 
Design and CSS
Design and CSSDesign and CSS
Design and CSS
nolly00
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
Introduction to CSS in HTML.ppt
Introduction to CSS in HTML.pptIntroduction to CSS in HTML.ppt
Introduction to CSS in HTML.ppt
parveen837153
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
Zoltan Iszlai
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Ad

More from zubeditufail (20)

International Environmental Impact Assessment - Atkins.pdf
International Environmental Impact Assessment - Atkins.pdfInternational Environmental Impact Assessment - Atkins.pdf
International Environmental Impact Assessment - Atkins.pdf
zubeditufail
 
The Holy Quran with Easy Word Meaning
The Holy Quran with Easy Word MeaningThe Holy Quran with Easy Word Meaning
The Holy Quran with Easy Word Meaning
zubeditufail
 
Use of fungus bricks in construction sector
Use of fungus bricks in construction sectorUse of fungus bricks in construction sector
Use of fungus bricks in construction sector
zubeditufail
 
SPMC training iso 45001 awareness
SPMC training iso 45001 awarenessSPMC training iso 45001 awareness
SPMC training iso 45001 awareness
zubeditufail
 
SPMC - Pakistan training iso 14001 EMS awareness
SPMC - Pakistan training iso 14001 EMS awarenessSPMC - Pakistan training iso 14001 EMS awareness
SPMC - Pakistan training iso 14001 EMS awareness
zubeditufail
 
SPMC - Pakistan training iso 9001 QMS awareness
SPMC - Pakistan training iso 9001 QMS awarenessSPMC - Pakistan training iso 9001 QMS awareness
SPMC - Pakistan training iso 9001 QMS awareness
zubeditufail
 
SPMC - Pakistan Training Calendar 2020
SPMC - Pakistan Training Calendar 2020SPMC - Pakistan Training Calendar 2020
SPMC - Pakistan Training Calendar 2020
zubeditufail
 
ISO 9001:2015 Life Cycle
ISO 9001:2015 Life Cycle ISO 9001:2015 Life Cycle
ISO 9001:2015 Life Cycle
zubeditufail
 
CODEX HACCP Short Introduction
CODEX HACCP Short Introduction CODEX HACCP Short Introduction
CODEX HACCP Short Introduction
zubeditufail
 
Pakistan Income Tax Ordinance amendment 2016
Pakistan Income Tax Ordinance amendment 2016Pakistan Income Tax Ordinance amendment 2016
Pakistan Income Tax Ordinance amendment 2016
zubeditufail
 
Heat stroke by SPMCpk.com
Heat stroke by SPMCpk.comHeat stroke by SPMCpk.com
Heat stroke by SPMCpk.com
zubeditufail
 
APPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCE
APPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCEAPPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCE
APPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCE
zubeditufail
 
Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)
Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)
Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)
zubeditufail
 
Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...
Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...
Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...
zubeditufail
 
Ohsas 18001 self assessment checklist
Ohsas 18001 self assessment checklistOhsas 18001 self assessment checklist
Ohsas 18001 self assessment checklist
zubeditufail
 
Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...
Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...
Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...
zubeditufail
 
A global standard_for_the_identification_of_key_biodiversity_areas_final_web
A global standard_for_the_identification_of_key_biodiversity_areas_final_webA global standard_for_the_identification_of_key_biodiversity_areas_final_web
A global standard_for_the_identification_of_key_biodiversity_areas_final_web
zubeditufail
 
The Daily Dawn newspaper - millineium development goals report - Pakistan
The Daily Dawn newspaper - millineium development goals report - PakistanThe Daily Dawn newspaper - millineium development goals report - Pakistan
The Daily Dawn newspaper - millineium development goals report - Pakistan
zubeditufail
 
shehri Letter to sepa
shehri Letter to sepashehri Letter to sepa
shehri Letter to sepa
zubeditufail
 
EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...
EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...
EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...
zubeditufail
 
International Environmental Impact Assessment - Atkins.pdf
International Environmental Impact Assessment - Atkins.pdfInternational Environmental Impact Assessment - Atkins.pdf
International Environmental Impact Assessment - Atkins.pdf
zubeditufail
 
The Holy Quran with Easy Word Meaning
The Holy Quran with Easy Word MeaningThe Holy Quran with Easy Word Meaning
The Holy Quran with Easy Word Meaning
zubeditufail
 
Use of fungus bricks in construction sector
Use of fungus bricks in construction sectorUse of fungus bricks in construction sector
Use of fungus bricks in construction sector
zubeditufail
 
SPMC training iso 45001 awareness
SPMC training iso 45001 awarenessSPMC training iso 45001 awareness
SPMC training iso 45001 awareness
zubeditufail
 
SPMC - Pakistan training iso 14001 EMS awareness
SPMC - Pakistan training iso 14001 EMS awarenessSPMC - Pakistan training iso 14001 EMS awareness
SPMC - Pakistan training iso 14001 EMS awareness
zubeditufail
 
SPMC - Pakistan training iso 9001 QMS awareness
SPMC - Pakistan training iso 9001 QMS awarenessSPMC - Pakistan training iso 9001 QMS awareness
SPMC - Pakistan training iso 9001 QMS awareness
zubeditufail
 
SPMC - Pakistan Training Calendar 2020
SPMC - Pakistan Training Calendar 2020SPMC - Pakistan Training Calendar 2020
SPMC - Pakistan Training Calendar 2020
zubeditufail
 
ISO 9001:2015 Life Cycle
ISO 9001:2015 Life Cycle ISO 9001:2015 Life Cycle
ISO 9001:2015 Life Cycle
zubeditufail
 
CODEX HACCP Short Introduction
CODEX HACCP Short Introduction CODEX HACCP Short Introduction
CODEX HACCP Short Introduction
zubeditufail
 
Pakistan Income Tax Ordinance amendment 2016
Pakistan Income Tax Ordinance amendment 2016Pakistan Income Tax Ordinance amendment 2016
Pakistan Income Tax Ordinance amendment 2016
zubeditufail
 
Heat stroke by SPMCpk.com
Heat stroke by SPMCpk.comHeat stroke by SPMCpk.com
Heat stroke by SPMCpk.com
zubeditufail
 
APPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCE
APPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCEAPPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCE
APPLICATION IN FORM - I FOR PRIOR ENVIRONMENTAL CLEARANCE
zubeditufail
 
Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)
Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)
Resettlement Policy Framework - Karachi Neighborhood Improvement Project (KNIP)
zubeditufail
 
Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...
Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...
Environmental and Social Management Framework (ESMF) - Karachi Neighborhood I...
zubeditufail
 
Ohsas 18001 self assessment checklist
Ohsas 18001 self assessment checklistOhsas 18001 self assessment checklist
Ohsas 18001 self assessment checklist
zubeditufail
 
Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...
Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...
Draft2 guiding principles_and_recommendations_for_businesses_in_and_around_kb...
zubeditufail
 
A global standard_for_the_identification_of_key_biodiversity_areas_final_web
A global standard_for_the_identification_of_key_biodiversity_areas_final_webA global standard_for_the_identification_of_key_biodiversity_areas_final_web
A global standard_for_the_identification_of_key_biodiversity_areas_final_web
zubeditufail
 
The Daily Dawn newspaper - millineium development goals report - Pakistan
The Daily Dawn newspaper - millineium development goals report - PakistanThe Daily Dawn newspaper - millineium development goals report - Pakistan
The Daily Dawn newspaper - millineium development goals report - Pakistan
zubeditufail
 
shehri Letter to sepa
shehri Letter to sepashehri Letter to sepa
shehri Letter to sepa
zubeditufail
 
EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...
EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...
EIA of Engro Powergen Limited 450 MW RLNG CCPP at PQA, Karachi Sep 29, 2015 b...
zubeditufail
 

Recently uploaded (20)

How a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdf
How a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdfHow a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdf
How a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdf
mary rojas
 
Internship in South western railways on software
Internship in South western railways on softwareInternship in South western railways on software
Internship in South western railways on software
abhim5889
 
Oliveira2024 - Combining GPT and Weak Supervision.pdf
Oliveira2024 - Combining GPT and Weak Supervision.pdfOliveira2024 - Combining GPT and Weak Supervision.pdf
Oliveira2024 - Combining GPT and Weak Supervision.pdf
GiliardGodoi1
 
Topic 26 Security Testing Considerations.pptx
Topic 26 Security Testing Considerations.pptxTopic 26 Security Testing Considerations.pptx
Topic 26 Security Testing Considerations.pptx
marutnand8
 
Content Mate Web App Triples Content Managers‘ Productivity
Content Mate Web App Triples Content Managers‘ ProductivityContent Mate Web App Triples Content Managers‘ Productivity
Content Mate Web App Triples Content Managers‘ Productivity
Alex Vladimirovich
 
Micro-Metrics Every Performance Engineer Should Validate Before Sign-Off
Micro-Metrics Every Performance Engineer Should Validate Before Sign-OffMicro-Metrics Every Performance Engineer Should Validate Before Sign-Off
Micro-Metrics Every Performance Engineer Should Validate Before Sign-Off
Tier1 app
 
Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...
Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...
Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...
Prachi Desai
 
War Story: Removing Offensive Language from Percona Toolkit
War Story: Removing Offensive Language from Percona ToolkitWar Story: Removing Offensive Language from Percona Toolkit
War Story: Removing Offensive Language from Percona Toolkit
Sveta Smirnova
 
BoxLang-Dynamic-AWS-Lambda by Luis Majano.pdf
BoxLang-Dynamic-AWS-Lambda by Luis Majano.pdfBoxLang-Dynamic-AWS-Lambda by Luis Majano.pdf
BoxLang-Dynamic-AWS-Lambda by Luis Majano.pdf
Ortus Solutions, Corp
 
aswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjar
aswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjaraswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjar
aswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjar
muhammadalikhanalikh1
 
How to purchase, license and subscribe to Microsoft Azure_PDF.pdf
How to purchase, license and subscribe to Microsoft Azure_PDF.pdfHow to purchase, license and subscribe to Microsoft Azure_PDF.pdf
How to purchase, license and subscribe to Microsoft Azure_PDF.pdf
victordsane
 
Issues in AI Presentation and machine learning.pptx
Issues in AI Presentation and machine learning.pptxIssues in AI Presentation and machine learning.pptx
Issues in AI Presentation and machine learning.pptx
Jalalkhan657136
 
zOS CommServer support for the Network Express feature on z17
zOS CommServer support for the Network Express feature on z17zOS CommServer support for the Network Express feature on z17
zOS CommServer support for the Network Express feature on z17
zOSCommserver
 
AI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATION
AI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATIONAI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATION
AI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATION
miso_uam
 
Delivering More with Less: AI Driven Resource Management with OnePlan
Delivering More with Less: AI Driven Resource Management with OnePlan Delivering More with Less: AI Driven Resource Management with OnePlan
Delivering More with Less: AI Driven Resource Management with OnePlan
OnePlan Solutions
 
Facility Management Solution - TeroTAM CMMS Software
Facility Management Solution - TeroTAM CMMS SoftwareFacility Management Solution - TeroTAM CMMS Software
Facility Management Solution - TeroTAM CMMS Software
TeroTAM
 
Optimising Claims Management with Claims Processing Systems
Optimising Claims Management with Claims Processing SystemsOptimising Claims Management with Claims Processing Systems
Optimising Claims Management with Claims Processing Systems
Insurance Tech Services
 
How AI Can Improve Media Quality Testing Across Platforms (1).pptx
How AI Can Improve Media Quality Testing Across Platforms (1).pptxHow AI Can Improve Media Quality Testing Across Platforms (1).pptx
How AI Can Improve Media Quality Testing Across Platforms (1).pptx
kalichargn70th171
 
Top 10 Mobile Banking Apps in the USA.pdf
Top 10 Mobile Banking Apps in the USA.pdfTop 10 Mobile Banking Apps in the USA.pdf
Top 10 Mobile Banking Apps in the USA.pdf
LL Technolab
 
Techdebt handling with cleancode focus and as risk taker
Techdebt handling with cleancode focus and as risk takerTechdebt handling with cleancode focus and as risk taker
Techdebt handling with cleancode focus and as risk taker
RajaNagendraKumar
 
How a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdf
How a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdfHow a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdf
How a Staff Augmentation Company IN USA Powers Flutter App Breakthroughs.pdf
mary rojas
 
Internship in South western railways on software
Internship in South western railways on softwareInternship in South western railways on software
Internship in South western railways on software
abhim5889
 
Oliveira2024 - Combining GPT and Weak Supervision.pdf
Oliveira2024 - Combining GPT and Weak Supervision.pdfOliveira2024 - Combining GPT and Weak Supervision.pdf
Oliveira2024 - Combining GPT and Weak Supervision.pdf
GiliardGodoi1
 
Topic 26 Security Testing Considerations.pptx
Topic 26 Security Testing Considerations.pptxTopic 26 Security Testing Considerations.pptx
Topic 26 Security Testing Considerations.pptx
marutnand8
 
Content Mate Web App Triples Content Managers‘ Productivity
Content Mate Web App Triples Content Managers‘ ProductivityContent Mate Web App Triples Content Managers‘ Productivity
Content Mate Web App Triples Content Managers‘ Productivity
Alex Vladimirovich
 
Micro-Metrics Every Performance Engineer Should Validate Before Sign-Off
Micro-Metrics Every Performance Engineer Should Validate Before Sign-OffMicro-Metrics Every Performance Engineer Should Validate Before Sign-Off
Micro-Metrics Every Performance Engineer Should Validate Before Sign-Off
Tier1 app
 
Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...
Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...
Why Indonesia’s $12.63B Alt-Lending Boom Needs Loan Servicing Automation & Re...
Prachi Desai
 
War Story: Removing Offensive Language from Percona Toolkit
War Story: Removing Offensive Language from Percona ToolkitWar Story: Removing Offensive Language from Percona Toolkit
War Story: Removing Offensive Language from Percona Toolkit
Sveta Smirnova
 
BoxLang-Dynamic-AWS-Lambda by Luis Majano.pdf
BoxLang-Dynamic-AWS-Lambda by Luis Majano.pdfBoxLang-Dynamic-AWS-Lambda by Luis Majano.pdf
BoxLang-Dynamic-AWS-Lambda by Luis Majano.pdf
Ortus Solutions, Corp
 
aswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjar
aswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjaraswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjar
aswjkdwelhjdfshlfjkhewljhfljawerhwjarhwjkahrjar
muhammadalikhanalikh1
 
How to purchase, license and subscribe to Microsoft Azure_PDF.pdf
How to purchase, license and subscribe to Microsoft Azure_PDF.pdfHow to purchase, license and subscribe to Microsoft Azure_PDF.pdf
How to purchase, license and subscribe to Microsoft Azure_PDF.pdf
victordsane
 
Issues in AI Presentation and machine learning.pptx
Issues in AI Presentation and machine learning.pptxIssues in AI Presentation and machine learning.pptx
Issues in AI Presentation and machine learning.pptx
Jalalkhan657136
 
zOS CommServer support for the Network Express feature on z17
zOS CommServer support for the Network Express feature on z17zOS CommServer support for the Network Express feature on z17
zOS CommServer support for the Network Express feature on z17
zOSCommserver
 
AI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATION
AI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATIONAI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATION
AI-ASSISTED METAMORPHIC TESTING FOR DOMAIN-SPECIFIC MODELLING AND SIMULATION
miso_uam
 
Delivering More with Less: AI Driven Resource Management with OnePlan
Delivering More with Less: AI Driven Resource Management with OnePlan Delivering More with Less: AI Driven Resource Management with OnePlan
Delivering More with Less: AI Driven Resource Management with OnePlan
OnePlan Solutions
 
Facility Management Solution - TeroTAM CMMS Software
Facility Management Solution - TeroTAM CMMS SoftwareFacility Management Solution - TeroTAM CMMS Software
Facility Management Solution - TeroTAM CMMS Software
TeroTAM
 
Optimising Claims Management with Claims Processing Systems
Optimising Claims Management with Claims Processing SystemsOptimising Claims Management with Claims Processing Systems
Optimising Claims Management with Claims Processing Systems
Insurance Tech Services
 
How AI Can Improve Media Quality Testing Across Platforms (1).pptx
How AI Can Improve Media Quality Testing Across Platforms (1).pptxHow AI Can Improve Media Quality Testing Across Platforms (1).pptx
How AI Can Improve Media Quality Testing Across Platforms (1).pptx
kalichargn70th171
 
Top 10 Mobile Banking Apps in the USA.pdf
Top 10 Mobile Banking Apps in the USA.pdfTop 10 Mobile Banking Apps in the USA.pdf
Top 10 Mobile Banking Apps in the USA.pdf
LL Technolab
 
Techdebt handling with cleancode focus and as risk taker
Techdebt handling with cleancode focus and as risk takerTechdebt handling with cleancode focus and as risk taker
Techdebt handling with cleancode focus and as risk taker
RajaNagendraKumar
 

Html n css tutorial

  • 1. Basic HTML/CSS WebPage Part 1 - HTML Submittedby: Yorkiebar Saturday,April 5, 2014 - 08:26 Language: HTML/CSS Introduction: Thistutorial isgoingto be the firstof two basicparts on how to create a basic webpage withthe essential componentsusingpure HTML and CSS. The Structure: Our webpage isgoingto consistof a headercoveringthe full widthof contentatthe topof the page,a bodysectioncoveringmostof the wide fromheadertofairlyfardownthe page,a side barcontaining widgetsonthe righthand side of the page - nexttothe mainbodysectionof the page,and a foot coveringthe same width(andprobablyheight)asthe headersection;underneathourbodyandside bar sections. ThisPart: Thispart is goingto be on the HTML (HypertextMarkupLanguage),the secondpartisgoingto be on stylingthe componentsinCSS(Cascade Style Sheets). Main HTML File: Firstwe want to define abasicHTML file,itneedsthe doctype,html andbodytags... <!DOCTYPE> <html> <head> </head> <body> </body> </html> Head: For those of you whohave notusedHTML before,the headtagsare usedto containthingslike imports, requiresandexternal references,while the bodysection of tagsisusedtoholdthe displayandgraphics informationsuchasthe headers,footers,images,etc. For thispage we are goingto be usinga CSS file inthe nextpartso we'll firstinclude thatfile(it'snotyet createdthoughbut still shouldn'tgive usanymajor,website breakingerrors)... <head> <link rel='stylesheet' href='style.css' type='text/css'> </head> We reference afile named'style.css'withinthe same directoryasthe file the code iscontainedin (index.html).We'llcreate thisinthe nextpart. Nextwe are goingto give our page a title,thiswill show upinthe tab/windowframe of the webpage... <head> <link rel='stylesheet' href='style.css' type='text/css'> <title>My Basic Webpage</title> </head> Body: Nextwe are goingto want to create the mainbodysectionof the page.We are goingto use divsas the type of contentholdertagsfor separatingoursectionsout.Divs - or Divisions - are usedto holdfair
  • 2. amountsof data, splitthemupin to easilyreadableandusable sections,aswell asbeingable tohold otherHTML tags withinthem. The other thingyouwill needtoknowaboutare classesandIDs. ClassesandIDs are usedinCSS to pair the stylinggivenwithwherethe stylingshouldbe appliedtowithinthe givenHTML/Jade/PHPfiles.Any HTML tag can have a CSS ID or Class.Classesare supposedtobe usedforstylingthatisusedmore than once and for importantcomponentswithinfileswhile IDsare supposedtobe usedforsingularitems that onlyexistonce withinafile - suchas an article withaspecifictitle,the idcouldbe the title because it wouldn'tcome upagainwhereasthe classcouldbe 'article'because articleswouldbe usedmultiple timesandtheywouldhave touse the same styling. So firstwe move into our bodysection,betweenthe openingandclosingbodytagsandtype twonew divs,one fora wrapperand the otherfor our header.We give themthe appropriate classnames... <body> <div class='wrapper'> <div class='header'> </div> </div> </body> Next,underneaththe headerwe wanttocreate a bodysection,I've namedthe class'content'... <body> <div class='wrapper'> <div class='header'> </div> <div class='content'> </div> </div> </body> Nowwe create a side barsection,the classname isset to 'side'... <body> <div class='wrapper'> <div class='header'> </div> <div class='content'> </div> <div class='side'> </div> </div> </body> Andfinally,we create afootersectionwithaclassname of 'footer'... <body> <div class='wrapper'> <div class='header'> </div> <div class='content'> </div> <div class='side'> </div> <div class='footer'> </div> </div> </body>
  • 3. We encase all of our sectionsinthe wrapperdivbecause we are goingtouse the wrapperdivtoset the boundarieson-screenforthe restof the componentsof the webpage. Classand ID namescan be set towhateveriseasiestforyou,the developerbutmustbe rememberedor easilyfound/relatedtowhenusingthemlaterontostyle the elements. NextTutorial: Nexttutorial we are goingto be stylingthese elementsusingourstyle.cssfile whichwe will create withinthattutorial. Basic HTML/CSS Web Page Part 2 - CSS Submitted by: Yorkiebar Sunday, April 6, 2014 - 18:43 Language: HTML/CSS Visitors have accessed this post 65 times. Introduction: This tutorial is going to be the second of two basic parts on how to create a basic web page with the essential components using pure HTML and CSS. The Structure: Our web page is going to consist of a header covering the full width of content at the top of the page, a body section covering most of the wide from header to fairly far down the page, a side bar containing widgets on the right hand side of the page - next to the main body section of the page, and a foot covering the same width (and probably height) as the header section; underneath our body and side bar sections. This Part: The first part was on the HTML (Hypertext Markup Language), this second part is going to be on styling the components in CSS (Cascade Style Sheets). All Components: First we want to ensure that all the components have our default styling instead of the browsers default styling that the user is currently using to access the webpage. We do thsi by setting the all components property which is a star/an asterix (*)... 1. * { 2. padding: 0px; 3. margin: 0px; 4. font-size: 18px; 5. font-color: #0a0a0a; 6. font-family: Verdana; 7. } We give all the components a default value of no padding or margin (no white space or extra space), and a default font size, colour and family. (Note; Colour must be spelt the american way (color)). We set the default properties for all the components at once because it makes it easier for us later on without having to re-type the same property code for many different components. HTML: This part is not really needed but we also set the html tags to have a full 100% width of the entire browsing window and a default height (it should stop wherever the components do)...
  • 4. 1. html { 2. width: 100%; 3. height: auto; 4. } Wrapper: Next we have the wrapper class. This wrapper class, as mentioned in the previous tutorial, is going to set the boundaries for the rest of the components. Since we want the rest of the components to center on the page (within reason of course), we are going to give this wrapper class div a width of just 980px (essentially the most commonly used desktop width) and center it in to the middle of the 100% browser width html tags... 1. .wrapper { 2. width: 980px; 3. margin: 0px auto; 4. background-color: #ccc; 5. } We center the wrapper class by giving it a margin of '0px auto', this sets the top and bottom to 0px white space/extra space, and the left and right sides to auto - which means they have to be the same, and are therefore centering the container. Header: Now we need to style the header. As you can see, we set the wrappers background colour to hex code #ccc which is a light grey. We are going to set the header to have a width of 980px as well, center it in the wrapper container div and give it a background colour of black... 1. .header { 2. width: 980px; 3. height: 80px; 4. background-color: black; 5. margin: 0px auto; 6. } We also set a height property on the header class because we want to be able to see it without content. By default, the height and width properties are set to auto which means they will only go as big as they need to be, so since we have no content within the divs, they would not show up at all. Content: Now we have the content div. Instead of giving this one a full 980px browser width of the page, we want it to stand by the side of the side bar so we set the content to 700px width, giving 280px spare space to use. 1. .content { 2. width: 700px; 3. min-height: 450px; 4. float: left; 5. background-color: blue; 6. margin: 0px auto; 7. } We also float the content block left which means it will go as far left as possible and other containers have the ability to be inline with or go past it. The background colour of this content section is blue.
  • 5. Side: The side bar fills up the rest of the space next to the content section. This section has 260px browser width, which added with the 700px browser width of the content container, gives us a total of 960px used giving 20px spare. So we use this 20px to separate the two sections by giving this side bar a 20px padding on the left of it. 1. .side { 2. width: 260px; 3. min-height: 450px; 4. padding-left: 20px; 5. float: right; 6. background-color: red; 7. margin: 0px auto; 8. } Again, we set a default minimum height, the same as the content container since we may want them to be the same size at a minimum to make the page look like it has a nice grid like layout. The background colour of the side bar is red. Footer: Finally we have the footer container, this footer has the properties we've seen in all the previous components but there is one new one, that is 'clear: both;'. Clear both means that the floats that occured above the section that has the clear:both section no longer affect the components. This means that it will go with the grid like layout. Whereas if we didn't have this clear both property on the footer, it would simply go and hide behind the content and side bar containers - try it out, remove the line and refresh your index.html page. 1. .footer { 2. clear: both; 3. width: 980px; 4. height: 80px; 5. background-color: black; 6. margin: 0px auto; 7. } Finished, But... So that is the basic two part tutorial series of setting up a basic HTML and CSS webpage, but as you can see, it has no content and doesn't look very nice. I've used the different bold colours to easily show you exactly where the boundaries of each section begin and end. So, I will almost definitely make another few tutorials on how to make them look nice, add content and make them flow with each other. If you look forward to seeing them, make sure to check my tracking on my account/profile page to see if they have been posted yet, or check out any of my other thread posts. Thanks for reading!