SlideShare a Scribd company logo
CRASH COURSE
See a few applications of common web technologies
Get comfortable interacting with things you don’t necessarily know
Learn basic structures, how to ask questions


•   CSS
•   PHP
•   Javascript


Keep it simple. We will not produce a beautiful, finished web site. That
takes time.
DOWNLOAD THE FILES WE WILL USE TODAY
I recommend following along with the slides, and then looking at the actual
    files later.
Download link:
You can upload these files to your Idrive to test them yourself, or look at
   the copy I have hosted at:
   http://courseweb.lis.illinois.edu/~mlincol2/workshop/
GETTING STARTED
The files we will create today
 index.php
 style.css
 menu.php

Software I use in the screenshots
 Cyberduck (SFTP Client) (Windows alternative: WinSCP)
 TextWrangler (Text Editor) (Windows alternative: Notepad++(?))
 Firefox (Web Browser) with Firebug Extension (CSS Tool)
CYBERDUCK SFTP CLIENT
CSS
Intended to simplify HTML
Clean up messy code
Unify style
CSS (CONTINUED)
 Designating individual style elements like font, size and color for every
    HTML element wastes time and is difficult to manage
 CSS simplifies this problem by letting you designate a style once, and link
   to that style multiple times




Content 1       Content 2                               Content 1       Content 2
style           style                    VS.



                                                                    style
OLD WAY
HTML        <font size="6"><span style="font-family: Arial;
            color: rgb(255, 0, 0);">This text is Arial, large. and
            red</span></font>
display     This text is Arial, large. and red



          Con: Must be repeated for every element

          AKA in-line CSS
NEW WAY
HTML      <p class=“newspaper”>Paragraph text will be gray and
          Helvetica.</p>
CSS       p.newspaper {
          color: gray;
          font-family:”helvetica”;
          }
display   Paragraph text will be gray and Helvetica.
HOW IT’S ORGANIZED


Html file includes reference to External stylesheet (CSS) in the <head> tag


<head>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<title>sample title</title>
</head>

Denotes a text file named style.css stored in the subdirectory “css” within
   the main directory


Later, we will return to the <head> tag to include Javascript.
TABLE-LESS WEB DESIGN
CSS is also used for layouts:
<table id="header">
<tr>
<td>
this is a header
</td>
</tr>
</table>
…
<div> elements:
<div id="header">
this is a header
</div>
…

Look at how much space is saved!
General rule: don’t use a table unless you’re specifically displaying
   spreadsheet type info
<DIV> ORGANIZATION CONT.
Side by side columns using the float property, rather than tables and columns



<div id=“div1”>menu</div>                     <div
id=“div2”>content</div>




           menu                                  content
<DIV> ORGANIZATION CONT.
HTML:

<div id=“div1”>menu</div>                  <div
id=“div2”>content</div>
CSS:



#div1 {                     #div2 {
Width:33%;                  Width:67%;
Float:left;                 Float:right;
}                           }
LINKING HTML AND CSS


HTML                                 CSS
<div class=“class1”>                 .class1 {
</div>
                                     }
<div id=“id2”>                       #id2 {

</div>                               }




         Use “#” to style ID designators and “.” To style classes
WHY CSS?
Can be applied to any HTML element
Allows for flexible styling
Edit once, change all


Where you might see this:
 Modifying blog templates:
   Wordpress
   Drupal
   Tumblr
   Etc.
BASIC TEMPLATE
Index.php
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>
css example page
</title>
</head>
<body>
(this is where we will put our menubar with some links)

(here is some text we will style using css.)
</body>
</html>
TEXTWRANGLER
ADD <DIV> TAGS
Index.php
<html>
<head>
<title>
css example page
</title>
</head>
<body>
<div>this is where we will put our menubar with some links</div>

<div>here is some text we will style using css.</div>
</body>
</html>
GIVE THE <DIV> TAGS A CLASS
Index.php
…
<div class=“menubar”>this is where we will put our menubar with some
links</div>

<div class=“bodytext”>here is some text we will style using css.</div>
…
PREPARE OUR CSS FILE
Main.css

.bodytext {

}

.menubar {

}
ADD SOME STYLE
Main.css

.bodytext {
color:blue;
font-size:200%;
}

.menubar {
font-family:arial;
}
USEFUL TOOL: FIREBUG
Firefox extension that tells you which stylesheet is determining an
    element’s style


Useful for complicated setups with multiple stylesheets or when multiple
   styles are applied to the same element.
PHP
Server-side scripting language
 Installed on the server
 Processes code embedded in your site

PHP Includes:
Similar to CSS, allows you to create something once, use it anywhere.
Useful for areas that repeat on every page like headers, footers, menubars
Adding a new link to the menubar is a one step process.


CSS: centralizes style
PHP Includes: centralize content
SERVER SIDE INCLUDES (SSI)
   HTML inserted into web page where you want the include to appear:


   Entire contents of (example) include file:


 copyright 2012, <a href="mailto:netid@illinois.edu">your
 name</a>

  In-line PHP call:
  <?php include('includes/footer.php'); ?>




<footer id="contentinfo" class="body">
           <br><div align="center">
<p>copyright 2012, <a href="mailto:netid@illinois.edu">your name</a></p>
                 </div>
</footer>
CREATE OUR INCLUDE FILE
Menu.php
<ul>
<li>home link</li>
<li>about link</li>
<li>contact link</li>
</ul>




                          If I were creating a real site, these
                          would be <a
                          href=“link.com”>link</a>, but I
                          truncated them to save space
CALL THE INCLUDE FILE
Index.php
…
<div class=“menubar”><?php include(„includes/menubar.php‟); ?></div>

<div class=“bodytext”>here is some text we will style using css.</div>
</body>
</html>
REPEAT
The include file will appear on any page you call it.
If you need to modify your menu, there is only one file to change, and the
    changes will appear everywhere (version control)
JAVASCRIPT
Writing your own code is hard
Recycling someone else’s code is simple!
We are using some Javascript from http://jscode.com/js_random_image.shtml
Look for implementation examples, read code comments <<--… ## //
SCRIPT LIVES IN TWO PLACES
<html>
<head>
                                       <head> includes full code
(full script goes in the <head>)
                                       <body> includes call to the
</head>
                                       code
<body>
(call to script goes in the <body>)
<script language="JavaScript" class="bg">
showImage();
</script>
</body>
</html>
TW
A LOOK AT THE CODE <BODY>
<script language="JavaScript" class="bg">
showImage();
</script>
IN REVIEW
We used CSS to style text on our website, and we can use it to change the
   look of a large amount of content easily.
We used PHP Includes to control content on our website
We used Javascript we found on the web to do a very simple task
BROWSER VIEW (FIREFOX)
BROWSER VIEW (FIREFOX)


             Menu created using PHP
             includes




                                Text styled with
                                CSS



              Random image generated with
              Javascript
WHAT IF I WANT TO LEARN SOMETHING ELSE?
Use the Google
Stack Overflow w3schools, are a great resources
Codeyear and other guided lessons
QUESTIONS & COMMENTS
help@support.lis.illinois.edu
@gslis_help_desk

More Related Content

What's hot

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
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
Component Driven Design and Development
Component Driven Design and DevelopmentComponent Driven Design and Development
Component Driven Design and Development
Cristina Chumillas
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
Devang Garach
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
Html workshop 1
Html workshop 1Html workshop 1
Html workshop 1
Lee Scott
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
SiddhantSingh980217
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
alledia
 
HTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ SearchcampHTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ Searchcamp
James Mills
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
hemi46h
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme development
Thad Allender
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
Florian Letsch
 
Steph's Html5 and css presentation
Steph's Html5 and css presentationSteph's Html5 and css presentation
Steph's Html5 and css presentation
stephy123123
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
Syahmi RH
 
Css1
Css1Css1
The web context
The web contextThe web context
The web context
Dan Phiffer
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
Heather Rock
 
Html5 elements-Kip Academy
Html5 elements-Kip AcademyHtml5 elements-Kip Academy
Html5 elements-Kip Academy
kip academy
 
Web programming css
Web programming cssWeb programming css
Web programming css
Uma mohan
 

What's hot (20)

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
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
Component Driven Design and Development
Component Driven Design and DevelopmentComponent Driven Design and Development
Component Driven Design and Development
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Html workshop 1
Html workshop 1Html workshop 1
Html workshop 1
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
 
HTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ SearchcampHTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ Searchcamp
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme development
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
 
Steph's Html5 and css presentation
Steph's Html5 and css presentationSteph's Html5 and css presentation
Steph's Html5 and css presentation
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
 
Css1
Css1Css1
Css1
 
The web context
The web contextThe web context
The web context
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
Html5 elements-Kip Academy
Html5 elements-Kip AcademyHtml5 elements-Kip Academy
Html5 elements-Kip Academy
 
Web programming css
Web programming cssWeb programming css
Web programming css
 

Viewers also liked

Amerindian Civilizations in Latin America
Amerindian Civilizations in Latin AmericaAmerindian Civilizations in Latin America
Amerindian Civilizations in Latin America
Dan McDowell
 
Bird Book Illustrated, Free eBook
Bird Book Illustrated, Free eBookBird Book Illustrated, Free eBook
Bird Book Illustrated, Free eBook
Chuck Thompson
 
Verbal Messages
Verbal MessagesVerbal Messages
Verbal Messages
dianaists
 
Internet UK Jihobist A
Internet UK Jihobist  AInternet UK Jihobist  A
Internet UK Jihobist A
Yousef al-Khattab
 
Ext GWT 3.0 Data Widgets
Ext GWT 3.0 Data WidgetsExt GWT 3.0 Data Widgets
Ext GWT 3.0 Data Widgets
Sencha
 
Diane Troyer Laser MetaZtron HIVE
Diane Troyer Laser MetaZtron HIVE  Diane Troyer Laser MetaZtron HIVE
Diane Troyer Laser MetaZtron HIVE
Diane Troyer
 
Amniotes
AmniotesAmniotes
Anatomy of inner ear
Anatomy of inner earAnatomy of inner ear
Anatomy of inner ear
Razal M
 
Sermon 12.05.10
Sermon 12.05.10Sermon 12.05.10
Sermon 12.05.10
Cody Nazarene Church
 
NEURON SUPPORTIVE CELLS OR ANS
NEURON SUPPORTIVE CELLS OR ANSNEURON SUPPORTIVE CELLS OR ANS
NEURON SUPPORTIVE CELLS OR ANS
optometry student
 
inner ear
 inner ear inner ear
inner ear
Vikas Jorwal
 
Arthropoda insecta
Arthropoda insectaArthropoda insecta
Arthropoda insecta
Nevio Carlos de Alarcão
 
Tuesdays powerpointmorrie
Tuesdays powerpointmorrieTuesdays powerpointmorrie
Tuesdays powerpointmorrie
kelseyschadt
 
Americanization
AmericanizationAmericanization
Americanization
vivek Thota
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
emailtoshahed
 
Aminoacidurias
AminoaciduriasAminoacidurias
Aminoacidurias
JOSE PEDROZA
 
Asteraceae
AsteraceaeAsteraceae
Asteraceae
Danielle Bunuan
 
Que Comen Los Animales
Que Comen Los AnimalesQue Comen Los Animales
Que Comen Los Animales
sugiambruni
 
Ampere’s law
Ampere’s lawAmpere’s law
Ampere’s law
Zeeshan Khalid
 

Viewers also liked (20)

Amerindian Civilizations in Latin America
Amerindian Civilizations in Latin AmericaAmerindian Civilizations in Latin America
Amerindian Civilizations in Latin America
 
Bird Book Illustrated, Free eBook
Bird Book Illustrated, Free eBookBird Book Illustrated, Free eBook
Bird Book Illustrated, Free eBook
 
Verbal Messages
Verbal MessagesVerbal Messages
Verbal Messages
 
Internet UK Jihobist A
Internet UK Jihobist  AInternet UK Jihobist  A
Internet UK Jihobist A
 
Ext GWT 3.0 Data Widgets
Ext GWT 3.0 Data WidgetsExt GWT 3.0 Data Widgets
Ext GWT 3.0 Data Widgets
 
Diane Troyer Laser MetaZtron HIVE
Diane Troyer Laser MetaZtron HIVE  Diane Troyer Laser MetaZtron HIVE
Diane Troyer Laser MetaZtron HIVE
 
Amniotes
AmniotesAmniotes
Amniotes
 
Anatomy of inner ear
Anatomy of inner earAnatomy of inner ear
Anatomy of inner ear
 
Sermon 12.05.10
Sermon 12.05.10Sermon 12.05.10
Sermon 12.05.10
 
NEURON SUPPORTIVE CELLS OR ANS
NEURON SUPPORTIVE CELLS OR ANSNEURON SUPPORTIVE CELLS OR ANS
NEURON SUPPORTIVE CELLS OR ANS
 
inner ear
 inner ear inner ear
inner ear
 
Arthropoda insecta
Arthropoda insectaArthropoda insecta
Arthropoda insecta
 
5 c 2007 ammine
5 c 2007 ammine5 c 2007 ammine
5 c 2007 ammine
 
