Untitled Document
Working with Text in HTML is very easy to understand. HTML provides a lot of types of tags to format a specific text in our desired specific style. For example: Sometimes we need to show BOLD text and sometimes ITALIC text and sometimes COLOURED text etc.
This gives our page a new fresh look in our costumized way.
Let's see these text styling tags one by one.
- <b></b> Tag: This tag is used to show bold text. Any text between these tags will become bold. For example: <b>SOME TEXT</b> makes a text bold when written in HTML code.
- <i></i> Tag: This tag is used to show italic text. Any text between these tags will become italic.
- <u></u> Tag: This tag is used to show a underlined text.
- <strong></storng> Tag: This tag is used to show strong text.
- <em></em> Tag: This tag shows emphasised text.
- <s></s> & <del></del> Tags: This tag shows
striked or deleted text.
- <q></q> Tag: This tag shows
qoute
on any text.
- <h1></h1>, <h2></h2>, <h3></h3>, <h4></h4>, <h5></h5>, <h6></h6> & <h7></h7> Tag: These tags are used to gives headings to your page. For example: You can give a main heading of page by <h1>Main Heading</h1> and a subheading by <h3>Sub Heading</h3>. These heading are in decreasing order according to their size, i.e. <h1> is the largest and <h7> is the smallest.
- <font></font> Tag: This is very useful tag because this tag is used to make your text colourful and also to change its font type as well as font size. For example: <font color="green" face="Comic Sans MS, cursive"> makes the text green and in a stylish font with a size of 6 </font>. Font face us used to change font family and font size can be 1 to 7.
Note : These are not all tags for styling text, but these are the most used tags. These can be used to show any type of stylish text. If you will properly understand the use of these tags then you can easily use any new tag coming your way.
No comments:
Post a Comment