Monday, 16 July 2012

How to change the direction of a text using Html


<!DOCTYPE html>
<html>
<body>

<p>
If your browser supports bi-directional override (bdo), the next line will be written from the right to the left (rtl):
</p>

<bdo dir="rtl">
Here is some Hebrew text
</bdo>

</body>
</html>

Monday, 16 July 2012 by Unknown · 0

How to abbreviate the words using Html


<!DOCTYPE html>
<html>
<body>


<p>The <abbr title="What the hell">WTH</abbr> was founded in 1948.</p>

<p>Can I get this <acronym title="as soon as possible">ASAP</acronym>?</p>

<p>The title attribute is used to show the spelled-out version when holding the mouse pointer over the acronym or abbreviation.</p>

</body>
</html>

by Unknown · 0

How to program contact information using html


<!DOCTYPE html>
<html>
<body>

<address>
Written by Bharathi priya<br />
<a href="mailto:us@example.org">Email us</a><br />
Address: Box 564, wooland<br />
Phone: +12 34 56 78
</address>

</body>
</html>

by Unknown · 0

Different computer-output tags in html


<!DOCTYPE html>
<html>
<body>

<code>Computer code</code>
<br />
<kbd>Keyboard input</kbd>
<br />
<tt>Teletype text</tt>
<br />
<samp>Sample text</samp>
<br />
<var>Computer variable</var>
<br />

<p><b>Note:</b> These tags are often used to display computer/programming code.</p>

</body>
</html>

by Unknown · 0

how to control line breaks and spaces in html(preformatted text)


<!DOCTYPE html>
<html>
<body>

<pre>
This is
preformatted text.
It preserves      both spaces
and line breaks.
</pre>

<p>The pre tag is good for displaying computer code:</p>

<pre>
for i = 1 to 10
     print i
next i
</pre>

</body>
</html>

by Unknown · 0