37
Basic Webpage Design Building website Using Dreamweaver And Importing API’s.

Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Embed Size (px)

DESCRIPTION

Many Different Types of Websites And their Resources HTML Markup provides a map to various site resources, including images, videos, audios, flash, java, CSS, and other files. The Resource Directory is generally holds media files, while HTML files remain in the root folder. Prelimenaries of Dreamweaver

Citation preview

Page 1: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Basic Webpage Design

Building website Using Dreamweaver

And Importing API’s.

Page 2: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

ObjectivesObjectives• After completing this lesson, you should

be able to do the following:– Building your website using Dreamweaver– Familiarize with the dreamweaver

environment.– Identify the advantages of using

dreamweaver over notepad and other tools.– Deploy your website using FTP embbeded

in dreamweaver– Import API’s available like google map

Page 3: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Many Different Types of Websites

And their ResourcesHTML Markup provides a map to various site resources, including images, videos, audios, flash, java, CSS, and other files.

The Resource Directory is generally holds media files, while HTML files remain in the root folder.

Prelimenaries of DreamweaverPrelimenaries of Dreamweaver

Page 4: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

File Names: HTM vs HTML

.HTM and .HTML are equivalent, but if two files have the same name and are in the same directory, your web server will choose which to use based on its settings.

•Both call MIME type of text/html on server•HTM is older, back on Windows 3.x extensions could only have 3 characters•The normal default is HTML, but check with your provider.

Best practicesBest practices

Page 5: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

File Names: Best practices

Though many modern servers will allow any file name to be used, it is best to convert your files into the older format that will function with all servers.

•All lower case letters (file names are CAPs sensitive) i.e. Index.html is a different file than index.html•No Spaces, instead use hyphens (-) or underscores (_)i.e. spaces will be converted to “%20”, resulting in confusing file names•Use Keywords in file names•Keep file names Short

Best practicesBest practices

Page 6: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

File Names: Best practices

Though many modern servers will allow any file name to be used, it is best to convert your files into the older format that will function with all servers.

•All lower case letters (file names are CAPs sensitive) i.e. Index.html is a different file than index.html•No Spaces, instead use hyphens (-) or underscores (_)i.e. spaces will be converted to “%20”, resulting in confusing file names•Do not use Special Characters, such as # " & % , etc.•Use Keywords in file names•Keep file names Short

Best practicesBest practices

Page 7: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

File Names: Best practices

Also…

•The file name should be no more than 32 characters, including the ".html" or ".htm" file suffix.•There should only be one “.”, placed before the extension•All files should start with a letter•Ensure the proper suffix for the file type (i.e. .html, .jpg, .gif, .css, ect.)

Best practicesBest practices

Page 8: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

File Names: Best practices

These are valid file names:

These are invalid file names:

james-smith.html

John-and-Marys_Wedding.JPG

rWalker.html

harrisfiles.html

james smith.html

John&Mary's.htm

4myWedding.JPG

R. Walker.html

harris.html_files.html

Best practicesBest practices

Page 9: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

File Names: SEO and Naming

The first word has the most “weight” in how search engines find your page in File Names AND Page Titles. Always use your Keyword first, not a pronoun or introductory word.

The words “A” and “The” are exceptions, as they are generally ignored.

<title>A Smith Family</title> will be indexed under "Smith". <title>The Smith Family</title> will be indexed under "Smith". <title>Smith Family</title> will be indexed under "Smith". <title>My Smith Family</title> will be indexed under "My"

Best practicesBest practices

Page 10: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

WebSite Mapping:

Organizing and Planning your WebsiteWhen designing a website, organizing the site content BEFORE you start building can save time and resources.

A good way to do this is by building a flow-chart called a Site Map:

Best practicesBest practices

Page 11: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Best practicesBest practices

Example of sitemap

Page 12: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Adobe Dreamweaver is a Graphical User Interface (GUI) for web design.

Adobe offers a package for Web Developers called the Adobe Web Design Premium Package, containing all the software that you need. (Academic Price ~$449, Normal Price ~$1799)

Best practicesBest practices

Page 13: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Dreamweaver EnvironmentDreamweaver Environment

Page 14: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Web TemplatesA Breeze in Dreamweaver

Templates are “Stock” websites that can be purchased or downloaded. You then change the default information to your own information.

We will talk more about templates in a later lecture. For now, let’s take a quick look at one.

http://www.templatesbox.com/download/271.htm

Example TemplateExample Template

Page 15: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Web TemplatesTables as a layout element!Note:

•Images are used in irregular tables to create the “look”•Even though buttons look “slanted” all images are actually straight on the page (only rectangles, no “tilt”)•Images can become links•The text is housed in empty table cells

http://www.templatesbox.com/download/271.htm

Example TemplateExample Template

Page 16: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Web Templates

Dreamweaver TemplatesNote that Dreamweaver comes with many built-in simple templates for you to use.

