SlideShare una empresa de Scribd logo
1 de 46
Week 02
a new layer
From Last Week
What does HTML
stand for?
What does CSS
stand for?
What is the
difference between
them?
From Last Week
What does FTP stand for?
What does HTTP stand for?
What is the difference between FTP and HTTP?
FTP and File
Structure
Relationships
Relationships
X
Relationships
Filing the Files
Root Directory
TOP LEVEL FOLDER FOR FILES
From the Root
/EMERSON/FIELDS/ASSIGNMENTS/WEEK01/
rules on files and dir
all lower case
no spaces
can use ‘-’ or ‘_’ to separate words if need be
rules in effect
/something/over there/never buy remotes/
/something/over-there/never-buy-remotes/
X
Using an FTP
Program
default file names
the first file browsers look for is ‘index’
for us we are authoring in html
so index.html will be our default file name
Home Page = index.html
default page for each directory = index.html
seeing it work
go to snarkygargoyle.com/inClass/
(don’t need the file name since we want index.html
to show)
keep directories
logical
/inClass/week02/testing/filepath/logic
Doing it ourselves
open up filezilla/cuteFTP/firefox
Break
15 minutes
Style Sheets
Ability to stylize any element of HTML (style sheet)
COLOR
BORDER
FONT
PADDING
MARGINS
POSITION
FONT-VARIANT
WIDTH
HEIGHT
Z-INDEX
Cascading
refers to the order in which the browser reads the
CSS rules
CSS
3 Primary kinds of CSS
External (separate document)
Internal (styles in the <head>)
Inline (within each element)
CSS
Browsers obey CSS in the order they read it
External CSS
Internal CSS
Inline CSS
<p style="color:blue; font-size:12px; font-family:verdana,<p style="color:blue; font-size:12px; font-family:verdana,
arial,'times new roman';">paragraph that is blue, 12px andarial,'times new roman';">paragraph that is blue, 12px and
verdana</p>verdana</p>
So Cascading
means
External style sheet says all P tags are blue
Internal style sheet says all P tags are green
Inline style tag says the p tag is red
the p tag is red
IF:
THEN:
Inline CSS
To assign styles to an element inline, we use an
attribute called style
Attribute
<p<p stylestyle="color:blue;">paragraph that is blue</p>="color:blue;">paragraph that is blue</p>
Property
<p<p stylestyle="="colorcolor:blue;">paragraph that is blue</p>:blue;">paragraph that is blue</p>
Value
<p<p stylestyle="color:="color:blueblue;">paragraph that is blue</p>;">paragraph that is blue</p>
Selector
<<pp stylestyle="color:blue;">paragraph that is blue</p>="color:blue;">paragraph that is blue</p>
Declaration
<<pp stylestyle="="color:bluecolor:blue;">paragraph that is blue</p>;">paragraph that is blue</p>
CSS to learn
http://www.bostonshaker.com/students/css-examples.html
2 new tags
<strong>stuff</strong>
<em>more stuff</em>
MAKES THINGS BOLD, IMPORTANT
MAKES THINGS ITALICS (EMPHASIZE)
Lets Practice
To the Text Editor Robin!
The Box Model
The ability to control block level elements with a
series of layout controls
PADDING BORDER MARGIN
Box Model
PADDING BORDER MARGIN
Box Model
<p style=”border: 1px black solid; padding:2px; margin:15px;”>
some stuff in here
</p>
PADDING
BORDER
MARGIN
Box Model
But Jason, boxes have 4 sides, what about
different values?
padding: 5px;
padding: 5px 10px;
padding: 3px 5px 10px 2px;
ALL SIDES ARE EQUAL
TOP/BOTTOM FIRST THEN LEFT/RIGHT
TOP RIGHT BOTTOM LEFT
SAME LOGIC WITH ‘MARGIN’
Box Model
Borders are a little different
border: 1px;
border: 1px red;
border: 1px red solid;
YOU SET WIDTH, BROWSER ASSUMES
WIDTH, COLOR, BROWSER ASSUMES
YOU GAVE THE BROWSER ALL
VARIABLES
LONG HAND IS USING ‘BORDER-COLOR’ | ‘BORDER-WIDTH’ | ‘BORDER-STYLE’
Inheritance
elements inside of other elements will inherit its
values unless you tell it otherwise
<p style=”color:red”>
<strong>some stuff in here</strong>
</p>
<p style=”color:red”>
<strong style=”color:blue;”>some stuff in here</strong>
</p>
Lets rock...
Anchors
making links uses a tag called the anchor
<a></a>
Anchors
the anchor tag also uses an attribute
href
HYPERTEXT REFERENCE
Anchors
the attribute ‘href’ needs a definition, no?
href=”http://www.google.com”
WHEN YOU USE AN ‘HTTP’ REFERENCE YOU ARE CREATING AN ABSOLUTE LINK.
THERE IS ANOTHER TYPE OF LINK CALLED ‘RELATIVE’ - COMING SOON
Anchors
put it all together
<a href=”http://www.google.com”>google</a>

