HTML Codes

HTML Codes

*things in [] brackets need
 your own information.




To code in html 
<html> </html>

header
<head> </head>

title (in browser)
<title> </title>

Body (everything aside from the title
<body> </body>

Background 
<body bgcolor: "[colorcode/name];">
<body background="[picture]" bgcolor= "[color]">

Heading on page
<h1..6> </h1..6>

Alignment
<center> </center>   or <style="text-align:right/left/center;"

start/end of a paragraph / breaks the text
<p> </p>    and  <br>

Spaces (One space per)
&nbsp;

Font change
<style="font-family:[font name];">

Font size
<style="font-size:[size];"

Font color
"style="color:[colorcode/name];"

Font background colour
<span style="background-color:[color];">   </span>

Font background Image
<span style="background-image: url( ------- )" >   </span>

bold
<b> </b>  or <strong> </strong>

italics
<i></i> or <em> </em>

underline
<u> </u>

strikeout
<s>  </s>

Horitzontal line across the page
<hr>

Image with description (when hoverd above)
<img src="[picture]" ALT= "[pop up for photo]" width=[#] height=[#]>

Boarder on Image
<img src="[picture]" ALT= "[pop up for photo]" width=[#] height=[#] style= "border-color: [color];">

Hyperlink
<a href="(url)">   </a>

Hyperlink (opens in a another window)
<a href="(url)" target="_blank">

Table
<table> </table>

Table Box(Cell)   / Next Line/row
<td> </td>      <tr> </tr>

Table Border
<table border="[#]" cellspacing="[#]" cellpadding="[#]">

Bullets    / Write Bullets
<ul>   </ul>       <Li> 

Ordered List
<ol>   </ol>

Ordered List Variations
<ol type="a">   (count a,b,c)
<ol type="i">   (count i,ii,iii)
<ol type="1">   (count 1,2,3)

Forms
<form method="post" action="mailto:(youremailhere)">   </form>

Text Box
<input type="text" name="(name)" size="30">

Radio Buttons (in form) (little circles you can click, one option)
<input type="radio" name='(titlesection)" value="(nametovoteon)"> 

Checkbox (in form) (as many options as possible)
<input type="checkbox" name='(titlesection)" value="(nametovoteon)"> 

Pop-Up Boxes (in form) (scroll box)
<select name="(nameofquestion)" size=(size)"
<option selected>(option default)
<option> (option)
</select>

Link button
<form method="link" action="(url)">
<input type="submit" value="(nameofbutton)">

More by this Author


Click to Rate This Article
working