Feb 7, 2007

HTML Tips

There are a couple of self closing HTML tags that I use all the time. One is the line break <br/> which drops the text or image down one line. Although it's not recommended, you can place several line break tags together in order to create white space between items such as photo's.

Another tag I like to use the horizontal rule tag <hr/> This tag creates a line across the page in the element you place it in, such as:

Right Here




You can also control the line width and color of the HR tag using CSS atributes in your style sheet.

hr {
border-style: solid;
border-color: red;
border-width: 2px}


By placing the above CSS in the style section of your template any horizontal rule you created would be red and two pixels wide.



Technorati Tags: , , ,

No comments: