SlideShare a Scribd company logo
Sponsored by Upsilon Pi Epsilon The Computer Science Honors Society
Upsilon Pi Epsilon UPE is the Computer Science Honors Society. It is a national honors society, with over 120 University Chapters around the country. “New” to USC
Workshop series around web 2.0 technologies This is the first of many Future topics will include: Javascript, PHP, Ruby on Rails, and more.  Send us your ideas!
What is Web 2.0?
 
“Web 2.0, a phrase coined by O'Reilly Media in 2004, refers to a supposed second-generation of Internet-based services — such as social networking sites, wikis, communication tools, and folksonomies — that let people collaborate and share information online in previously unavailable ways.” - Wikipedia (a Web 2.0 organization)
Why should I care?
 
What We’ll Cover Today HTML (Hypertext Markup Language) DOM (Document Object Model - briefly) CSS (Cascading Style Sheets)
HTML
History of HTML Tim Berners-Lee created first HTML version in the late 1980s (as a subset of SGML) Needed a simple way to share research among colleagues; piggy backed off newly evolving Internet (previously just text) HTML spread as multiple proprietary versions; in 1993 the IETF published a working draft of the first “official” HTML
History of HTML Part 2 Simplicity made things easy for people new to computers and publishing Also left the “code” a mess, leaving every browser to handle different mistakes in its own way Soon, the World Wide Web Consortium (W3C) was created to draft a set of standards for all web browsers to adhere to
History of HTML Part 3 Features were added to HTML very quickly: tables, colors, backgrounds, fonts, etc. Web sites started becoming very complex It became impossible to manage all the HTML tags needed to style the content on multiple sites, code bases starting becoming huge, tables were being used to make better designs... things got ugly.
History of HTML Part 4 We needed a solution to this problem, and that solution was CSS. With the revolution of Cascading Style Sheets, HTML (and later XHTML) became about describing content, not presentation The look of a web page (the presentation) was left entirely to style sheets, which could be common to entire sites
Setting up a web “Presence” No point to a website if no one else can see it... USC lets every student create a web presence on the aludra.usc.edu server If you don't have it setup yet: telnet aludra.usc.edu type requestwww follow the instructions
Setup Part 2 To see your web presence, point browser to http://www-scf.usc.edu/~username To upload files to your web account, use an FTP client You can download COREFTP(PC) or Fetch(Mac) from usc.edu/software or poke around your PC for an app with "FTP" in title Login to aludra.usc.edu with usual USCWeb login Upload files to public_html folder
HTML: What is it? HTML stands for Hyper Text Markup Language An HTML file is a text file containing small markup tags The markup tags tell the Web browser how to display the page An HTML file can be created using a simple text editor or a WYSIWIG editor
Hello World! <html> <head> <title>Hello World!</title> </head> <body> Hello World! </body> </html>
HTML Basics:  Tags/Attributes Tags/Attributes HTML tags are used to mark-up HTML elements Tags are surrounded by the two characters < and >, which are called angle brackets Tags normally come in pairs like <b> and </b>.  The text between the start and end tags is the element content Tags are not case sensitive, <b> means the same as <B>, but use lowercase: you’ll find out its better Tags often have attributes, which gives the browser additional information about displaying the element Attributes come in name-value pairs, with the value in double or single quotes (e.g. <img width=”100px”>)
HTML Basics: Formatting Tags Formatting Tags In HTML, formatting is not based on whitespace! (example) Use tags to format text: <p></p> - paragraph tag, optional align attribute <br> - line break tag <b></b> or <strong></strong> - boldface tag, <strong> is more standards-compliant now <i></i> or <em></em> - italics tag, <em> is more standards-compliant now <ul><li>blabla 1</li> .. </ul> - unordered list tag, creates bulleted list, can be nested <ol><li>blabla 1</li> .. </ol> - ordered list tag, creates numbered list, can be nested
HTML Basics:  Hyperlinks & Images Hyperlinks & Images Anchor tag can be used to create hyperlink or define an anchor within a page <a href=&quot; http://www.google.com &quot;>google</a> - creates hyperlink, optional target, title attributes, URL can be relative or absolute <a name=&quot;section2&quot;></a> - creates anchor in page <a href=&quot;index.html#section2&quot;>section2</a> - to link to in-page anchor <img src=&quot;URL.gif&quot;> - creates image, optional width/height attributes, alt attribute to provide alternate text, align attribute to specify around-text wrapping, border attribute Image tags can be nested in hyperlink tags to create hyperlinked images
HTML Basics: Tables/Frames Both of these are considered evil nowadays. Before <DIVS> were introduced, people used tables to layout websites (e.g. multi-column website) The HTML for tables is obtuse and prone to corruptibility (just try looking at the source of a fully tabled website) But it exists...and could be occasionally useful <table></table> - creates table, optional width/height/align/bgcolor attributes <tr></tr> - creates table row with the same attribute options <td></td> - creates table cell with the same attribute options Frames: web-designers used to use frames to separate the navigation page from the site's content (e.g. all CS websites!) Frames are generally a bad idea...  http://www.karlcore.com/articles/article.php?id=2  So we won't tell you tags for them.
HTML Basics: Forms Very common on the web as they provide interactivity <form></form> - defines form, optional method/name/action attributes to tell browser where to send results when submit pressed <input></input> - generic input tag, used always with type attribute to specify type (checkbox, radio, text, submit), also optional name/value attributes <textarea></textarea> - multi-line text area input, optional rows/cols attributes <select> <option>op1</option> ... </select> - creates combo/dropdown box
HTML Basics: Colors HTML Basics: Color Color is used extensively in HTML: text color, background color, border color, link color, hr color, etc Only 16 color names are approved by W3C - aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow All other colors should be referred to by Hexadecimal codes (#RRGGBB) Always pick a pleasing color scheme for your site Color references:   http://w3schools.com/html/html_colors.asp   http://www.degraeve.com/color-palette/   http://wellstyled.com/tools/colorscheme2/index-en.html   http://wellstyled.com/tools/colorscheme2/index-en.html   http://www.siteprocentral.com/cgi-bin/feed/feed.cgi
HTML Basics: References http://w3schools.com/html/default.asp http://w3schools.com/html/html_quick.asp http://webmonkey.com/webmonkey/reference/html_cheatsheet/ http://www.htmlcodetutorial.com / http://validator.w3.org /
Standards Read the W3C Specs! Search them! Use the W3C Validator! Write valid XHTML Strict/Transitional (or HTML 4.1) whenever possible (always!) Separate content and presentation: use style sheets to change the look of your site!
Document Object Model A graph representation of the structure of an HTML/XHTML document An API for accessing and interacting with the graph and its elements The key ingredient to DHTML, AJAX, and this whole Web 2.0 thing Visualizer:  http://www.aharef.info/static/htmlgraph/
CSS
Cascading Style Sheets A standard method of applying style and appearance information to text and other elements of a web page Cascading means that properties “cascade” down through all child elements of a given element
Selectors Style sheets are made up of individual style elements that define size, color, fonts, etc. Each style has a unique name: a selector Selectors refer to specific elements, or sets of elements, in your (X)HTML files
Pseudo Selectors pseudo selectors can select specific parts of an element, or elements with specific properties allows us to create :hover effects
Syntax C style syntax almost never need the @media type declaration, but it is very useful to know - can target different types of devices easily adding a background color to the body: body { background: red; }
Style Sheets To style a webpage, you need lots of individual selectors and styles Create style sheets to contain all of these style definitions add them to your page a number of ways: <link rel=stylesheet href=&quot;whatever.css&quot; type=&quot;text/css&quot;> <style type=”text/css”> @import: url(aStyle.css) </style> or declare styles right in the style tag
CSS Layout There are two types of elements in the CSS world: box level elements, and inline elements tags that would normally cause a newline in html are generally block level elements <div> is the empty box element text it usually inline content <span> is the empty inline element Any element can be told to be a box
CSS Positioning There are a few different ways to position box elements: position absolute fixed relative float - most people are confused by this! left right
Box Model
CSS Properties http://www.ilovejackdaniels.com/css_cheat_sheet.pdf
Demo
Considerations CSS does not behave as expected if your  (X)HTML is not well formed: VALIDATE! There are more tags that you will ever memorize, so look things up with google CSS is complex - go home, read about it online, try things out.  The best way to learn is probably to look at existing web pages CSS and see what does what Oh, and its not exactly a standard...
CSS Standards CSS is a W3C standard Unfortunately, Internet Explorer decided not to implement the standard the correct way Generally, you will have to “hack” your CSS to get it to work the way you want in IE Furthermore, there are multiple levels of support, and every browser varies on this
CSS References http://www.ilovejackdaniels.com/css_cheat_sheet.pdf http://www.w3.org/Style/CSS/ http://www.w3schools.com/css/ http://www.csszengarden.com http://meyerweb.com/eric/css/edge/ http://jigsaw.w3.org/css-validator/
Questions?
Contact Pamela Fox:  [email_address] Ross Boucher:  [email_address] UPE:  [email_address] On the web:  http://pollux.usc.edu/~upe/

More Related Content

What's hot (20)

JavaScript - Part-1
JavaScript - Part-1JavaScript - Part-1
JavaScript - Part-1
Jainul Musani
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Collaboration Technologies
 
PHP COOKIES AND SESSIONS
PHP COOKIES AND SESSIONSPHP COOKIES AND SESSIONS
PHP COOKIES AND SESSIONS
Degu8
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
shreesenthil
 
A Hacker's perspective on AEM applications security
A Hacker's perspective on AEM applications securityA Hacker's perspective on AEM applications security
A Hacker's perspective on AEM applications security
Mikhail Egorov
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Client side scripting
Client side scriptingClient side scripting
Client side scripting
Eleonora Ciceri
 
Java script
Java scriptJava script
Java script
Rajkiran Mummadi
 
JavaScript: Events Handling
JavaScript: Events HandlingJavaScript: Events Handling
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
Naga Harish M
 
React-JS.pptx
React-JS.pptxReact-JS.pptx
React-JS.pptx
AnmolPandita7
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScript
Laurence Svekis ✔
 
Bootstrap
BootstrapBootstrap
Bootstrap
AvinashChunduri2
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
Jubair Ahmed Junjun
 
CSS Flexbox (flexible box layout)
CSS Flexbox (flexible box layout)CSS Flexbox (flexible box layout)
CSS Flexbox (flexible box layout)
Woodridge Software
 
JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation
Mohammed Arif
 
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt
sentayehu
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By Palash
PalashBajpai
 
Flex box
Flex boxFlex box
Flex box
Harish Karthick
 
Owasp zap
Owasp zapOwasp zap
Owasp zap
ColdFusionConference
 

Viewers also liked (20)

Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Ferdous Mahmud Shaon
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
Shashank Skills Academy
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
WordPress Memphis
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
Mai Moustafa
 
Html Ppt
Html PptHtml Ppt
Html Ppt
vijayanit
 
HTML + CSS
HTML + CSSHTML + CSS
HTML + CSS
Pedro Gaspar
 
CSS Metaframeworks: King of all @media
CSS Metaframeworks: King of all @mediaCSS Metaframeworks: King of all @media
CSS Metaframeworks: King of all @media
Wynn Netherland
 
The importance of web design - Women Techmakers Galicia
The importance of web design - Women Techmakers GaliciaThe importance of web design - Women Techmakers Galicia
The importance of web design - Women Techmakers Galicia
Ana Cidre
 
Html css basic
Html css basicHtml css basic
Html css basic
健樺 古
 
Instagram workshop
Instagram workshopInstagram workshop
Instagram workshop
Bruno Bašić
 
Web Design Workshop
Web Design WorkshopWeb Design Workshop
Web Design Workshop
WebDesignWorkshop
 
Instagram workshop for university post
Instagram workshop for university postInstagram workshop for university post
Instagram workshop for university post
Ida Blinkenberg Lidell
 
Website design and marketing workshop slides
Website design and marketing workshop slidesWebsite design and marketing workshop slides
Website design and marketing workshop slides
Livia Oldland
 
Facebook Workshop Powerpoint
Facebook Workshop PowerpointFacebook Workshop Powerpoint
Facebook Workshop Powerpoint
skagitmarketing
 
Facebook workshop
Facebook workshop Facebook workshop
Facebook workshop
Deepan Chakravarthy
 
HTML&CSS 태그, 속성, 셀렉터
HTML&CSS 태그, 속성, 셀렉터HTML&CSS 태그, 속성, 셀렉터
HTML&CSS 태그, 속성, 셀렉터
Booseol Shin
 
3-2. selector api
3-2. selector api3-2. selector api
3-2. selector api
JinKyoungHeo
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
CSS Metaframeworks: King of all @media
CSS Metaframeworks: King of all @mediaCSS Metaframeworks: King of all @media
CSS Metaframeworks: King of all @media
Wynn Netherland
 
The importance of web design - Women Techmakers Galicia
The importance of web design - Women Techmakers GaliciaThe importance of web design - Women Techmakers Galicia
The importance of web design - Women Techmakers Galicia
Ana Cidre
 
Html css basic
Html css basicHtml css basic
Html css basic
健樺 古
 
Instagram workshop for university post
Instagram workshop for university postInstagram workshop for university post
Instagram workshop for university post
Ida Blinkenberg Lidell
 
Website design and marketing workshop slides
Website design and marketing workshop slidesWebsite design and marketing workshop slides
Website design and marketing workshop slides
Livia Oldland
 
Facebook Workshop Powerpoint
Facebook Workshop PowerpointFacebook Workshop Powerpoint
Facebook Workshop Powerpoint
skagitmarketing
 
HTML&CSS 태그, 속성, 셀렉터
HTML&CSS 태그, 속성, 셀렉터HTML&CSS 태그, 속성, 셀렉터
HTML&CSS 태그, 속성, 셀렉터
Booseol Shin
 
Ad

Similar to HTML & CSS Workshop Notes (20)

Download Workshop Lecture
Download Workshop LectureDownload Workshop Lecture
Download Workshop Lecture
webhostingguy
 
website design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptxwebsite design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptx
geremilibrary
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
RamyaH11
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
ssuser568d77
 
Html Expression Web
Html Expression WebHtml Expression Web
Html Expression Web
Mark Frydenberg
 
Before start
Before startBefore start
Before start
Medhat Dawoud
 
Html
HtmlHtml
Html
yugank_gupta
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
Html
HtmlHtml
Html
Venkat Krishnan
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
vikasmittal92
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
SANTOSH RATH
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
Paxcel Technologies
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
Billy Tierra
 
Html power point
Html power pointHtml power point
Html power point
markbg
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
Joel Linquico
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
Hatem Mahmoud
 
1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development
Wingston
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
vikram singh
 
WELCOME-FOLKS--CSS.-AND-HTMLS.pptx
WELCOME-FOLKS--CSS.-AND-HTMLS.pptxWELCOME-FOLKS--CSS.-AND-HTMLS.pptx
WELCOME-FOLKS--CSS.-AND-HTMLS.pptx
HeroVins
 
Day1
Day1Day1
Day1
Avanish Sanchi
 
Download Workshop Lecture
Download Workshop LectureDownload Workshop Lecture
Download Workshop Lecture
webhostingguy
 
website design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptxwebsite design mark-up with HTML 5 .pptx
website design mark-up with HTML 5 .pptx
geremilibrary
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
RamyaH11
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
ssuser568d77
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
Paxcel Technologies
 
Html power point
Html power pointHtml power point
Html power point
markbg
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
Hatem Mahmoud
 
1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development
Wingston
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
vikram singh
 
WELCOME-FOLKS--CSS.-AND-HTMLS.pptx
WELCOME-FOLKS--CSS.-AND-HTMLS.pptxWELCOME-FOLKS--CSS.-AND-HTMLS.pptx
WELCOME-FOLKS--CSS.-AND-HTMLS.pptx
HeroVins
 
Ad

More from Pamela Fox (20)

Teaching Programming Online
Teaching Programming OnlineTeaching Programming Online
Teaching Programming Online
Pamela Fox
 
Engineering culture
Engineering cultureEngineering culture
Engineering culture
Pamela Fox
 
Django Admin: Widgetry & Witchery
Django Admin: Widgetry & WitcheryDjango Admin: Widgetry & Witchery
Django Admin: Widgetry & Witchery
Pamela Fox
 
A Year of Hermit Hacking
A Year of Hermit HackingA Year of Hermit Hacking
A Year of Hermit Hacking
Pamela Fox
 
The Developer Experience
The Developer Experience The Developer Experience
The Developer Experience
Pamela Fox
 
Making JavaScript Libraries More Approachable
Making JavaScript Libraries More ApproachableMaking JavaScript Libraries More Approachable
Making JavaScript Libraries More Approachable
Pamela Fox
 
How I became a born again vegetable-tarian
How I became a born again vegetable-tarianHow I became a born again vegetable-tarian
How I became a born again vegetable-tarian
Pamela Fox
 
The Developer Experience
The Developer ExperienceThe Developer Experience
The Developer Experience
Pamela Fox
 
No, Really, I'm Shy
No, Really, I'm ShyNo, Really, I'm Shy
No, Really, I'm Shy
Pamela Fox
 
Writing Apps the Google-y Way (Brisbane)
Writing Apps the Google-y Way (Brisbane)Writing Apps the Google-y Way (Brisbane)
Writing Apps the Google-y Way (Brisbane)
Pamela Fox
 
Writing Apps the Google-y Way
Writing Apps the Google-y WayWriting Apps the Google-y Way
Writing Apps the Google-y Way
Pamela Fox
 
The Wonders of the "Onesie"
The Wonders of the "Onesie"The Wonders of the "Onesie"
The Wonders of the "Onesie"
Pamela Fox
 
I’M A Barbie Girl In A CS World
I’M A Barbie Girl In A CS WorldI’M A Barbie Girl In A CS World
I’M A Barbie Girl In A CS World
Pamela Fox
 
Google Wave 20/20: Product, Protocol, Platform
Google Wave 20/20: Product, Protocol, PlatformGoogle Wave 20/20: Product, Protocol, Platform
Google Wave 20/20: Product, Protocol, Platform
Pamela Fox
 
Collaborative Mapping with Google Wave
Collaborative Mapping with Google WaveCollaborative Mapping with Google Wave
Collaborative Mapping with Google Wave
Pamela Fox
 
Google Products: Deep Dive on Google Maps
Google Products: Deep Dive on Google MapsGoogle Products: Deep Dive on Google Maps
Google Products: Deep Dive on Google Maps
Pamela Fox
 
Google Products & Google Maps
Google Products & Google MapsGoogle Products & Google Maps
Google Products & Google Maps
Pamela Fox
 
Mashups & APIs
Mashups & APIsMashups & APIs
Mashups & APIs
Pamela Fox
 
A World of Words
A World of WordsA World of Words
A World of Words
Pamela Fox
 
Web APIs & Google APIs
Web APIs & Google APIsWeb APIs & Google APIs
Web APIs & Google APIs
Pamela Fox
 
Teaching Programming Online
Teaching Programming OnlineTeaching Programming Online
Teaching Programming Online
Pamela Fox
 
Engineering culture
Engineering cultureEngineering culture
Engineering culture
Pamela Fox
 
Django Admin: Widgetry & Witchery
Django Admin: Widgetry & WitcheryDjango Admin: Widgetry & Witchery
Django Admin: Widgetry & Witchery
Pamela Fox
 
A Year of Hermit Hacking
A Year of Hermit HackingA Year of Hermit Hacking
A Year of Hermit Hacking
Pamela Fox
 
The Developer Experience
The Developer Experience The Developer Experience
The Developer Experience
Pamela Fox
 
Making JavaScript Libraries More Approachable
Making JavaScript Libraries More ApproachableMaking JavaScript Libraries More Approachable
Making JavaScript Libraries More Approachable
Pamela Fox
 
How I became a born again vegetable-tarian
How I became a born again vegetable-tarianHow I became a born again vegetable-tarian
How I became a born again vegetable-tarian
Pamela Fox
 
The Developer Experience
The Developer ExperienceThe Developer Experience
The Developer Experience
Pamela Fox
 
No, Really, I'm Shy
No, Really, I'm ShyNo, Really, I'm Shy
No, Really, I'm Shy
Pamela Fox
 
Writing Apps the Google-y Way (Brisbane)
Writing Apps the Google-y Way (Brisbane)Writing Apps the Google-y Way (Brisbane)
Writing Apps the Google-y Way (Brisbane)
Pamela Fox
 
Writing Apps the Google-y Way
Writing Apps the Google-y WayWriting Apps the Google-y Way
Writing Apps the Google-y Way
Pamela Fox
 
The Wonders of the "Onesie"
The Wonders of the "Onesie"The Wonders of the "Onesie"
The Wonders of the "Onesie"
Pamela Fox
 
I’M A Barbie Girl In A CS World
I’M A Barbie Girl In A CS WorldI’M A Barbie Girl In A CS World
I’M A Barbie Girl In A CS World
Pamela Fox
 
Google Wave 20/20: Product, Protocol, Platform
Google Wave 20/20: Product, Protocol, PlatformGoogle Wave 20/20: Product, Protocol, Platform
Google Wave 20/20: Product, Protocol, Platform
Pamela Fox
 
Collaborative Mapping with Google Wave
Collaborative Mapping with Google WaveCollaborative Mapping with Google Wave
Collaborative Mapping with Google Wave
Pamela Fox
 
Google Products: Deep Dive on Google Maps
Google Products: Deep Dive on Google MapsGoogle Products: Deep Dive on Google Maps
Google Products: Deep Dive on Google Maps
Pamela Fox
 
Google Products & Google Maps
Google Products & Google MapsGoogle Products & Google Maps
Google Products & Google Maps
Pamela Fox
 
Mashups & APIs
Mashups & APIsMashups & APIs
Mashups & APIs
Pamela Fox
 
A World of Words
A World of WordsA World of Words
A World of Words
Pamela Fox
 
Web APIs & Google APIs
Web APIs & Google APIsWeb APIs & Google APIs
Web APIs & Google APIs
Pamela Fox
 

Recently uploaded (20)

National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Domino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use CasesDomino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use Cases
panagenda
 
Cisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdfCisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdf
superdpz
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data ResilienceFloods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean accountYour startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
How to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptxHow to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementaryMurdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Infrassist Technologies Pvt. Ltd.
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
Edge AI and Vision Alliance
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free DownloadViral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization ProgramOracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Domino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use CasesDomino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use Cases
panagenda
 
Cisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdfCisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdf
superdpz
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data ResilienceFloods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean accountYour startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
How to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptxHow to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementaryMurdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025Azure vs AWS  Which Cloud Platform Is Best for Your Business in 2025
Azure vs AWS Which Cloud Platform Is Best for Your Business in 2025
Infrassist Technologies Pvt. Ltd.
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
Edge AI and Vision Alliance
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free DownloadViral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization ProgramOracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 

HTML & CSS Workshop Notes

  • 1. Sponsored by Upsilon Pi Epsilon The Computer Science Honors Society
  • 2. Upsilon Pi Epsilon UPE is the Computer Science Honors Society. It is a national honors society, with over 120 University Chapters around the country. “New” to USC
  • 3. Workshop series around web 2.0 technologies This is the first of many Future topics will include: Javascript, PHP, Ruby on Rails, and more. Send us your ideas!
  • 4. What is Web 2.0?
  • 5.  
  • 6. “Web 2.0, a phrase coined by O'Reilly Media in 2004, refers to a supposed second-generation of Internet-based services — such as social networking sites, wikis, communication tools, and folksonomies — that let people collaborate and share information online in previously unavailable ways.” - Wikipedia (a Web 2.0 organization)
  • 7. Why should I care?
  • 8.  
  • 9. What We’ll Cover Today HTML (Hypertext Markup Language) DOM (Document Object Model - briefly) CSS (Cascading Style Sheets)
  • 10. HTML
  • 11. History of HTML Tim Berners-Lee created first HTML version in the late 1980s (as a subset of SGML) Needed a simple way to share research among colleagues; piggy backed off newly evolving Internet (previously just text) HTML spread as multiple proprietary versions; in 1993 the IETF published a working draft of the first “official” HTML
  • 12. History of HTML Part 2 Simplicity made things easy for people new to computers and publishing Also left the “code” a mess, leaving every browser to handle different mistakes in its own way Soon, the World Wide Web Consortium (W3C) was created to draft a set of standards for all web browsers to adhere to
  • 13. History of HTML Part 3 Features were added to HTML very quickly: tables, colors, backgrounds, fonts, etc. Web sites started becoming very complex It became impossible to manage all the HTML tags needed to style the content on multiple sites, code bases starting becoming huge, tables were being used to make better designs... things got ugly.
  • 14. History of HTML Part 4 We needed a solution to this problem, and that solution was CSS. With the revolution of Cascading Style Sheets, HTML (and later XHTML) became about describing content, not presentation The look of a web page (the presentation) was left entirely to style sheets, which could be common to entire sites
  • 15. Setting up a web “Presence” No point to a website if no one else can see it... USC lets every student create a web presence on the aludra.usc.edu server If you don't have it setup yet: telnet aludra.usc.edu type requestwww follow the instructions
  • 16. Setup Part 2 To see your web presence, point browser to http://www-scf.usc.edu/~username To upload files to your web account, use an FTP client You can download COREFTP(PC) or Fetch(Mac) from usc.edu/software or poke around your PC for an app with &quot;FTP&quot; in title Login to aludra.usc.edu with usual USCWeb login Upload files to public_html folder
  • 17. HTML: What is it? HTML stands for Hyper Text Markup Language An HTML file is a text file containing small markup tags The markup tags tell the Web browser how to display the page An HTML file can be created using a simple text editor or a WYSIWIG editor
  • 18. Hello World! <html> <head> <title>Hello World!</title> </head> <body> Hello World! </body> </html>
  • 19. HTML Basics: Tags/Attributes Tags/Attributes HTML tags are used to mark-up HTML elements Tags are surrounded by the two characters < and >, which are called angle brackets Tags normally come in pairs like <b> and </b>. The text between the start and end tags is the element content Tags are not case sensitive, <b> means the same as <B>, but use lowercase: you’ll find out its better Tags often have attributes, which gives the browser additional information about displaying the element Attributes come in name-value pairs, with the value in double or single quotes (e.g. <img width=”100px”>)
  • 20. HTML Basics: Formatting Tags Formatting Tags In HTML, formatting is not based on whitespace! (example) Use tags to format text: <p></p> - paragraph tag, optional align attribute <br> - line break tag <b></b> or <strong></strong> - boldface tag, <strong> is more standards-compliant now <i></i> or <em></em> - italics tag, <em> is more standards-compliant now <ul><li>blabla 1</li> .. </ul> - unordered list tag, creates bulleted list, can be nested <ol><li>blabla 1</li> .. </ol> - ordered list tag, creates numbered list, can be nested
  • 21. HTML Basics: Hyperlinks & Images Hyperlinks & Images Anchor tag can be used to create hyperlink or define an anchor within a page <a href=&quot; http://www.google.com &quot;>google</a> - creates hyperlink, optional target, title attributes, URL can be relative or absolute <a name=&quot;section2&quot;></a> - creates anchor in page <a href=&quot;index.html#section2&quot;>section2</a> - to link to in-page anchor <img src=&quot;URL.gif&quot;> - creates image, optional width/height attributes, alt attribute to provide alternate text, align attribute to specify around-text wrapping, border attribute Image tags can be nested in hyperlink tags to create hyperlinked images
  • 22. HTML Basics: Tables/Frames Both of these are considered evil nowadays. Before <DIVS> were introduced, people used tables to layout websites (e.g. multi-column website) The HTML for tables is obtuse and prone to corruptibility (just try looking at the source of a fully tabled website) But it exists...and could be occasionally useful <table></table> - creates table, optional width/height/align/bgcolor attributes <tr></tr> - creates table row with the same attribute options <td></td> - creates table cell with the same attribute options Frames: web-designers used to use frames to separate the navigation page from the site's content (e.g. all CS websites!) Frames are generally a bad idea... http://www.karlcore.com/articles/article.php?id=2 So we won't tell you tags for them.
  • 23. HTML Basics: Forms Very common on the web as they provide interactivity <form></form> - defines form, optional method/name/action attributes to tell browser where to send results when submit pressed <input></input> - generic input tag, used always with type attribute to specify type (checkbox, radio, text, submit), also optional name/value attributes <textarea></textarea> - multi-line text area input, optional rows/cols attributes <select> <option>op1</option> ... </select> - creates combo/dropdown box
  • 24. HTML Basics: Colors HTML Basics: Color Color is used extensively in HTML: text color, background color, border color, link color, hr color, etc Only 16 color names are approved by W3C - aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow All other colors should be referred to by Hexadecimal codes (#RRGGBB) Always pick a pleasing color scheme for your site Color references: http://w3schools.com/html/html_colors.asp http://www.degraeve.com/color-palette/ http://wellstyled.com/tools/colorscheme2/index-en.html http://wellstyled.com/tools/colorscheme2/index-en.html http://www.siteprocentral.com/cgi-bin/feed/feed.cgi
  • 25. HTML Basics: References http://w3schools.com/html/default.asp http://w3schools.com/html/html_quick.asp http://webmonkey.com/webmonkey/reference/html_cheatsheet/ http://www.htmlcodetutorial.com / http://validator.w3.org /
  • 26. Standards Read the W3C Specs! Search them! Use the W3C Validator! Write valid XHTML Strict/Transitional (or HTML 4.1) whenever possible (always!) Separate content and presentation: use style sheets to change the look of your site!
  • 27. Document Object Model A graph representation of the structure of an HTML/XHTML document An API for accessing and interacting with the graph and its elements The key ingredient to DHTML, AJAX, and this whole Web 2.0 thing Visualizer: http://www.aharef.info/static/htmlgraph/
  • 28. CSS
  • 29. Cascading Style Sheets A standard method of applying style and appearance information to text and other elements of a web page Cascading means that properties “cascade” down through all child elements of a given element
  • 30. Selectors Style sheets are made up of individual style elements that define size, color, fonts, etc. Each style has a unique name: a selector Selectors refer to specific elements, or sets of elements, in your (X)HTML files
  • 31. Pseudo Selectors pseudo selectors can select specific parts of an element, or elements with specific properties allows us to create :hover effects
  • 32. Syntax C style syntax almost never need the @media type declaration, but it is very useful to know - can target different types of devices easily adding a background color to the body: body { background: red; }
  • 33. Style Sheets To style a webpage, you need lots of individual selectors and styles Create style sheets to contain all of these style definitions add them to your page a number of ways: <link rel=stylesheet href=&quot;whatever.css&quot; type=&quot;text/css&quot;> <style type=”text/css”> @import: url(aStyle.css) </style> or declare styles right in the style tag
  • 34. CSS Layout There are two types of elements in the CSS world: box level elements, and inline elements tags that would normally cause a newline in html are generally block level elements <div> is the empty box element text it usually inline content <span> is the empty inline element Any element can be told to be a box
  • 35. CSS Positioning There are a few different ways to position box elements: position absolute fixed relative float - most people are confused by this! left right
  • 38. Demo
  • 39. Considerations CSS does not behave as expected if your (X)HTML is not well formed: VALIDATE! There are more tags that you will ever memorize, so look things up with google CSS is complex - go home, read about it online, try things out. The best way to learn is probably to look at existing web pages CSS and see what does what Oh, and its not exactly a standard...
  • 40. CSS Standards CSS is a W3C standard Unfortunately, Internet Explorer decided not to implement the standard the correct way Generally, you will have to “hack” your CSS to get it to work the way you want in IE Furthermore, there are multiple levels of support, and every browser varies on this
  • 41. CSS References http://www.ilovejackdaniels.com/css_cheat_sheet.pdf http://www.w3.org/Style/CSS/ http://www.w3schools.com/css/ http://www.csszengarden.com http://meyerweb.com/eric/css/edge/ http://jigsaw.w3.org/css-validator/
  • 43. Contact Pamela Fox: [email_address] Ross Boucher: [email_address] UPE: [email_address] On the web: http://pollux.usc.edu/~upe/