Más contenido relacionado

Destacado

Proceedings of the National Conference on Emerging Trends & Techniques for El...
Proceedings of the National Conference on Emerging Trends & Techniques for El...Proceedings of the National Conference on Emerging Trends & Techniques for El...
Proceedings of the National Conference on Emerging Trends & Techniques for El...Bhojaraju Gunjal
 
KNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATES
KNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATESKNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATES
KNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATESBhojaraju Gunjal
 
INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...
INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...
INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...Bhojaraju Gunjal
 
Knowledge Organisation Systems in ETDs: A Comparative Study
Knowledge Organisation Systems in ETDs: A Comparative StudyKnowledge Organisation Systems in ETDs: A Comparative Study
Knowledge Organisation Systems in ETDs: A Comparative StudyBhojaraju Gunjal
 
Information Storage and Retrieval : A Case Study
Information Storage and Retrieval : A Case StudyInformation Storage and Retrieval : A Case Study
Information Storage and Retrieval : A Case StudyBhojaraju Gunjal
 
Cordless Phone Concept
Cordless Phone ConceptCordless Phone Concept
Cordless Phone ConceptHuu Huy
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Melbourne Trip
Melbourne TripMelbourne Trip
Melbourne TripHuu Huy
 
Youth Leaders Day
Youth Leaders DayYouth Leaders Day
Youth Leaders DayHuu Huy
 
зимородок1 супер New
зимородок1 супер Newзимородок1 супер New
зимородок1 супер NewSoldatova
 
Presentatie Psychoeducatie Maart 2007
Presentatie Psychoeducatie Maart 2007Presentatie Psychoeducatie Maart 2007
Presentatie Psychoeducatie Maart 2007chrisvanoeveren
 
Schedule Of Pokmn Tournament
Schedule Of Pokmn TournamentSchedule Of Pokmn Tournament
Schedule Of Pokmn Tournamentjunoliv
 
Bearcat Search: Implementing Federated Searching at the Newman Library
Bearcat Search: Implementing Federated Searching at the Newman LibraryBearcat Search: Implementing Federated Searching at the Newman Library
Bearcat Search: Implementing Federated Searching at the Newman LibraryNewman Library
 

Destacado (15)

Proceedings of the National Conference on Emerging Trends & Techniques for El...
Proceedings of the National Conference on Emerging Trends & Techniques for El...Proceedings of the National Conference on Emerging Trends & Techniques for El...
Proceedings of the National Conference on Emerging Trends & Techniques for El...
 
KNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATES
KNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATESKNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATES
KNOWLEDGE MANAGEMENT: WHY DO WE NEED IT FOR CORPORATES
 
INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...
INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...
INFORMATION RESOURCES MANAGEMENT UNDER INDUSTRY-INSTITUTE PARTNERSHIP: A Case...
 
Knowledge Organisation Systems in ETDs: A Comparative Study
Knowledge Organisation Systems in ETDs: A Comparative StudyKnowledge Organisation Systems in ETDs: A Comparative Study
Knowledge Organisation Systems in ETDs: A Comparative Study
 
