Web Technology: Mohamed Yasin
Web Technology: Mohamed Yasin
Instructor -
Pre Requirement
Some Basic Knowledge in the following areas
Final Output
Client and Server Technology Operating System (Linux /Windows) URL- IP Address- Domains IP Protocols {http, www, ftp, smtp, pop, https} Web Page Web Site Browser Photoshop or any photo editing tool
E-Commerce Models
Business-to-Business (B2B) model
www.alibaba.com , www.ec21.com
Web Page File Names Each webpage will have an extension of either : .html, .htm
.htm - DW versions prior to version 8 .html DW 8 version and later uses this extension The code is what the browser uses to display the webpage on your screen
.shtml
Server Side Includes means that html document has special commands for the server to process ie. Other data to pull in from server, counter processing etc. please parse this file before displaying it in the browser since it contains server commands
Adobe Dreamweaver
vHistory of Dreamweaver
o1997 Developed by Allaire Systems o2001 Macromedia acquired Allaire o2005 Adobe acquired Macromedia o2007 Adobe Dreamweaver 9 ( CS3 )
- 4 / 07
Dreamweaver Versions
Dreamweaver is a web page editor & site management tool WYSIWYG interface much easier to work with Create and edit pages Link them easier Site management: Organize files/folders, Moving files, rearranging pages, and
Dreamweaver Screen
PANELS:
Provide you with commands/propertie s & characteristics of the current object or task you are busy with
Can move them around on the screen (click and drag) Most common floating panel is the Property Inspector
All Quires and Comments: [email protected]
Dreamweaver Windows/Panels
Document window
The actual working environment where you are entering text, images to build your web page
Site Panel
folder that you are currently working on Gives filenames, path directory etc.
Property Panel
C h a ra cte ri cs o f o b j cts/ text th a t yo u h a ve sti e i se rte d i . S i , co l r, text fo n t e tc . n e ze o
All Quires and Comments: [email protected]
To hide/show panels
Press <F4> key to make panel appear and disappear.
To close a panel simply click select Close panel Drag panel and lock it into place
Website for organization Polar bear site All webpages stored on H: polarbears
index.html Homepage or Splash page
All webpages pertaining to a website are stored in a folder on your computer called polar Dreamweaver refers to this folder as a site (DW associates a descriptive name with the folder name as identified through steps of Manage Sites) First webpage is usually called index.htm or .html
All Quires and Comments: [email protected]
Links for the simple structure is: Assume the domain name for this site
ArcticAnimals.org
Thus the website would be:
http://www.ArcticAnimals.org
http://www.ArcticAnimals.org/polarbears OR http://www.ArcticAnimals.org/polarbears/index.html
http://www.ArcticAnimals.org/polarbears/habitat.htm l
All Quires and Comments: [email protected]
Why is it important that you call the homepage index.html? Once you transfer your files to a server into a folder called polarbears , the URL address will depend on which server you upload it to. For example:
http://publish.uwo.ca/~vtryphon/polarbears www.uwo.ca/polarbears www.brescia.uwo.ca/polarbears
To view another webpage within the site, the URL address would be:
http://publish.uwo.ca/~vtryphon/polarbears/habitat.html www.uwo.ca/polarbears/habitat.html www.brescia.uwo.ca/polarbears/habitat.html
All Quires and Comments: [email protected]
New site
Folder/files exist
N o file s e x ist y e t B u t n e v e r w o rk e d b u t w ill b e w ith file s in D W cre a tin g th e m Note: You can only work on one site at a time (but you can switch between sites but must close each site before you open the next
All Quires and Comments: [email protected]
File Names
Rules for File Names 1.Do not use spaces in your file names and folders (even though Word files allow it!) facts and stats.html vs factsandstats.html 2.Do not use capital letters in your file/folder names (due to case sensitivity on some servers ie. Panther)
E x a m p le : If th e file
S e rv ice s . h t m l
w a s u p lo a d e d
Entering Text
Automatic line wrapping nThe width of your paragraph depends on the width of the Web browser window (unless text is entered into a table
n
Paragraph break Leaves a blank line between lines Press <Enter> Line break no space between lines Press <Shift><Enter>
View Layouts
Design View: - shows the WYSIWYG view Split: - combo of both views (Design and Code) Code View: shows your HTML code
Preview icon
You must always preview in as many browsers & different versions Ie. Internet Explorer, Firefox, Netscape etc.
All Quires and Comments: [email protected]
Associates a general description of what webpage is all about -- an identity Displays title on first line (title bar) when page is opened in browser window
Importance:
http://www.brescia.uwo.ca/curr
ent/advising/index.html
Formatting text
REVIEW:
Color: hexadecimal vs RGB web safe pallette Size: Pixels vs points Font Type: Serif vs. Sans-serif
Control:
ie. H1, H2, H3, H4, H5, H6 (predefined approximate sizes and bolds text)
a) Headers
b)Text color ie. Blue, green, red,.. c) Text size ie. 8 px, 10 px or 8pt, 10 pt, 12
pt,n
d)Font type ie. New Times, Verdana, e) Special effects ie. Bold, italics, underline,
superscript, subscript etc
Headers Font type Text Size Text Color Special Effects
Indenting Paragraphs
Can indent/outdent a paragraph to make it stand out. Beware: if text separated by break lines
Hi-light text or place cursor in the paragraph. 2.Click indent or outdent icon in Property Inspector as many times to indent text over.
1. 3.
All Quires and Comments: [email protected]
Graphics
Enhances the appearance of a web page Images can be obtained from scanner, digital camera, clipart, images from internet Common universal image formats .gif clipart .jpg photo .png
IMPORTANT Lower download times IMPORTANT Use smaller sized graphics Resize a larger image in a graphics pkg rather than in Dreamweaver Any resizing you do within Dreamweaver will not affect the download speed Optimize: color resolution, compression will affect quality and size
All Quires and Comments: [email protected]
Estimated download time To view/change speed From menu select Edit>Preferences>Status bar
Image Attributes
Once image is inserted, click on it and then you can control attributes through Property Inspector panel
Alternative Text
Displays text associated with the image if using a text only browser may display while graphic is loading when mouse passes over the graphic
To meet Barrier Free Access" which is the initiative to make sure information, by those with those with disabilities requiring special software to "read" the information.
Creating Links
You can LINK to files of type: Other html files (.htm, .html) Proprietary software: Word, Excel, etc. Images (.gif, .jpg etc) Acrobat Reader files (.pdf)
All Quires and Comments: [email protected]
1. To another web page within your site 2. To another website on the Internet http://www.uwo.ca 3. To an e-mail address mailto:[email protected] 4. Creating an Image Hyperlink 5. 6. Create multi- links within an image (image map) 7. To jump to a specific spot (other than beginning of the webpage) within a web page (setting
Opens in a new window Set to ____________ You can type URL address directly Must start with ___________________ ex. http://www.uwo.ca
1.Select the text that you want to turn into a hyperlink. 2.From the menu, select Insert > E-mail Link
[email protected] a
Or enter directly
mailto:[email protected] a
1.Select the image that you want to turn into a hyperlink. 2.In the Property Inspector, by the Link field, click on the folder. 3.Select proper path directory and then highlight the file to link to and then click Select. 4.Notice that the image is now a hyperlink.
All Quires and Comments: [email protected]
1.Select the image 2.In the Property Inspector, type a descriptive name in the Map field. 3.Click on a drawing tool. Draw an area on the image using the tool. 4.In the Property inspector, Click on the folder beside the Link field, and proceed to indicate the file that the link will be associated with this hotspot.
All Quires and Comments: [email protected]
Useful when a page is very long and you want to jump to different sections of the SAME webpage or to a spot on a different webpage other than the beginning.
n
2-Step Process
(1) Create the anchor (2) Create the link to the anchor
2 1
(1) Create the anchor
ashley
#ashley
All Quires and Comments: [email protected]
http :// www . thedancemovement . ca / facul
BUT .
Back to Top
Tables
Stretch Stretch
640 x 480
Stretch
Stretch
http://www.largnet.on.ca/
640 x 480
ideal
http://www.largnet.on.ca/
1.Draw a layout of your website using tables (use fixed 780 pixels for width)
Inserting a Table
1. Click at point where you want table to appear 2. From menu select Insert >Table 3. In the Insert Table dialog box, enter # of rows and columns. 4. Set the table width in terms of pixels or %
Table
Merge icon
Split icon
Merging cells
Highlight the cell(s) that you wish to merge. nOn Property inspector, click on Merge icon.
n n
Splitting cells
Highlight the cell that you wish to split. nOn Property inspector, click on Split icon. A pop up box asks whether you are splitting into rows or columns and how many.
n
Table properties
Click anywhere on table 2.Right-click and select Table >Select Table 3.Property Inspector reflects table properties. Then set property values accordingly.
1. All Quires and Comments: [email protected]
Cell properties
Width & Height of cell as pixels, percent Cell border color (note: Table border must
be >0) cells
4 5 1.Select cell(s) you wish to change its property 2.In Property Inspector (expand box), and select desire feature you wish applied.
1/2
All Quires and Comments: [email protected]
Web Publishing
Once your pages are ready, you must upload (transfer) the pages to your server with
http://www.uwo.ca/its/doc/hdi/infoservices//ssh-telnet.html
1. Draw a layout of your website using tables (use fixed 780 pixels for width)
Web pages will NOT format as precisely as something like a MS Word document to be printed because everyones resolution is different and screen size is different. Design a general webpage and then save it and make copies for each page in your site and add the content to the copies Dont forget to make an images folder! Put your images in the folder BEFORE you start adding them to your page. Try previewing your page in more than one browser It is easier to create the top level folder and subfolders first and then point Dreamweaver to that folder Always use lower case names with no spaces All Quires and for all folder and all file names Comments: [email protected]
Dreamweaver Tips