website 101

77
Website 101

Upload: matt-handal

Post on 01-Nov-2014

3.446 views

Category:

Technology


1 download

DESCRIPTION

This presentation was developed to give people who do not have a lot of experience with technology a basic understanding of today's website technologies and how they work. Learn more at http://www.helpeverybodyeveryday.com

TRANSCRIPT

Page 1: Website 101

Website 101

Page 2: Website 101

Circa 1991

• HTML is Born• HTML is the language (Code) used to create

websites

The words between < and > are known as HTML Tags

Page 3: Website 101

How HTML Works

• HTML Files (file.html, file.htm) hold all the information about the look and content of a website.

• These files are located on computer running server software (a.k.a. the server).

• A web browser sees this code and shows the user a webpage.

• The user’s computer does the thinking needed to perform this operation

Page 4: Website 101
Page 5: Website 101

One HTML File = One Website Page

Page 6: Website 101

Websites in HTML have Multiple Files (Pages)

Index.html

myhobbyies.htm Mycat.htm Mydog.htm mywife.htm

The main page is always called “index”

Page 7: Website 101

A Corporate Site Built In HTML Could have Hundreds of Files

(Pages)

Page 8: Website 101

HTML files are “Static”

• That Means they Don’t Change Until You– Change the code of the file– Upload the new file to the server

• Firms would hire a “webmaster” if they needed frequent updates to their website.

Page 9: Website 101

Example HTML Code<html><head><metacontent="text/html; charset=ISO-8859-1" http-equiv="content-type"><title></title></head><body style="color: rgb(0, 0, 0); background-color: rgb(51, 51, 255);" alink="#000099" link="#000099" vlink="#990099"><table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2"><tbody><tr><td></td><td></td><td></td></tr><tr><td></td><td style="text-align: center;"><big><big><big>HelloWorld</big></big></big></td><td></td></tr></tbody></table><br></body></html>

Page 10: Website 101

This is What You See

Page 11: Website 101

Each HTML File has Two Major Parts

• <Head>– Defines rules and provides information about

the page

• <Body>– Content and Design

Page 12: Website 101

Search Engines Use The Head to Help Identify the Purpose of the

Page• The <Head> includes <Meta> and other

HTML Tags that Tell Search Engines important Information Like– Description of the Page– Keywords on the Page– Title of the Page

Page 13: Website 101

But there are problems

• Average Joes can’t write code

• Websites built by programmers don’t look so hot

Page 14: Website 101

The First Major Evolution

Page 15: Website 101

“What You See is What You Get” Editors (WYSIWYG) Invented

• These programs help people build websites visually

• The program writes the code• Webpages can now be built by designers (who

understand the basic concepts of HTML.)

Page 16: Website 101
Page 17: Website 101

Two Major WYSIWYG Programs Emerge

• Macromedia Dreamweaver (1997)

• Golive Cyberstudio (1996)

Page 18: Website 101

You Also Need A Graphics Program to Create the Visuals For

Your Website• WYSIWYG Editors don’t make graphics• The most widely used graphics program is Adobe

Photoshop.

Page 19: Website 101

Adobe Bought GoLive and Macromedia and Put Out

Adobe Dreamweaver in 2007

Page 20: Website 101

Next Big Web Evolution

Standards and CSS

Page 21: Website 101

A Group Was Formed to Develop Website Standards

• W3C – The World Wide Web Consortium

• They Develop Web Standards and Guidelines

Page 22: Website 101

W3C Looked for Ways to Improve Consistency

• They create Cascading Style Sheets (CSS) in 1996

• CSS is designed primarily to enable the separation of document content (written in HTML) from document presentation, including elements such as the colors, fonts, and layout.

Page 23: Website 101

CSS Files Tell HTML Files How To Look

CSS File

Turn Blue!!!!OK CSS File, Whatever You Say!

HTML File

Page 24: Website 101

One CSS File Can Control the Layout of The Whole Site

CSS File

All of You Pages Turn Blue!!!!

OK CSS File, Whatever You Say!

HTML File HTML File

HTML File HTML File

Page 25: Website 101

This is why CSS files are often referred to as a “template”

Page 26: Website 101

W3C Also Wanted Information on the Page to Be Categorized by

Importance

• They created <h1> tags for the most important information on a page.

• Tags include <h1> to <h6> and <p> for paragraphs.

• Now search engines can have an understanding of the hierarchal importance of the information on the page.

Page 27: Website 101

W3C Also Wanted Disabled People and Search Engines to Know What

Pictures Were on the Page

• They require each picture to have an <alt> tag that describes the picture.

• Now search engines know that a page full of cat pictures is about cats.

Page 28: Website 101

If Your Code Adheres to W3C Standards that Means it

“Validates”

Page 29: Website 101

Next Web Evolution

Scripting and Dynamic Sites

Page 30: Website 101

As Websites Got Better They Required Better Technology

• So People Developed Scripting Languages to Augment the Abilities of HTML

• Augmented with these Scripting Languages, websites could do much more

Page 31: Website 101

Three Major Scripting Languages Emerge in the Late 90s

• Active Server Pages (Microsoft)

• Java Server Pages (Sun Microsystems)

• PHP: Hypertext Preprocessor, known as “PHP” (The PHP Group)

• All three scripting languages do the same thing

Page 32: Website 101

But Some of These Languages Brought Use Restrictions

• Microsoft said to use ASP, you had to use their server

• Sun said if you wanted to use JSP, you had to use their server

• PHP Group said you can use PHP with any server you want

• Guess what the most popular scripting language is….

Page 33: Website 101

You can Tell What Scripting Language is Used By the File

Name

• filename.asp = Active Server Pages File

• filename.jsp = Java Server Pages File

