HTML

32
HTML ATS 315

description

HTML. ATS 315. A Web Server. Is a computer program that sends out (“serves”) files when they are requested by a “client”. Which files to serve?. Only files inside your public_html directory! (So mkdir a directory called public_html!). public_html. Which files to serve?. - PowerPoint PPT Presentation

Transcript of HTML

HTML

ATS 315

A Web Server

• Is a computer program that sends out (“serves”) files when they are requested by a “client”.

Which files to serve?

• Only files inside your public_html directory!

• (So mkdir a directory called public_html!)

public_html

Which files to serve?

• By default, the server will serve a file called index.html.

• Therefore, in today’s assignment you will write a file called index.html inside your public_html directory.

A Web Page!

Your Web Page

• http://wx-sun3.creighton.edu/~yourlogin

• This is slightly different than what it says in the text!

Examples of Tags in HTML

Hello

Hello

<B>Hello</B>

Hello

<CENTER>Hello</CENTER>

Hello

<CENTER><B>Hello</B></CENTER>

Hello

<BIG>Hello</BIG>

Hello

<BIG><BIG>Hello</BIG></BIG>

Hello

Hello

Hello

<I>Hello</I>

Hello

<U>Hello</U>

Hello

Hello

Hello

Hello<BR>How’s the weather?

How’s the weather?

<A HREF=cnn.com>Hello</A>

Hello

<BODY bgcolor=#ffff00>Hello</BODY>

Hello

<BODY background=cloud.gif>Hello</BODY>

Hello

Hello<IMG SRC=cloud.gif>cloud!

Hello cloud!

<IMG SRC=cloud.gif>

<CENTER><IMG SRC=cloud.gif></CENTER>

Getting Graphics Files for Your Web Page

• Steal them from other web sites• Digital cameras• Draw something in Paint, Illustrator, etc.

• The trick is getting them onto wx-sun1 and into the public_html directory!

ftp

• File Transfer Protocol

• first step: Put your graphics images someplace “easy to find” on a PC.

• Where’s that?– Ideally, C:\– C:\standard– NOT a directory with a “space” in

the name!

• second step: connect to wx-sun1 via ftp

• Start

• Run• ftp wx-sun1.creighton.edu• Enter your login and password.

• third step: Get into the right directories.

• You are in your home directory on wx-sun1… you need to cd to public_html

cd public_html

• third step: Get into the right directories.

• Who knows where you are on your PC… you’ll need to lcd (“local change directory”) to wherever the images are!

lcd c:/

• fourth step: Get ftp into the right “mode”.

• Image files are “binary”, so type “bi”.

bi

• fifth step: Put the files from the PC onto wx-sun1.

• put tornado.gif

• sixth step: Quit ftp.

• quit