HTML Snippets

Posts 18 of 8 · Page 1 of 1
HTML Snippets
Here's tags of HTML...


Html
[html]<html>[/html]

Head
Code:
<head>
Title
Code:
<title>
Headings
Code:
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
Bold
Code:
<b>
Italic
Code:
<i>
Underlined
Code:
<u>
Subscript
Code:
<sub>
Superscript
Code:
<sup>
Small text
Code:
<small>
Strong text
Code:
<strong>
Font size
Code:
<Font size=2>
Break Rule
Code:
<br />
Horizontal Rule
Code:
<hr />
Empathis
Code:
<em>
Font Type
Code:
<font face="Trebuchet MS" size="+3" color="#ff0000">Example</font>
Image
Code:
<img src="MPGH.gif" width="41" height="41" border="0" alt="*1 Hacking Site" />
Ordered List
Code:
<ol>
Unordered List
Code:
<ul>
Paragraph
Code:
<p>
TileType
Code:
<tt>
Table
Code:
<table border="4" cellpadding="2" cellspacing="2" width="100%">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
</table>
Strike
Code:
<strike>
Option
Code:
<form method=post action="/cgi-bin/example.cgi">
<center>
Select an option:
<select>
<option>option 1</option>
<option selected>option 2</option>
<option>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select><br>
</center>
</form>
Menu
Code:
<menu>
<li type="disc">List item 1</li>
<li type="circle">List item 2</li>
<li type="square">List item 3</li>
</menu>
Input
Code:
<form method=post action="/cgi-bin/example.cgi">
Select an option:<br>
<input type="radio" name="option"> Option 1
<input type="radio" name="option" checked> Option 2
<input type="radio" name="option"> Option 3
<br>
<br>
Select an option:<br>
<input type="checkbox" name="selection"> Selection 1
<input type="checkbox" name="selection" checked> Selection 2
<input type="checkbox" name="selection"> Selection 3
<input type="Submit" value="Submit">
</form>
Form
Code:
<form action="mailto:you@hotmail.com">
Name: <input name="Name" value="" size="10"><br> 
Email: <input name="Email" value="" size="10"><br>
<center><input type="submit"></center>
</form>
Definition list
Code:
<dl>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
</dl>
Link
Code:
<a href="http://www.mpgh.net/">
*1 Hacking site on the net.</a>
To close all tags (For people don't know) Just repeat the tag but put a / right after the <.


So for example.

Code:
<title>Hello</title>
And to view it once you written it on notepad is easy

Code:
File>Save As>"Index.html"
Quote Originally Posted by [G]host View Post
To close all tags (For people don't know) Just repeat the tag but put a / right after the <.


So for example.

Code:
<title>Hello</title>
And to view it once you written it on notepad is easy

Code:
File>Save As>"Index.html"
you can put the / at the end like this <b>hi<b/>
Easier to do it before that, So you don't forget it.

Millions of sites are ruined because they did not close a tag.
these are very helpful, nice work!
No problem, Working on some more.
To close tags u put </head\> ? O_O im new so ... lol
No to close a tag you can put either / in the front or in the back

For now just do this
Code:
<\HTML>
Posts 18 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?