Web hosting account - 1418 Introduction to HyperText Markup Language 4: Part

1418 Introduction to HyperText Markup Language 4: Part 2 Appendix J The markup on lines 23 25 Go to the feedback form causes a rectangular hotspot to be drawn around the coordinates given in the coordselement. A coordinate pair consists of two numbers, which are the locations of the point on the x and y axes. The x axis extends horizontally from the upper-left corner, the y axis vertically. Every point on an image has a unique x y coordinate. In the case of a rectangular hotspot, the required coordinates are those of the upper-left and lower-right corners of the rectangle. In this case, the upper-left corner of the rectangle is located at 3 on the x axis and 122 on the y axis, annotated as (3, 122). The lower-right corner of the rectangle is at (73, 143). Another map area is in lines 42 44 In this case, we use the value poly for the shape attribute. This creates a hotspot in the shape of a polygon, using the coordinates in the coordsattribute. These coordinates represent each vertex, or corner, of the polygon. The browser will automatically connect these points with lines to form the area of the hotspot. shape = “circle” is the last shape attribute that is commonly used in image maps. It creates a circular hotspot, and requires both the coordinates of the center of the circle and the radius of the circle, in pixels. To use the image map with an imgelement, you must insert the usemap=”#name” attribute into the img element, where name is the value of the name attribute in the map element. Lines 54 55 Harvey and Paul Deitel show how the image map name=”picture” is applied to the imgelement. J.8 Tags People use search engines to find interesting Web sites. Search engines usually catalog sites by following links from page to page and saving identification and classification information for each page visited. The main HTML element that search engines use to catalog pages is the meta tag (Fig. J.8). A meta tag contains two attributes that should always be used. The first of these, name, identifies the type of metatag you are including. The content attribute provides information the search engine will catalog about your site. 1 3 4 5 6

Leave a Reply