Name | Start Tag | End Tag | Example |
---|---|---|---|
Heading | <h1> | </h1> | <h1>Heading<h1/> |
Title | <title> | </title> | <title>Title</title> |
Body | <body> | </body> | <body>Body</body> |
Heading Size | <h1>,<h2>,<h3>... | </h1>,</h2>,</h3>... | <h3>Heading</h3> |
Paragraph | <p> | </p> | <p>Paragraph</p> |
Break | <br>/td> | </br> | <br>Break</br> |
Line | <hr> | None | <hr> |
Comment | <!-- | --> | <!--Comment--> |
Link | <a href=" | </a> | <a href="Page Name">Page Name</a> |
Image | <img src=" | > | <img src="URL"alt"Image Name"width="Dimension"height"Dimension"> |
List | <ul> | </ul> | <li>List</li> |
Table | <table> | </table>/td> | <td>Table</td> |
Block | <div> | </div> | <div>Block</div> |
The html tag is used to show which area on the page is using html. Normally, this just spans the entire page. The element tag is (html).
Headers are used for defining the area where you set up the page. The tag is (head).
The page's title is shown on the tab you have opened. Use (title) to make it say something!
A body is a container for all of the items seen below. It allows sytle and other things to be added to a certian area of the page's elements. Made with the (body) tag.
Headings can be in 6 different sizes, all made with the (h1-6) tag:
Paragraphs are made with the (p) element:
This is a paragraph!
Pink fluffy unicorns dancing on rainbows!
With the (br) tag, breaks can be added on lines!
This sentance
has many
breaks
in it!
Lines can be made with the Horizontal Ruler (hr) element...
See? Easy!
Comments are used to make notes in your code. To make them use (!-- Text Goes Here --)
Links are used to get from one page to another. They use the format: (a href="link adress" alt="text that appears when the link doesn't work")
The link below will keep you on this page:
LINK :DImages spice up your page! Use (img src="image link adress or something" alt="When no image text") for your image!
Lists are made to show data in order or display it nicely. Lists can be ordered (ol) or unordered (ul). To make list elements, use (li).
Tables are used to show data in a very organized fasion.
To make a table, define it with (table) and then make table rows with (tr), table headers with (th), and table data with (td).
Column 1 | Column 2 | Column 3 |
---|---|---|
Data | Data | Data |
Stuff | Stuff | Stuff |
One | Two | Three |
Blocks are defined with (div). (Span) makes lines a certian style.
With DIV:
With SPAN:
Hello World!