Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Setting up Your Website Using HTML and JavaScript to Develop Websites.

Similar presentations


Presentation on theme: "1 Setting up Your Website Using HTML and JavaScript to Develop Websites."— Presentation transcript:

1 1 Setting up Your Website Using HTML and JavaScript to Develop Websites.

2 2 What we will look at: l Optimizing your site for search engines l Miscellaneous HTML topics »Using Image maps »Linking within a webpage

3 3 Competency Objectives 1. Understand how search engines work 2. Understand how to set up image maps 3. Learn how to link within a page Competency Alert: You need to know this ! Common Problem Area! People seem to forget this

4 4 Search Engines l Search engine – A site that allows you to search the web for stuff l Typically has web a back-end database with indexed key words »Has a special program (called a robot, crawler or spider) that – follows links and find popular sites –Creates indices or search terms for site and puts into DB l Google was built at Stanford University »Originally had 3-4 parallel ‘spiders’ indexing about 100 pages / second. l How google Is different »Google pushes the most popular site to the top »A popularity indicator: The number of popular sites that link back to your site l yahoo.com and msn.com are next most popular sites.

5 5 Some things to check l Has your site been indexed by google? »Try search term: site:yourdomain.com 9 pages have been indexed from webwizard.awl.com 7,790 pages have been indexed from www.depaul.edu

6 6 What do they index? l Move search engines fine tune/overhaul their algorithms periodically. l Each search engine has its own index method: »Altavista might index all content of your site »Others might derive keywords from your content –Based on,, tag content. »Other sites might use Meta Tags –Engines that appear to use Meta tags: l AltaVista, Direct Hit, Excite, HotBot –Sites that do not appear to use Meta Tags: l Google?, lycos. Yahoo?

7 7 Using Meta tags... l A meta tag is: »An optional HTML tags used to describe your site » Perhaps most important meta tag. Include a key specific search string. May be used when a search engine shows search results. Put most important keywords first and keep less than 40 characters. Put some keywords to try to ‘help’ the search engines. Still they may derive the keywords based on site’s content. Competency Alert: You need to know this !

8 8 How else can you ‘help’ the search engines? 1. Make sure your search terms are in the content of you home page. lFor example, may want ‘hands-on training’ inside the content 2. Reciprocal linking – You may want to: lEstablish a page that invites people to exchange links with your site. lSearch sites in a similar fields that you request a reciprocal link (that is, you link to them and they link to you.) Google judges a sites popularity by number of sites that link to it. Therefore many sites reciprocal linking programs.

9 9 Reciprocal Linking l Some sites will keep a ‘sponsors’ or ‘references’ page »Basically seek to exchange links Seek to exchange links Sites they’ve probably already exchanged with

10 10 What Help Is there ? l There are many companies in the search engine optimization business »One site is http://www.evrsoft.com/ http://www.evrsoft.comhttp://www.evrsoft.com has free tools for meta tag generation, ranking tool, traffic comparison automatic search engine submit tool, and search term checking tool.

11 11 What we will look at: l Optimizing your site for search engines l Miscellaneous HTML topics »Using Image maps »Linking within a webpage

12 12 Building Image Maps l You can divide up any image into regions and have each different region link to different places. l Imagemaps - a webpage image that has more than 1 link on it. Depending upon where you click you link to different places.

13 13 An image map divides the image up Top show image with 2 of the separate pieces Here a couple images are placed together to look like 1 image.

14 14 Manually creating an image map. l You could use a photo editing tool »Cut image into pieces and display next to eachother. Note: specifying the height and width of image, does help browser to reserve space for image while downloading. Show this image as a hot link, when clicked go here

15 15 Disadvantages of manual method... l Couple of disadvantages with manual image map: 1.Need to use a paint program to manipulate image 2.Need to make sure they display properly. 3.Restricted to the types of images you can cut out (like rectangles or squares.)

16 16 Image maps... l You can use image maps to specify clickable regions of a regular image. l Can specify » Rectangles – need to know pixel coordinates of upper left corner and lower right corner of each rectangle »Circles »Polygons. Lower left corner of each area Upper right corner of each area The lines here are for illustration purposes only.

17 17 How to find pixel coordinates? 1. Can use a image editing program... - mspaint, paint-shop pro or Gimp work fine As put cursor here, the pixel location show here in mspaint Note: mspaint can be started in XP by going to start->run and entering mspaint Could move cursor over image to determine pixel location

18 18 Record the pixel location l Record each upper left and lower right pixel location »Rectangle 1 "0, 0, 137, 82" »Rectangle 2 “171, 62, 242, 84" »Rectangle 3 "263, 59, 348, 86" »Rectangle 4 “359, 53, 453, 107" »Rectangle 5 “458, 49, 566, 108" Upper left coordinateLower right coordinate

19 19 Defining the image map... A Manual Image Map Define the name of image map to use Define image map called navigate. (name is old style tag reqd by some browsers). Use the area tag to specify the shape, coordinates, and link for each clickable area

20 20 Creating circles and polygons l Two other shapes you can create: »circle – specify the center-x, center-y and the circle radius (in pixels). »polygon – specify the x and y coordinate of each point in polygon <area href=“stuff2.html” shape="poly" coords="300,70,300,200,165,250" >

21 21 Creating Image Maps l Within XP, can use mspaint to create »Start by start->run and enter mspaint »Set image size by image -> attributes Set attributes from image option

22 22 Creating boxes on image Can fill image with fill tool and select a color at bottom Boxes can be drawn using box tool To duplicate box, goto edit->select all, select box, and copy and paste the box. Drag it where you want

23 23 Putting Text on Image Use the font tool to add text Change the size and style of text When saving image, make sure it’s a gif or jpg

24 24 Getting the coordinates Record the coordinates of each box you want clickable

25 25 What we will look at: l Optimizing your site for search engines l Miscellaneous HTML topics »Using Image maps »Linking within a webpage

26 26 Linking within a page l We learned that we can link to a page with » mypage »This opens the browser to the TOP of the page at www.mypage.com www.mypage.com l Sometimes want to open to a specific location in page. When click here, link opens up in center of page Note scroll bars about ½ down page

27 27 Creating links within a page l To create a link within a page 1. Find the spot inside the page you want to link to: 2. Define a name for that place: – 3. Now you can create a link to that spot with: Click Here to goto Bird Section. OR Click Here to goto Bird Section. If location within another page. Defines a label or bookmark for that location

28 28 For example, l Suppose have 2 pages, page1.html and page2.html. l When click link on page1.html takes you to sesame street section of page2.html

29 29 How it will works... l Suppose the body of page2.html contained l Then page1.html can link with Sesame Street Characters These three characters are Bert, Ernie and the infamous Cookie Monster. Notes 4 Click here to goto Seaseme Street

30 30 Summary... l Optimizing your site for search engines l Miscellaneous HTML topics »Using Image maps »Linking within a webpage

31 31 Module 1 Hands on Assignment plain_map_image.gif plain_image.gif You can use either of these files imagemap_paint.gif

32 32 One Possible Solution A Manual Image Map

33 33 Another lab exercise... l Create a set of meta tags for a web site for ‘Happy Harry’s Hardware store »He expects to sell hammers, screwdrivers and drills online

34 34 One possible solution Happy Harrys Hardware Store


Download ppt "1 Setting up Your Website Using HTML and JavaScript to Develop Websites."

Similar presentations


Ads by Google