MySQL Database with phpMyAdmin
MySQL Database with  phpMyAdminMySQL Database with  phpMyAdmin
MySQL Database with phpMyAdmin
 
Information Storage and Retrieval : A Case Study
Information Storage and Retrieval : A Case StudyInformation Storage and Retrieval : A Case Study
Information Storage and Retrieval : A Case Study
 
Cordless Phone Concept
Cordless Phone ConceptCordless Phone Concept
Cordless Phone Concept
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Melbourne Trip
Melbourne TripMelbourne Trip
Melbourne Trip
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Youth Leaders Day
Youth Leaders DayYouth Leaders Day
Youth Leaders Day
 
зимородок1 супер New
зимородок1 супер Newзимородок1 супер New
зимородок1 супер New
 
Presentatie Psychoeducatie Maart 2007
Presentatie Psychoeducatie Maart 2007Presentatie Psychoeducatie Maart 2007
Presentatie Psychoeducatie Maart 2007
 
Schedule Of Pokmn Tournament
Schedule Of Pokmn TournamentSchedule Of Pokmn Tournament
Schedule Of Pokmn Tournament
 
Bearcat Search: Implementing Federated Searching at the Newman Library
Bearcat Search: Implementing Federated Searching at the Newman LibraryBearcat Search: Implementing Federated Searching at the Newman Library
Bearcat Search: Implementing Federated Searching at the Newman Library
 

Último

Social Media Marketing PPT-Includes Paid media
Social Media Marketing PPT-Includes Paid mediaSocial Media Marketing PPT-Includes Paid media
Social Media Marketing PPT-Includes Paid mediaadityabelde2
 
Unraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptxUnraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptxelizabethella096
 
Aryabhata I, II of mathematics of both.pptx
Aryabhata I, II of mathematics of both.pptxAryabhata I, II of mathematics of both.pptx
Aryabhata I, II of mathematics of both.pptxtegevi9289
 
Factors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxFactors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxVikasTiwari846641
 
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...ChesterYang6
 
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO SuccessBrighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO SuccessVarn
 
How to utilize calculated properties in your HubSpot setups
How to utilize calculated properties in your HubSpot setupsHow to utilize calculated properties in your HubSpot setups
How to utilize calculated properties in your HubSpot setupsssuser4571da
 
Branding strategies of new company .pptx
Branding strategies of new company .pptxBranding strategies of new company .pptx
Branding strategies of new company .pptxVikasTiwari846641
 
BLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly BulletinBLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly BulletinBalmerLawrie
 
Kraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationKraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationtbatkhuu1
 
Social media, ppt. Features, characteristics
Social media, ppt. Features, characteristicsSocial media, ppt. Features, characteristics
Social media, ppt. Features, characteristicswasim792942
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdftbatkhuu1
 
The+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdfThe+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdfSocial Samosa
 
Labour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxLabour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxelizabethella096
 

Último (20)

Social Media Marketing PPT-Includes Paid media
Social Media Marketing PPT-Includes Paid mediaSocial Media Marketing PPT-Includes Paid media
Social Media Marketing PPT-Includes Paid media
 
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
 
BUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAIL
BUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAILBUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAIL
BUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAIL
 
Unraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptxUnraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptx
 
Aryabhata I, II of mathematics of both.pptx
Aryabhata I, II of mathematics of both.pptxAryabhata I, II of mathematics of both.pptx
Aryabhata I, II of mathematics of both.pptx
 
No Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found OnlineNo Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found Online
 
Factors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxFactors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptx
 
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
 
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO SuccessBrighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
 
Creator Influencer Strategy Master Class - Corinne Rose Guirgis
Creator Influencer Strategy Master Class - Corinne Rose GuirgisCreator Influencer Strategy Master Class - Corinne Rose Guirgis
Creator Influencer Strategy Master Class - Corinne Rose Guirgis
 
