Wednesday, April 4, 2012

5 Tips for Using HTML Tags | Several Basic HTML Elements that You Must Know

You may already know how to use <b></b> and <i></i> HTML tags. But actually you want to some elements shown in bold, you can also use <strong></strong> tag. The <strong></strong> tag is just to show the content strong important. Similarly, if you want to show content in italic, you can also use <em></em> tag. By using this emphasis element, you can slightly change the meaning of the sentence.

To make quotations, you may need <blockquote></blockquote> and <q></q> tags. What is the difference between <blockquote></blockquote> and <q></q> tags? The first one is for long quotes and the second one is for short quotes. If you want to show where the quote comes from, you can use “cite” attribute with these two tags.

Many people may want to know how to show a book title using HTML elements? What you need is <cite></cite> tag, and the book title will be shown in italic.

If you want to define a phrase in your article, you need to use <dfn></dfn> tag. But you only need to use it when you make the definition the first time.

Sometimes you may want to display some text with a line through the center. For instance, you may want to cross out the old price but you don’t want to completely delete it. At situation like this, you need to use <s></s> tag.

No comments:

Post a Comment

Search & Win