html tips

Use fieldset tag to place a border around your text

A simple easy to use tag to highlight a special paragraph or section…

Use the <fieldset> tag:

Drawing a box around your data couldn’t be easier, just use the <fieldset> tag. The <legend> element defines a caption for a fieldset. I saw this in a recent email and wanted to know how the effect was accomplished…it’s a neat way to highlight an important element and easy to use.

Update: Not sure if this will validate correctly on your web pages, it looks like it was designed to be used to group form data. I was impressed that the effect wasn’t wiped out in my email client. Use with care.

© 2012 In Touch, LLC