INTERMEDIATE WEB DESIGN INTRODUCTORY CSS, JAVASCRIPT AND PHP.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
Designing Websites Using HTML and FrontPage A Typical Webpage View Source A webpage is a text file containing instructions to tell a computer how the.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Project 8 Creating Style Sheets.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
My Web Site Created using:  PowerPoint  ActivePresentation Designer  PPT2HTML Contact About Copyright 2011 © GMARK Ltd. | | Welcome to our demo site.
HCI 201 Week 6 Client Side Image Maps Introduction to CSS.
CIS101 Introduction to Computing
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
Inline, Internal, and External FIle
Hypertext Markup Language (HTML) Created by Sarah Dooley & Amanda Foster Edited and presented by Caroline Hallam September 9, 2014.
Creating a Web Page HTML, FrontPage, Word, Composer.
Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Create a Website Session I Key Components Hands-on HTML.
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
Drboots presents. Web 101 Utility links | Join SWIFT | Pylons Navigation links Some place Another place Links Nothinghere Content goes here This is content…seriously.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Website Development & Management Getting to Know HTML Better CIT Fall Instructor: John Seydel, Ph.D.
INFSCI  Last time we built a doggie web page in class following the instructions in the slide deck: Build Web Page with HTML – see week 3 The topics.
Web Technologies Website Development Trade & Industrial Education
Creating Web Pages Overview. Design – Start with a Purpose Before you start any web page, you need to design the website. The first question that should.
Basic HTML e-Learning Tutorial Storyboard Linda Sauerbrun AET/545 February 15, 2015 Dr. Poe.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
Website Development with Dreamweaver
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
WEB DESIGN UNIT 2 Unit 2 Module 2-5. WHAT HAVE YOU LEARNED?  What is the title tag do? Where does it show?  What are the tags that need to be on every.
MIS 425 Lecture 3 – HTML 5 and CSS Instructor: Martin Neuhard
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
CSS Basic (cascading style sheets)
Essentials of HTML Class 4 Instructor: Jeanne Hart
Introduction to web development and HTML MGMT 230 LAB.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
HTML: Hyptertext Markup Language Doman’s Sections.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Louisa Lambregts, Louisa Lambregts
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
Web Design Part I. Click Menu Site to create a new site root.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
Objective % Select and utilize tools to design and develop websites.
Objective % Select and utilize tools to design and develop websites.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
BUILDING A WEBSITE 7.4.2: Basics of HTML and CSS.
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Presentation transcript:

INTERMEDIATE WEB DESIGN INTRODUCTORY CSS, JAVASCRIPT AND PHP

HUH? Instructor: Miles, TA/GA in Instructional Technology Please ask questions. I will try my best to answer them. If I can’t, I will get back to you. Ask questions via chat, microphone, whatever you’re most comfortable. You can raise your hand to get my attention if I miss something. I hope to keep this under an hour, but this is the trial run, so I can’t promise anything. Everything done in this workshop was tested on the Idrive space available to all GSLIS students. Other web hosts may vary. Don’t get hung up on details. Look for connections and build on what you know.

CRASH COURSE See 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 are not producing a beautiful, finished web site. That takes more than an hour.

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: 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)

GETTING STARTED The files we will create today  index.php  style.css  menu.php

CSS Intended to simplify HTML Clean up messy code Unify style 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 style Content 1 style Content 2 style Content 2 style Content 1 Content 2 style VS.

HTML This text is Arial, large. and red display This text is Arial, large. and red Con: Must be repeated for every element AKA in-line CSS OLD WAY

NEW WAY HTML Paragraph text will be gray and Helvetica. CSSp.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 tag Denotes a text file named style.css stored in the subdirectory “css” within the main directory Later, we will return to the tag to include Javascript. …

TABLE-LESS WEB DESIGN CSS is also used for layouts: this is a header … elements: Look at how much space is saved! General rule: don’t use a table unless you’re specifically displaying spreadsheet type info this is a header …

ORGANIZATION CONT. Side by side columns using the float property, rather than tables and columns menu content menu content

ORGANIZATION CONT. HTML: CSS: #div1 { Width:33%; Float:left; } #div1 { Width:33%; Float:left; } #div2 { Width:67%; Float:right; } #div2 { Width:67%; Float:right; } menu content

LINKING HTML AND CSS HTMLCSS.class1 { } #id2 { } 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/CMS templates:  Wordpress, Tumblr, Drupal, etc.

BASIC HTML TEMPLATE Index.php css example page (this is where we will put our menubar with some links) (here is some text we will style using css.)

ADD TAGS Index.php css example page this is where we will put our menubar with some links here is some text we will style using css.

GIVE THE TAGS A CLASS Index.php … this is where we will put our menubar with some links here is some text we will style using css. …

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 an example include file: In-line PHP call: copyright 2012, your name copyright 2012, your name

CREATE OUR INCLUDE FILE Menu.php home link about link contact link

CALL THE INCLUDE FILE Index.php … here is some text we will style using css.

REPEAT The include file will appear on any page you call it. If you need to modify your menu, there is one central file to change (the include file), and the changes will appear in every HTML page where that include is called (version control)

JAVASCRIPT Writing your own code is hard Recycling someone else’s code is simple! We are using some Javascript from Look for implementation examples, read code comments <<--… ## //

SCRIPT LIVES IN TWO PLACES (full script goes in the ) (call to script goes in the ) showImage(); includes full code includes call to the code

A LOOK AT THE CODE // Set up the image files to be used. var theImages = new Array() // do not change this // To add more image files, continue with the // pattern below, adding to the array. Remember // to increment the theImages[x] index! theImages[0] = '200.jpeg' theImages[1] = '300.jpeg’ // ====================================== // do not change anything below this line // ====================================== var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write(' '); } 200.jpeg 300.jpeg Comments!

TW

A LOOK AT THE CODE showImage();

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)

WHAT IF I WANT TO LEARN SOMETHING ELSE? Google is your best friend Stack Overflow and w3schools, are great resources Codeyear and other guided lessons

QUESTIONS & COMMENTS &