Advertisement
Rahayu

Basic Code HTML

Nov 27th, 2012
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. BOLD: <b>text</b>
  2. ITALIC: <i>text</i>
  3. UNDERLINES: <u>text</u>
  4. STRIKE THROUGH: <s>text</s>
  5.  
  6. CENTER TEXT: <center>text</center>
  7. TEXT ON THE RIGHT: <div style="text-align: right;">text</div>
  8. TEXT ON THE LEFT: <div style="text-align: left;">text</div>
  9.  
  10. CHANGING COLOR: <font color="htmlcolor">text</font>
  11. Choose your HTML color here: http://www.mxstudio.com.br/Conteudos/Dreamweaver/Cores.htm (example: black - #000000, red - #FF0000)
  12.  
  13. CHANGING SIZE: <font size="2">text</font>
  14. The number "2" is an example, you can put any number.
  15.  
  16. CHANGING COLOR & SIZE: <font size="2" color="htmlcolor">text</font>
  17.  
  18. MAKING A LINK: use this code: <a href="http://link">name</a>
  19. *** If you want to open the link in a NEW window, use this code:
  20. <a href="http://link" target="_blank">name</a>
  21.  
  22. TEXT WITH A BACKGROUND: use the following code.
  23. <div style="width:190px; height:12px; background-color:#000000; text-align:left; color: #ffffff;">text</div>
  24. Change the width, the height, the background-color and the color text to your linking. You can replace "left" with "right" or "center" for those effects.
  25.  
  26. BORDER AROUND YOUR TEXT: use the following code.
  27. <FIELDSET style="width:190px; height:12px; border: 1px solid #000000;">text</FIELDSET>
  28. Change the width, the height and the color (#000000) to your liking. You can replace "solid" with "dashed" or "dotted".
  29.  
  30. PUTTING A IMAGE IN YOUR DESCRIPTION: upload the image you want on TinyPic, ImageShack or Photobucket. Get the direct link (it should end in .jpg for example) and use this code: <img src="directlink">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement