HTML: an Introduction - Part III

<P> </P>
These paragraph tags will break a long document into several smaller paragraphs for readable reasons. There are some attributes and their values  that can go along with these tags. For example, a paragraph tag could look like this one:  
<P align = "left">
. The attribute ALIGN and its value LEFT will format the paragraph left-sided by default. Other values are "CENTER" and "RIGHT".

<HR>
This tag will create a solid horizontal rule, a line that extends across the Web page. It's normally used to divide or seperate several sections on the Web page for more readable purpose
. Some important attributes can go with <HR> tag.

  • SIZE attribute defines how thick the horizontal rule is
  • WIDTH attribute defines how long the line appears on the page..
  • ALIGN attribute determines the appearance of the line. It can be set to LEFT, CENTER, or RIGHT
  • COLOR attribute defines the color of the horizontal rule.
  • NOSHADE attribute, if present, the horizontal rule has no 3D effect.
  • Example: <HR WIDTH=75%, ALIGN=CENTER COLOR=BLUE SIZE=2>


<ADDRESS> </ADDRESS>
The address tags enclose an author's name and address and often the revision date of the page. Text within the address tags usually are displayed in italics. Be sure to end each line of text in the address tags with a line break <BR>. For example:

<BR>
The line break tag instructs the browser to terminate the current line and begins a new line.

IMAGE TAG:<IMG SRC = "filename.extension">

  •  The image tag stands alone. The text in quotes tells the browser the file name of the image. Graphics on the Web usually end with the extension .GIF or .JPG. The attribute SRC in the image tag normally specifies the address or the path of the stored file name: mypicture.jpg,  for example.
  • If you store your image file in another different directory or folder, you have specify the path in the SRC attribute. For example, if your Web pages are stored on a Web server with the address is http://www.yourserver.com/yourname. However, if you store your HTML file and the image file in the same directory or folder, you may simply specify the image file name in the SRC attribute. For example: <IMG SRC = "mypicture.jpg">
  • Also, if your images are stored in a different folder or directory named images,  you may have to specify the path name, which is the address to the stored image file, in order to access the image file: /images/mypicture.jpg in SRC attribute, for example

<img src="http://www.yourserver.com/yourname/images/mypicture.jpg">
or: <img src = "/images/mypicture.jpg">