+ All Categories
Home > Documents > To create page, Komodo Editor To share web page, UNC SERVER, ISIS ( To transfer page to ISIS,

To create page, Komodo Editor To share web page, UNC SERVER, ISIS ( To transfer page to ISIS,

Date post: 15-Dec-2015
Category:
Upload: emely-ailstock
View: 216 times
Download: 0 times
Share this document with a friend
27
Going to the Web
Transcript
Page 1: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Going to the Web

Page 2: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Viewing a Web Page To create page,

Komodo Editor To share web page,

UNC SERVER, ISIS (http://help.unc.edu/?id=108)

To transfer page to ISIS, Filezilla

Server

Web Server

Pages

Client

Browser

1 3

2

Page 3: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

File and Folder Name Rules

Everything that will be displayed on a web from the server must be in folder public_html

The first page of any web site is called index.html

When accessing a web page from isis, it begins with www.unc.edu/~onyen/

The remainder of the URL is the path BELOW public_html

Page 4: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Folder Structure: Mirror ISIS

COMP101› public_html

index.html and other files for home page Assign1…4 Lab1…10 [project]

Page 5: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

ISIS: UNC’s cloud

Page 6: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

UNC Site

UNC website› Everything that is going to be available on the

web must be in your public_html folder› Treats index.html as your home page› Default is “This page is blank”

Creating WWW Pages at UNC-CH› http://help.unc.edu/?id=108

Page 7: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Validate UNC Space

Test it: www.unc.edu/~onyen If you DON’T get a page

› Visit onyen.unc.edu› Subscribe to services› WWW button

Page 8: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Komodo Editor

Page 9: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Choosing Tools

Very fancy tools exist› Ease of building vs. control› Cost

We will use an editor that helps you get it right

We will NOT use tools that hide what you are doing

We will use Komodo Editor

Page 10: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Komodo Editor

Download instructions New

› Web … HTML(4.01)› Directory should be the folder we just built› File name example: index.html

File› Normal navigation

Page 11: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Page Structure

Page 12: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

General Page Structure<!DOCTYPE html>

<html> <head><! --- what shows up on the tab --- ><title>Put your title here</title><! ---defining character necessary for validation --- >

<meta charset="UTF-8"></head>

<body><! --- the “good stuff” i--- >What will appear on the page<footer>

Created by A. Person on a date </footer>

</body>

</html>

Page 13: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

The Body

Every page needs› Header (DIFFERENT THAN head)› Content› Footer

Minimal content› Header: title› Footer: who wrote it and when

Page 14: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Dividing Up the BodyBasic model:

<header>…</header>Use for main title

<div> … </div>Use for the main content

<footer> … </footer>Use for accreditations and citations

Each section can be formatted independently (soon)

Page 15: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Adding CSS to your HTML

The best (only way for this class!) way to insert CSS to your HTML is by using an External Style Sheet

Define all your styles in one placeEasily change the look of your siteUse the following <link> tag within the <head> tag

Save your external style sheet as a .css file.

Page 16: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Linking to style sheets

Use file name only for same folderhref=“mystyle.css"

Use full url for externalhref=“http://www.site/folder/file.css"

Page 17: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Why external? Google fonts!

google.com/fonts 2 steps

› Link to font (second style sheet!)› Use name in CSS

Page 18: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Filezilla

Page 19: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Filezilla

Download instructions Set up once

› EXCEPT that it uses your onyen password Onyen problems: need to see ITS Drag and drop or click to move

› Will confirm overwrites› Can default to always, but you may not

want to

Page 20: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,
Page 21: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

On your machine…

COMP 101 folder› public_html subfolder

Set bookmark in Filezilla for public_html on both machines

public_html (your machine)

public_html (isis)

FilezillaKomodo Editor

Page 22: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Chrome

Page 23: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Chrome

We will test our website on Chrome› Capabilities on other browsers as well› Need consistency for class

Why Chrome?› No plugins required› Cross-platform

If you don’t have it, download fromhttps://www.google.com/intl/en/chrome/browser/

Page 24: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Keys to Success

Page 25: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Keys to Success

Simple steps› Create your home page locally› Transfer pages› Test it from another machine

Have ONE folder where you always work locally

Be sure that you have the current version of your page

Page 26: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Validation

1. Before you uploada. In Komodo: View: Browser Previewb. In your browser: just open it

2. After you uploada. On another machine

3. Validation (resource page): W3C› url or file name

Page 27: To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,

Deadly Sins

Unvalidated web pages

Misposted web pages

No name and date Improper

indentation Tags not separated

from multi-line text

Serious Sins

Bad Ideas Long lines


Recommended