Code Links
Posted by admin | Posted in HTML Tutorial | Posted on 11-08-2010-05-2008
0
Another use may be to enhance the look and feel of the links on your page. This tag provides a very quick way to accomplish this.
Example:
- <p>Feel free to search <a href=”http://www.google.com” target=”_blank”>
- <code>Google</code>
- </a> for
- anything you need to find on the internet.</p>
<pre> Preformatting element
Web browser generally interprets your html document as one long line. You may have tabs and line breaks in notepad aligning your content so it is easier to read for you, but the web master, your browser ignores those tabs and line breaks.
We showed you one way to get around this by using the character or ltbr /> tag. Tabs and spacing are quite different, and absolutely annoying at times. One simple solution might be to use the <pre> tag, standing for previously formatted text.
<pre> tag can be used for any special circumstances where you want your text to appear in some preformatted manner. For example any extra spaces or tabs will not be displayed in a normal text but this could be done using the <pre> tag.
Example:
- <pre>
- Roses are Red,
- Violets are blue,
- I may sound crazy,
- But I love you!
- </pre>
Roses are Red,
Violets are blue,
I may sound crazy,
But I love you!
<sup> Superscript element
Superscripted text can be placed onto your website using the <sup> tag. You may also give an id to these tags so that they can be used in the whole documents through the style sheets.
Example:
- <p>This text is <sup>superscripted!</sup></p>
This text is superscripted!
Exponents
Exponential expressions can be written by using the superscripting technique.
Example:
- 2<sup>3</sup> = 8
- 14<sup>x</sup>
Exponents:
23 = 8
14x
Footnotes
You may have come across several texts where a referencing, superscripting directs your attention to the bottom of the page. These footnotes can also be created with the superscript tag.
Example:
- <p>”It was a lover’s tryst<sup>1</sup>.”
- <hr />
1. Secret meeting between lovers
Footnotes:
“It was a lover’s tryst1.”
1. Secret meeting between lovers
<sub> Subscript element
This tag is used to place subscripted text onto your websites.
Example:
- <p>This text is <sub>subscripted!</sub></p>
This text is subscripted!
Chemical Compounds
This tag allows for the creation of chemical compounds.
Example:
- <p>H<sub>2</sub>0<sub>2</sub> – Hydrogen Peroxide
- <p>CO – Carbon Monoxide
- <p>CO<sub>2</sub> – Carbon Dioxide
H2O2 – Hydrogen Peroxide
cO – Carbon Monoxide
CO2 – Carbon Dioxide
Strikethrough
To place text onto your site that appears to be crossed out, we can use the <del> tag.
Example:
- <p>This text is <del>not needed now </del> </p>
This text is not needed now!