How to Create a Social Media Plan Like a Pro - Jordan Scheltgen
How to Create a Social Media Plan Like a Pro - Jordan ScheltgenHow to Create a Social Media Plan Like a Pro - Jordan Scheltgen
How to Create a Social Media Plan Like a Pro - Jordan Scheltgen
 
How to utilize calculated properties in your HubSpot setups
How to utilize calculated properties in your HubSpot setupsHow to utilize calculated properties in your HubSpot setups
How to utilize calculated properties in your HubSpot setups
 
Branding strategies of new company .pptx
Branding strategies of new company .pptxBranding strategies of new company .pptx
Branding strategies of new company .pptx
 
BLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly BulletinBLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
 
Kraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationKraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentation
 
Social media, ppt. Features, characteristics
Social media, ppt. Features, characteristicsSocial media, ppt. Features, characteristics
Social media, ppt. Features, characteristics
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdf
 
The+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdfThe+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdf
 
Labour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxLabour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptx
 
Brand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLaneBrand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLane
 

Website Design, Development & Maintenance | Foundations | Week 02

Notas del editor

  1. Hyper text markup language cascading style sheets HTML is the framework and CSS is the pretty layer
  2. File Transfer Protocol Hypertext transfer protocol FTP puts and gets files with no care to their type HTTP requests files and attempts to read them
  3. - FTP lets us put files from our local machines to a remote lcoation on another server - we will want to organize our files locally so we can simply mirror them with our host
  4. - all HTML documents have a relationship to the website on which they live - like a word document, where you place a photo in the document
  5. - then you move the file and the image dissapears? - you changed the location of the document and the image, so the relationship broke
  6. - we will be building relationships with all sorts of docuements - html -css -images - other file types.
  7. - servers are just big computers, so we use the same logic - if we want the files to retain their relationship we must have them mirrored - FTP lets us move the files from our local machine to the server and preserve the organization of those files
  8. - the folder structure on our servers is called the ‘root directory’ - root is where we can begin placing our files
  9. - when you see a URL you are essentially seeing a window into their file system - directories are designated with a ‘/’ - when you type in just a URL you are asking for a designated file at the ‘root’ level 1.File paths are based on your own naming convention – so they should make sense Since files paths also are visible to the user in many cases they should be friendly too
  10. 1.So how does FTP work? a.Open up Filezilla b.Set up site c.Typically an FTP program will offer you two windows i.One for your local machine ii.One for the remote server d.These are the files that users request via their browser e.On my site you can see a number of different directories i.To see whats in one all you need to do is type it in after bostonshaker.com/ ii.Lets see whats in the student folder – what would you type in? iii.Anything strange about the end of this URL? 1.How does the browser know what file to present to you? 2.Does student/easy.html work? 3.Why not?
  11. a.All servers are set up by a server administrator – not us b.You can configure the server to look for a particular file when a directory is requested c.Most servers look for an index file or a home file i.Index.asp, .html, .php ii.Home.asp .html, .php d.For my host (and most likely) index.html will be the default – so that’s what I named my document
  12. 1.So lets do some FTP our selves 2.Got your own computer? Install Filezilla 3.Using the lab machine? Try Cute FTP or just pay attention 4.Get out the FTP information from your hosting package 5.Start your FTP engines Set up account Connect Move a file over Highlight lower case no spaces Suggest architecture for organizing their sites Express importance to keeping local files and remote files mirrored so what works on locally will work remotely
  13. css is a secondary layer of code that helps HTML look good you can use different defining terms like these to tell the HTML what to do
  14. cascading refers to the order of hierarchy and control the styles follow - this is in case there is conflict - we have a way of resolving
  15. when you define styles inline the selector is by default the tag in which you are defining the style, but we will need to retain the selector when we elevate our CSS to internal or external
  16. when you have a selector, a property and a value - you have made a declaration.
  17. - consolidate your definitions and you will save time and energy - we don’t have the time to go over all the values, but the bible has it
  18. try some nesting and inheritance samples and also box model items