• filename.php = PHP File

Page 34: Website 101

Scripting Languages Make the Webserver Do Some Thinking as Well (why its called “Server Side Scripting”)

Page 35: Website 101

Example Code (We’ll Use PHP as our example)

<?php phpinfo(); ?>

Page 36: Website 101

What You See

Page 37: Website 101

Scripting Languages are Much Smarter than HTML

• Allows the transfer and processing of information between client (user) and server. (Example: Purchasing a Ted Trauner book on Amazon.com)

• Can connect and interact with databases

• Can create files on the fly (Example: Contact database exports your search to an Excel file)

Page 38: Website 101

One PHP File Could Act as Many Different Webpages

Index.php

= Index.html

Mycat.html Mydog.html mywife.html

Page 39: Website 101

Say What?

Page 40: Website 101

Let’s Look at this in Detail…

Page 41: Website 101

A PHP file doesn’t need to have design or content in it. It is

essentially naked.

Index.php

I feel so ashamed!

Page 42: Website 101

Since PHP can connect to a database and CSS file, it can be told

what to say and what to look like.

CSS File

Index.php

Database

Page 43: Website 101

When You Click a Link on the page, it changes into the page you want

to see. That’s why its called “dynamic”

Index.php

Page 44: Website 101
Page 45: Website 101
Page 46: Website 101

Both pages are Index.php

The two different webpages are coming from the same file.

Page 47: Website 101

Think About This Concept for a Second. Its important.

Page 48: Website 101

How Do You Control This Process?

Page 49: Website 101

If You Add Another PHP File to Control the Information in the Database, You Have What’s

Known as A Content Management System (CMS)

Page 50: Website 101

CSS File

Index.php

”Backend.php”

Page 51: Website 101

A CMS includes a Database and a Webpage used to Update the

Database

Page 52: Website 101

There Are Many Different Types of Databases You Can Connect to

Websites• Microsoft SQL (SQL=Structured Query

Language)• MYSQL (My Structured Query Language)• PostgreSQL• SQLite• Microsoft Access• Interbase• Filemaker• DB2

Page 53: Website 101

About These Databases

• They can hold information, instructions, text, etc. (i.e. Content)

• They are also relational, meaning they can make connections between different sets of data.

• They typically require specific database server software (except Microsoft Access)

• Some require specific scripting languages

Page 54: Website 101

The Page that Controls the Database is referred to as the

“Backend” or an “Administration Page”

Page 55: Website 101

Most “backends” include Word Processing features (i.e.

WYSIWYG) to help you create and update content

Page 56: Website 101

They May Also Allow You To Schedule When Content Appears

on Your Site.

Page 57: Website 101

Security Features in Backends Help Multiple Users Work Together

to Update Content

Page 58: Website 101

Now Anybody Can Update the Content of a Website

This creates a flurry of new websites called “blogs.”

Page 59: Website 101

CMS Puts “Webmasters” Out of Work

Page 60: Website 101

CMS Software Comes in Many Varieties

• Custom Made

• Free/Open Source

• “Off the Shelf” (Pay for Once)

• Software as Service (Pay Per Month)

Page 61: Website 101

Each CMS is built in a specific scripting language and requires a

specific type of database

Page 62: Website 101

A Large Majority of Corporate Websites Now Have Content

Management Systems

Page 63: Website 101

Next Web Evolution

XML

Page 64: Website 101

Some Felt HTML was Getting Too Old and Rigid

• HTML has predefined Tags

• Developers wanted a way to define their own tags

• W3C creates XML (Extensible Markup Language) in 1998

• XML provides a way to define tags and the structural relationships between them.

Page 65: Website 101

XML Allows Websites to Be More Interactive

• People use XML in various ways

• AJAX (shorthand for asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side to create interactive web applications or rich Internet applications.

Page 66: Website 101

Google Uses Ajax to Create a Web Based Email Program that Works

Like Desktop Email Programs

Page 67: Website 101

XML Gets Into Everything

• Microsoft adopts XML for new Microsoft Office Format (.docx)

• Sun and Apple adopt XML for their documents as well

Page 68: Website 101

XML Also Provides New Ways to Deliver Content

• RSS (Really Simple Syndication) is a XML-Based technology used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.

• RSS Files are known as “RSS Feeds,” but typically end in “.xml”

• Feeds are created automatically by the Content Management System

Page 69: Website 101

Many Websites now have RSS feeds that push their website

content to users

Page 70: Website 101

Visitors Can Subscribe to Get an Email Whenever You Post New

Information on Your Site

Page 71: Website 101

RSS is also the Driving Force

Behind Podcasts

Page 72: Website 101

RSS Feeds Can Be “Syndicated”

Page 73: Website 101

Why Would People Want This?

• Other sites syndicating your content means that more eyes will see your content

• Syndication will drive traffic to your site

Page 74: Website 101

Website 101 Final Exam!!!!!

1. What is the real difference between a website that is “static” and one that is “dynamic”?

2. How is editing a website in a WYSIWYG editor, like Dreamweaver, different from editing a website in a content management system?

3. What is the difference between a “CSS file” and a “template”?

Page 75: Website 101

Website 101 Final Exam!

4. Why is PHP the most commonly used website scripting language?

5. What is the benefit of having a RSS feed on your site?

6. If you substituted your CSS file with a different CSS file, what would happen to your site?

7. In which places can you store website “content”?

Page 76: Website 101

Website 101 Final Exam!

8. What is MYSQL?

9. Why would CMS put webmasters out of business?

10.What is W3C?

Page 77: Website 101

Website 102 Topics

• How Search Engines Work

• Website Analytics

• Search Engine Optimization

• Advanced CSS

• Flash and Flex

• Webservers

• How Open Source Works