Web Stuff

HTML Basics

Example of HTML page:
<html>
<body>
<h1>Heading</h1>
<p>blah blah blah</p>
</body>
</htm>

HTML tags:

Paragraph: <p></p>

Paragraph with indent: <p><dd></dd></p>

Bold Fonts: <strong></stong>

Italic: <em></em>

Adding spaces:
1. &nbsp;
example, add 2 spaces between:
Hello &nbsp;&nbsp;World!
No tab in html, to indent use 4 spaces: &nbsp;&nbsp&nbsp;&nbsp
Other HTML Spacing options:
2. Preformat: <pre></pre>
3. Use tables:
<table>
<tr><td width=”100″>Name</td><td width=”100″>Phoen</td>
</tr><tr><td>John</td><td>555-1212</td></tr>
</table>
or
<table>
<tr><td>Name</td><td>&nbsp;</td><td>Phone</td></tr>
<tr><td>John</td><td>&nbsp;</td><td>555-1212</td></tr>
</table>

New Line or Breaks: <br/>

HTML Links: <a href=”http://www.Google.com”>link to Google</a>

Image Links: <img src=”path” width=”100″ height=”50″ />

Notes and Comments: <!– comment –>

For HTML Tutorials: http://www.w3schools.com

Be the first to comment  Posted by Ferdy - March 29, 2011

Categories: Web Stuff   Tags: