Title: Building Your Home Page: An HTML Primer
1Building Your Home Page An HTML Primer
- Presented by the CSIP Web Team
Greg Slabaugh Yun-Hui Fan Jordan Rosenthal Robert
Morris Samuel Li
John Glotzbach Jialin Tian Adriane
Durey Charlotte Doughty Dr. Mersereau
2Introduction
- This presentation is not
- FrontPage, DreamWeaver, Composer, etc.
- WYSIWYG
- JavaScript, Java, VB Script, ASP, CGI, VRML,
- This presentation is
- Basic HTML concepts
- Edit with text editor
3Outline
- Structure of the HTML file
- Title of document
- Format of body
- Text formatting
- Document structure
- Document objects (lists, links, images and tables)
4HTML File Structure
HTML tags are used to instruct the browser how to
format the text within the start and end
tags. Format ... The
name of the tag is not case-sensitive. The HTML
file contains a header and a body.
5HTML File
HTML
6HTML Header
The header contains the title of the document
along with keywords and other information related
to the document.
Web Page Title
7HTML Body
The body of the HTML file contains the
information you want the reader to view. The
effect of many HTML tags can be modified using
optional tag attributes.
...
8HTML Body
...
The pre-defined colors include black, silver,
gray, white, maroon, red, purple, fuschia, green,
lime, olive, yellow, navy, blue, teal, and aqua.
Custom colors are defined as rrggbb, where rr,
gg, and bb are hexadecimal intensity values.
9HTML Body
...
10Text Formatting
- Using formatted text is essential in many
documents. Formatting options include - Bold text
- Underlined text
- Italicized text
- Centering text
- Forced line breaks
11Text Formatting
Underlined text
Bold-faced
text
Italicized text
Centered text
SIZE4 COLORnavy Text in a new font
12Document Structure
Many documents have a structure with sections of
paragraphs along with a heading for each section
or sub-section. To create this type of document
with HTML, use the heading tags and the paragraph
tag.
13Document Structure
Section Heading Paragraph
1 Paragraph 2 2nd level
heading 3rd level heading Second
Section Heading ...
HTML provides 6 levels for headings, H1 through
H6.
14Lists
- Lists are a great way to concisely display
- information. List types include
- Ordered Numbered List
- Unordered Bulleted List
- (More)
15Lists Ordered Lists
-
- Tacos
-
- Burritos
-
- Enchiladas
-
16Lists Ordered Lists
-
- Tacos
-
- Burritos
-
- Enchiladas
-
Ordered list types include A, a, I, i,
and 1. 1 is the default.
17Lists Unordered Lists
-
- Tacos
-
- Burritos
-
- Enchiladas
18Lists Unordered Lists
-
- Tacos
-
- Burritos
-
- Enchiladas
Unordered list types include square, disc,
and circle disc is the default.
19Lists Nesting
-
- Tacos
-
- Burritos
-
-
- Chicken
-
- Steak
-
- Broccoli
-
Enchiladas 20Hyperlinks
- Hyperlinks are what make the web great. A
- hyperlink links to information, such as
- Another web page
- A location in a web page
- A persons email address
- A file on the web
21Hyperlinks Syntax
22Hyperlinks URLs
- URLs
- Absolute URLs Full path specified
- Yahoo!
- Relative URLs Relative path specified
- My Resume
- Web browsers automatically look for index.html
- or index.htm in the directory specified in the
- hyperlink unless given a filename.
Location of this page
Location of res.html
23Hyperlinks Name Attribute
- Name attribute
- Turns anchored text into a hypertext destination
- Used to make internal links
- Jump To Section 3
- Section 3
Example
24Hyperlinks Email and Files
Email My Email Other files paper.pdfMy cool paper PDF 500 KB HREF paper.psMy cool paper PS 1.2 MB
C source code code.mMatlab source code
25Images
- Native formats
- JPEG Used for larger images, 256 colors
- GIF Used for icons, buttons, animations, images
with transparent background - Tag
-
- .gif
- no closing tag
- Can make a hyperimage
- image.jpg
26Images Optional Attributes
- ALT Alternate text that is shown instead of,
or in - addition to the image
-
- WIDTH, HEIGHT Specify the width and height of
the image - image.jpg
-
27Tables
Tables are a powerful way to organize text and
images on a web page
-
- Cool Table
- Column 1Column 2
- Yellow5
- Green3
-
28Tables
-
- Column 1Column 2
- Yellow center5
- Both Columns
- YoR
-
Also note that tables can be nested
29Template
- Available on CSIP web site
- Uses HTML tags that are described in this
- presentation
Template
30Your ECE Web Page
- To use the template as your web page
- 1. Request a web account
- http//www.ece-help.gatech.edu/home_page/request.
html - (Requires ECE UNIX account)
- 2. Save template locally. In your browser, go to
- http//csip.ece.gatech.edu/Information/WWW_Templa
tes - IE Select View-Source and then File-Save
As, and - save as index.html.
- Netscape Select View Page Source, highlight
and copy the - text, paste into your text editor and save the
text as index.html. - 3. Once your web account has been set up, ftp to
users.ece.gatech.edu and put the index.html file. - 4. Your web page is http//www.ece.gatech.edu/log
in, where login is your ECE UNIX login name.
31Learning More
Online resources http//www.cwru.edu/help/introH
TML/toc.html http//www.htmlhelp.com/ http//www
.willcam.com/cmat/html/crossref.html http//www.d
avesite.com/webstation/html/