|
|
|
We are now going to discuss and demonstrate the alignment of text and images. We will start off by focusing on text first. <p> = paragraph in short term (or as we will call as "place") Whenever <p> is used, default alignment would automatically be "left" of viewers screen. We want to tell the browser where to place our following demonstration object. We will use the place attribute of "center" for this demonstration. We do this by adding an align="where to place" attribute. <p align="center"> will make any image or word following this appear in center of viewers page or, in a table. You may substitute this with "left" or "right". Cut & Paste Code Below: If you experience any alignment problems; try the following code: Cut & Paste Code Below: If this is a text word do you want it bold? If so, use following code: <b=bold> Cut & Paste Code Below: You may also use the following code: Cut & Paste Code Below: Then </p> closing the tag will end this particular object placement. This is what should your code should look like now: Cut & Paste Code Below: You may want to create dividers on your page separating one section from another. You can either install an image, or you can install a simple tag that will create a divider line. <hr></hr> will create the following divider line: (gray color is default color) Cut & Paste Code Below: Do you want divider colored? Add a Hex color.
Cut & Paste Code Below:
Now we will discuss how to make a clickable hyperlink from either a text word, or an image. We must first know the complete URL to make a link complete it's task to send viewer to a specific page. <a href= active hyperlink reference point for short. This is a very easy tag to remember; To make this a link we do the following: We will use our URL: http://www.DesignerWiz.com --> <a href="http://www.DesignerWiz.com"> any word here as visible text link.
Cut & Paste Code Below: If this was an image to link; We would do following: Cut & Paste Code Below: We must now tell the browser how to read size of the image to speed up load time. We do this by installing a simple addition to current tag:
We will add a width of image as 100 pixels, and height as 100 pixels (you can get the size of your images by right clicking on image and selecting properties). You should also include factor of border around your image, this would create a colored border surrounding your image in the color of link specifications you determined earlier. (you can regulate border="0" with numerals as high as needed. Use our HTML code test bed generator in examples to view different sizes) Code would be as follows:
Cut & Paste Code Below: It is recommended to install an <alt tag> = alternate option for short) for description of your image in event of image load failure, or viewer has images turned off on browser. This enables viewer to see text wording in place of an X broken image view, or viewer gets an explanation of link when cursor rolls over image. Code would be as follows:
Cut & Paste Code Below: Your Pad Editor should look something like this now depending on colors you choose to use. We will move onto installation of content and font commands in body of HTML document on next tutorial page. |