USING DIFFERENT STYLES IN HTML.
html provides us many ways to improve and glorify the structure, look and design of the pageSTYLES
some of such features are as follows
- BOLD.
- UNDERLINE.
- ITALICS.
- STRIKE THROUGH.
- SUBSCRIPT.
- SUPERSCRIPT.
- SYMBOLS.
- AND MANY MORE.......
LETS START WITH BOLD.
1. With the help of bold we can make the letters more visible and clear to see and also we can highlight the specific letters , words and sentences.
2. It is very simple to use this feature, just there is only one tag to use.
3. So use <b> bold tag in an area where you want to apply this effect and then close the bold tag
</b>. its that simple.
Lest see an example and understand this............
CODE
OUTPUT
As you can see the highlighted part has bold effect.
NOW LETS CHECK UNDERLINE.
1, Now underline. underline is as similar as bold.
2. underline is used when we have to highlight and make it more visible than other words in a sentence.
3. we have to use <u> open underline tag where we want to highlight the words and at the end close the underline tag</u>.
Lest see an example and understand this..........
CODE
OUTPUT
The highlighted sentences is underlined
LETS START WITH ITALICS.
1. Now italics. italics is as similar as bold.
2. It slants the selected words and sentences
3. <i> tag is used .
Lest see an example and understand this..........
CODE
OUTPUT
SUBSCRIPT, SUPERSCRIPT AND SYMBOL.
1. SUBSCRIPT=a word, letter, number, or symbol written or printed just below another word, letter, number, or symbol, usually in a smaller size:
2. SUPERSCRIPT=A superscript is a character or string that is smaller than the preceding text and sits above the baseline. Superscripts have several applications in both math and writing.
2. SYMBOLS=we can use all the symbols in html like =, -,+,/ and more.
EXAMPLE..
Comments
Post a Comment
If you have any doubts let me know in comments