Tuesdays powerpointmorrie
Tuesdays powerpointmorrieTuesdays powerpointmorrie
Tuesdays powerpointmorrie
 
Americanization
AmericanizationAmericanization
Americanization
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 
Aminoacidurias
AminoaciduriasAminoacidurias
Aminoacidurias
 
Asteraceae
AsteraceaeAsteraceae
Asteraceae
 
Que Comen Los Animales
Que Comen Los AnimalesQue Comen Los Animales
Que Comen Los Animales
 
Ampere’s law
Ampere’s lawAmpere’s law
Ampere’s law
 

Similar to Intermediate Web Design

HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
Colin Loretz
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
Vskills
 
Css for Development
Css for DevelopmentCss for Development
Css for Development
tsengsite
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
tutorialsruby
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
tutorialsruby
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
Sanjoy Kr. Paul
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
INTRODUCTIONS OF CSS
INTRODUCTIONS OF CSSINTRODUCTIONS OF CSS
INTRODUCTIONS OF CSS
SURYANARAYANBISWAL1
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
Laura Hartwig
 
Css
CssCss
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
Michael Anthony
 
Untangling spring week4
Untangling spring week4Untangling spring week4
Untangling spring week4
Derek Jacoby
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
CSS.pdf
CSS.pdfCSS.pdf
CSS.pdf
SoniaJoshi25
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
William Myers
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
Alberto Apellidos
 
Day of code
Day of codeDay of code
Day of code
Evan Farr
 

Similar to Intermediate Web Design (20)

HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
 
Css for Development
Css for DevelopmentCss for Development
Css for Development
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
 
INTRODUCTIONS OF CSS
INTRODUCTIONS OF CSSINTRODUCTIONS OF CSS
INTRODUCTIONS OF CSS
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
Css
CssCss
Css
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
Untangling spring week4
Untangling spring week4Untangling spring week4
Untangling spring week4
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
CSS.pdf
CSS.pdfCSS.pdf
CSS.pdf
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Day of code
Day of codeDay of code
Day of code
 

Recently uploaded

Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
BibashShahi
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 

Recently uploaded (20)

Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 

