Tools of the Trade

Lesson 4: Basic HTML Codes

Each of these HTML tags are elements and any information aside from the element name in the format of something="something" is an attribute.

HTML Codes

Comments

<!--
Anything inside here is invisible on your website
But they will be able to see it if you right click and go to "View page source"
-->

Headings

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>

Paragraph

<p>This is my paragraph.</p>

Break

This is a line of text.
<br>
<br />
This is another line of text.

Images

<img src="html-logo.png" title="HTML Logo" style="border:1px solid black;">

Sample HTML

Download Sample HTML (ZIP)



Resources

W3Schools.com List of HTML Tags
http://www.w3schools.com/tags/