Example TemplateExample Template

Page 17: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

For now, let’s just start with a blank document (no template)

Example TemplateExample Template

Web Templates

Dreamweaver Blank Document

Page 18: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Dreamweaver Basics1. Save as first-dreamweaver-page.html2. Change the Title (let’s build a New Page for Your Site)

Change title

Or Change title here

Navigating DreamweaverNavigating Dreamweaver

Page 19: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Dreamweaver Basics

Page PropertiesLet’s format the page properties

Navigating DreamweaverNavigating Dreamweaver

Page 20: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Dreamweaver Basics

Page Properties (choose HTML)

Navigating DreamweaverNavigating Dreamweaver

Page 21: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Dreamweaver Basics

Page PropertiesNotice what happened in the HTML when you used this tool:

<html><head></head><body bgcolor="#000099" text="#993366" link="#999900" vlink="#006699" alink="#003399" leftmargin="20" topmargin="10" marginwidth="5" marginheight="6"></body></html>

Navigating DreamweaverNavigating Dreamweaver

Page 22: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Attributes of the Body tag control the master Page Propertiesbackground="url" Background Image

bgcolor="#??????" Background Color

text="#??????" Document Text Color

link="#??????" Link Color

vlink="#??????" Visited Link Color

alink="#??????" Active Link Color

bgproperties="fixed" Background Properties - "Fixed" = non-scrolling watermark

leftmargin="?" Side Margin Size in Pixels (Internet Explorer)

topmargin="?" Top Margin Size in Pixels (Internet Explorer)

Navigating DreamweaverNavigating Dreamweaver

Page 23: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

HTML FramesWith frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.**This is the “Old way” of designing.

The disadvantages of using frames are:•Frames are not expected to be supported in future versions of HTML•Frames are difficult to use. (Printing the entire page is difficult)•The web developer must keep track of more HTML documents

Navigating DreamweaverNavigating Dreamweaver

Page 24: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Navigating DreamweaverNavigating Dreamweaver

Page 25: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

So if HTML Frames are Outdates, why learn them?Many modern 3rd party sites provide frames you can insert on your own webpage, since not all frames have to be from the same site!

Examples include: Facebook, Weatherbug, Google maps

Some are now offered in XHTML or Javscript format, but many are still coded using “insertable frames”, or “iframe” tags.

Navigating DreamweaverNavigating Dreamweaver

Page 26: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Navigating DreamweaverNavigating Dreamweaver

Page 27: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

The Google Map Code<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?

f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=jacksonville+nc&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=55.674612,135.263672&amp;ie=UTF8&amp;hq=&amp;hnear=Jacksonville,+Onslow,+North+Carolina&amp;t=m&amp;z=12&amp;ll=34.754052,-

77.430241&amp;output=embed"></iframe><br />

<small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=jacksonville+nc&amp;aq=&amp;sll=37.0625,-

95.677068&amp;sspn=55.674612,135.263672&amp;ie=UTF8&amp;hq=&amp;hnear=Jacksonville,+Onslow,+North+Carolina&amp;t=m&amp;z=12&amp;ll=34.754052,-77.430241" style="color:#0000FF;text-align:left">View Larger Map</a></small>

Navigating DreamweaverNavigating Dreamweaver

Page 28: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Some iFrame Widget Examples

Google Map Widget

FaceBook “Like” Widget

Weatherbug Live Weather Update Widget

Navigating DreamweaverNavigating Dreamweaver

Page 29: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Creating Frames in Dreamweaver CS5

Navigating DreamweaverNavigating Dreamweaver

Page 30: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Dreamweaver Basics

Let’s Explore HTML Frames

HTML Frames•Split frame up•Click on bottom frame, Split frame right This should give the three frame layout•Change the src to your files•Change the attributes using the GUI panel (below) or HTML•Set the NoFrame Data (what shows up if the browser doesn’t support frames)•Modify each page as necessary•Save ALL files (the frameset.html and pages.html)

Navigating DreamweaverNavigating Dreamweaver

Page 31: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Navigating DreamweaverNavigating Dreamweaver

Page 32: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Setup FTP In Dreamweaver CS5

Navigating DreamweaverNavigating Dreamweaver

Page 33: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Setup FTP In Dreamweaver CS5

DO NOT CLICK SAVE YET

Navigating DreamweaverNavigating Dreamweaver

Page 34: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Setup FTP In Dreamweaver CS5

Click Servers

Click the “+” icon

Navigating DreamweaverNavigating Dreamweaver

Page 35: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Setup FTP In Dreamweaver CS5

1. Check this box

2. Fill Out and Click “Test”

3. Save

Navigating DreamweaverNavigating Dreamweaver

Page 36: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

Setup FTP In Dreamweaver CS5

Navigating DreamweaverNavigating Dreamweaver

Page 37: Basic Webpage Design Building website Using Dreamweaver And Importing APIs

SummarySummary