Intermediate Web Design

  • 1.
  • 2. CRASH COURSE See a few applications of common web technologies Get comfortable interacting with things you don’t necessarily know Learn basic structures, how to ask questions • CSS • PHP • Javascript Keep it simple. We will not produce a beautiful, finished web site. That takes time.
  • 3. DOWNLOAD THE FILES WE WILL USE TODAY I recommend following along with the slides, and then looking at the actual files later. Download link: You can upload these files to your Idrive to test them yourself, or look at the copy I have hosted at: http://courseweb.lis.illinois.edu/~mlincol2/workshop/
  • 4. GETTING STARTED The files we will create today  index.php  style.css  menu.php Software I use in the screenshots  Cyberduck (SFTP Client) (Windows alternative: WinSCP)  TextWrangler (Text Editor) (Windows alternative: Notepad++(?))  Firefox (Web Browser) with Firebug Extension (CSS Tool)
  • 6. CSS Intended to simplify HTML Clean up messy code Unify style
  • 7. CSS (CONTINUED) Designating individual style elements like font, size and color for every HTML element wastes time and is difficult to manage CSS simplifies this problem by letting you designate a style once, and link to that style multiple times Content 1 Content 2 Content 1 Content 2 style style VS. style
  • 8. OLD WAY HTML <font size="6"><span style="font-family: Arial; color: rgb(255, 0, 0);">This text is Arial, large. and red</span></font> display This text is Arial, large. and red Con: Must be repeated for every element AKA in-line CSS
  • 9. NEW WAY HTML <p class=“newspaper”>Paragraph text will be gray and Helvetica.</p> CSS p.newspaper { color: gray; font-family:”helvetica”; } display Paragraph text will be gray and Helvetica.
  • 10. HOW IT’S ORGANIZED Html file includes reference to External stylesheet (CSS) in the <head> tag <head> <link rel="stylesheet" href="css/style.css" type="text/css" /> <title>sample title</title> </head> Denotes a text file named style.css stored in the subdirectory “css” within the main directory Later, we will return to the <head> tag to include Javascript.
  • 11. TABLE-LESS WEB DESIGN CSS is also used for layouts: <table id="header"> <tr> <td> this is a header </td> </tr> </table> … <div> elements: <div id="header"> this is a header </div> … Look at how much space is saved! General rule: don’t use a table unless you’re specifically displaying spreadsheet type info
  • 12. <DIV> ORGANIZATION CONT. Side by side columns using the float property, rather than tables and columns <div id=“div1”>menu</div> <div id=“div2”>content</div> menu content
  • 13. <DIV> ORGANIZATION CONT. HTML: <div id=“div1”>menu</div> <div id=“div2”>content</div> CSS: #div1 { #div2 { Width:33%; Width:67%; Float:left; Float:right; } }
  • 14. LINKING HTML AND CSS HTML CSS <div class=“class1”> .class1 { </div> } <div id=“id2”> #id2 { </div> } Use “#” to style ID designators and “.” To style classes
  • 15. WHY CSS? Can be applied to any HTML element Allows for flexible styling Edit once, change all Where you might see this: Modifying blog templates:  Wordpress  Drupal  Tumblr  Etc.
  • 16. BASIC TEMPLATE Index.php <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <title> css example page </title> </head> <body> (this is where we will put our menubar with some links) (here is some text we will style using css.) </body> </html>
  • 18. ADD <DIV> TAGS Index.php <html> <head> <title> css example page </title> </head> <body> <div>this is where we will put our menubar with some links</div> <div>here is some text we will style using css.</div> </body> </html>
  • 19. GIVE THE <DIV> TAGS A CLASS Index.php … <div class=“menubar”>this is where we will put our menubar with some links</div> <div class=“bodytext”>here is some text we will style using css.</div> …
  • 20. PREPARE OUR CSS FILE Main.css .bodytext { } .menubar { }
  • 21. ADD SOME STYLE Main.css .bodytext { color:blue; font-size:200%; } .menubar { font-family:arial; }
  • 22. USEFUL TOOL: FIREBUG Firefox extension that tells you which stylesheet is determining an element’s style Useful for complicated setups with multiple stylesheets or when multiple styles are applied to the same element.
  • 23. PHP Server-side scripting language  Installed on the server  Processes code embedded in your site PHP Includes: Similar to CSS, allows you to create something once, use it anywhere. Useful for areas that repeat on every page like headers, footers, menubars Adding a new link to the menubar is a one step process. CSS: centralizes style PHP Includes: centralize content
  • 24. SERVER SIDE INCLUDES (SSI) HTML inserted into web page where you want the include to appear: Entire contents of (example) include file: copyright 2012, <a href="mailto:netid@illinois.edu">your name</a> In-line PHP call: <?php include('includes/footer.php'); ?> <footer id="contentinfo" class="body"> <br><div align="center"> <p>copyright 2012, <a href="mailto:netid@illinois.edu">your name</a></p> </div> </footer>
  • 25. CREATE OUR INCLUDE FILE Menu.php <ul> <li>home link</li> <li>about link</li> <li>contact link</li> </ul> If I were creating a real site, these would be <a href=“link.com”>link</a>, but I truncated them to save space
  • 26. CALL THE INCLUDE FILE Index.php … <div class=“menubar”><?php include(„includes/menubar.php‟); ?></div> <div class=“bodytext”>here is some text we will style using css.</div> </body> </html>
  • 27. REPEAT The include file will appear on any page you call it. If you need to modify your menu, there is only one file to change, and the changes will appear everywhere (version control)
  • 28. JAVASCRIPT Writing your own code is hard Recycling someone else’s code is simple! We are using some Javascript from http://jscode.com/js_random_image.shtml Look for implementation examples, read code comments <<--… ## //
  • 29. SCRIPT LIVES IN TWO PLACES <html> <head> <head> includes full code (full script goes in the <head>) <body> includes call to the </head> code <body> (call to script goes in the <body>) <script language="JavaScript" class="bg"> showImage(); </script> </body> </html>
  • 30.
  • 31. TW
  • 32. A LOOK AT THE CODE <BODY> <script language="JavaScript" class="bg"> showImage(); </script>
  • 33. IN REVIEW We used CSS to style text on our website, and we can use it to change the look of a large amount of content easily. We used PHP Includes to control content on our website We used Javascript we found on the web to do a very simple task
  • 35. BROWSER VIEW (FIREFOX) Menu created using PHP includes Text styled with CSS Random image generated with Javascript
  • 36. WHAT IF I WANT TO LEARN SOMETHING ELSE? Use the Google Stack Overflow w3schools, are a great resources Codeyear and other guided lessons

Editor's Notes

  1. Notes!
  2. If you had your css linking in the header of each page on your website, and you wanted to change the background color of every page of your website, you would only need to do so once in your stylesheet, rather than changing it on each html page.