Basic HTML Code Tutorial - Hubuhs. Living and Sharing

Hubuhs is spot for living, blogger, tech, sport, travel, auto and food

Wednesday, August 24, 2011

Basic HTML Code Tutorial

Below are basic HTML code tutorials.

Create Hyperlink :

<a href="">click to visit</a>

Ex : <a href="">click to visit</a>

Result : click to visit

Opened in New Tab

<a href="" target="_blank">click to visit</a>

Ex : <a href="" target="_blank">click to visit</a>

Result : <a href="">click to visit</a>

Dofollow link

<a href="" rel="follow">click to visit</a>

Ex : <a href="" rel="follow">click to visit</a>

Result : click to visit

Nofollow link
<a href="" rel="nofollow">click to visit</a>

Ex : <a href="" rel="nofollow">click to visit</a>

Result : click to visit

Create Email Link :

<a href="">send me email</a>

Ex : <a href="">send me email</a>

Result : send me email

Insert Image :

<img src="">

Ex : <img src="">

Result :

Create Clickable Icon, Button, Picture or Banner :

<a href=""><img src="" border="0"></a>

Ex : <a href=""><img src="" border="0"></a>

Result :

Bold, Italics, Strong and Emphasis :

<b>bold</b> will become bold

<i>italics</i> will become italics

<strong>strong</strong> will become strong

<em>emphasis</em> will become emphasis

Colors :

<b style="color:green; font-weight:normal;">green blue</b>

Result : green blue

<b style="color:#FD0101; font-weight:normal;">red</b>

Result : red

Underline :

<p style="text-decoration:underline">this is underline</p>

Result :
this is underline

<b style="color:blue; text-decoration:underline; font-weight:normal;">blue underline</b>

Result : blue underline

Remove Underline From Hyperlink :

<a href="" target="_blank" style="text-decoration:none;">this isn't underline</a>

Ex : <a href="" target="_blank" style="text-decoration:none;">click to visit</a>

Result : click to visit

Center Text and Image :

<p align="center">text in center</p>

Result :
text in center

<p align="center"><img src=""></p>

Ex : <p align="center"><img src=""></p>

Result :

Related Posts