add images, color & extras making your html more exciting

25

Post on 21-Dec-2015

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Add Images, Color & Extras Making your HTML more exciting
Page 2: Add Images, Color & Extras Making your HTML more exciting

Add Images, Color & Extras

Making your HTML more exciting

Page 3: Add Images, Color & Extras Making your HTML more exciting

Getting Images

Find on the InternetMake ourselvesDigitize

Page 5: Add Images, Color & Extras Making your HTML more exciting

Getting Images

You create Software packages

Photoshop, PaintShop Pro, PrintShop

Check out products on Amazon.comBig Box of Art

Page 6: Add Images, Color & Extras Making your HTML more exciting

3 files per image

Master image High quality--stored offline

Access image Full screen--Web delivery

Thumbnail image Small view-- Web delivery

Page 7: Add Images, Color & Extras Making your HTML more exciting

TIFF (.TIF)

Used for master imageReproduction qualityFor future useUncompressedUsually large file - stored offlineExample: joplinscore.tif

Page 8: Add Images, Color & Extras Making your HTML more exciting

JPEG (.jpg)

PhotographsUsed often on web pagesCompressedColors-- up to 16.7 millionLarger files than .gifExample: joplinscore.jpg

Page 9: Add Images, Color & Extras Making your HTML more exciting

GIF (.gif)

Use for line drawings, logos, iconsSupports animationOnly understands 256 colors (8 bit)Can be transparent (web page

background shows through)Usually smaller file than other formatsExample: joplinscore.gifPNG

Page 10: Add Images, Color & Extras Making your HTML more exciting

File Formats

Uncompressed TIFF: Tagged Image File Format

Compressed JPEG or JPG: Joint Photographic Experts

Group GIF: Graphics Interchange Format

Page 11: Add Images, Color & Extras Making your HTML more exciting

Compression

File compressions are algorithms used to extract ‘extraneous’ information to make the file smaller

Information removedQuality decreases

Page 12: Add Images, Color & Extras Making your HTML more exciting

HTML -- Color

ColorPredefined Color NamesRGB color values (lots of charts on

Web)

Page 13: Add Images, Color & Extras Making your HTML more exciting

Now for some extras

Meta tagsDTDSpecial charactersComments

Page 14: Add Images, Color & Extras Making your HTML more exciting

HTML -- Meta tags

Meta tags<meta http-equiv=“Content-Type”

content=“text/html; charset=iso-8859-1”><meta name=“description” content=“A

short paragraph about the page.”><meta name=“keywords”

content=“library, libraries, MU libraries”><meta name=“author” content=“Barbara

Knotts”>

Page 15: Add Images, Color & Extras Making your HTML more exciting

Meta Tags

How are they used Search engine indexing Can we prevent indexing

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

Google example (similar info. on Yahoo help)http://www.google.com/remove.html

Page 16: Add Images, Color & Extras Making your HTML more exciting

Now for some extras

Document Type Definition (long entry above <html> tag defining HTML version used)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

Page 17: Add Images, Color & Extras Making your HTML more exciting

More Extras

Special charactersExamples

&nbsp; (nonbreaking space)St.&npsp;Louis

&amp; (ampersand)Milk &amp; Cookies

&quot; (quotation mark)&quot;Go Cards&quot;

Page 18: Add Images, Color & Extras Making your HTML more exciting

More Extras

Comment

Begin <!--Nothing below will display

End -->Check out source of

bengal.missouri.edu/~knottsb

Page 19: Add Images, Color & Extras Making your HTML more exciting

More Extras

Checking your html http://validator.w3.org http://htmlvalidator.com http://www.anybrowser.com/

siteviewer.html

Page 20: Add Images, Color & Extras Making your HTML more exciting

HTML -- Let’s Review

HTML’s basic four tags<html></html><head></head><title></title><body></body>

Document Type Definition (long entry above <html> tag defining HTML version used)

Page 21: Add Images, Color & Extras Making your HTML more exciting

HTML -- Let’s Review

Container vs empty tagsContainer <p></p>; <a></a>Empty <br>

Attributes (modify HTML tags)<img src=“my.jpg” height=“25”

width=“30” alt=“My Image”>Four attributes (src, height, width,

alt)

Page 22: Add Images, Color & Extras Making your HTML more exciting

HTML -- Let’s Review

Heading Elements - varies font sizeLevels 1 (largest) to 6 (smallest)<h1></h1>Inserts a line break before and after

Paragraph Tag<p></p>Inserts a line break before and after

Page 23: Add Images, Color & Extras Making your HTML more exciting

HTML -- Let’s Review

Line Break Tag<br>Manual line break

Text formatting<b></b> <em></em><i></i> <strong></strong><u></u> (would you use???)

Page 24: Add Images, Color & Extras Making your HTML more exciting

HTML -- Let’s Review

TablesTags to remember

<table><tr><td><td></tr></table>Table attributes to remember

cellpadding, cellspacing, border, width, summary, heading

Table data cell attributes to rememberalign, valign, colspan, rowspan

Page 25: Add Images, Color & Extras Making your HTML more exciting

Create Your Own (you should be able to do for Portfolio)

DTDFour required tagsMetaLink

bookmark

ImageListCombination of

above

TableColorHeadingFonts Paragraph/Line

breakMailto:StylesCombination