Basic HTML Tags

By Robert Niles

Hypertext Markup Language [HTML] is the language of the World Wide Web. You can use HTML tags to mark up content for display on the Web.

The most important tag in HTML is the hyperlink. This is the code you use to link text or an image on one Web page to another URL [Uniform Resource Locator] on the Web.

Hyperlinks use an HTML tag called an anchor tag. Like many tags in HTML, the anchor tag comes in two parts...

Here is a hyperlink in action:

<a href="">This is a hyperlink</a>

The a in the tag stands for "anchor." The href stands for "hyperlink reference." And the Web address after the equal sign is the Web page that the text between the anchor tags will link to. (Just substitute the URL of the page you want your readers to see when they click the hyperlinked text.)

Sample HTML page

Here is a simple Web page that uses a variety of common HTML tags. Feel free to copy and paste sections of the code below, as appropriate, when posting content to the Web.

<title>This is my webpage</title>
<meta name="description" content="This is a sentence describing the content on this Web page.">


<h1>This is a really big header, or headline</h1>

<p>I am writing a paragraph. And <b>this is bold text</b> within the paragraph. And this is <a href="">a hyperlink</a>, too.</p>

This is the second way of writing a paragraph.<p>

<h2>The is a secondary header</h2>

This is <i>italic text</i>, followed by a single-line break, instead of the double-line paragraph break done above.<br>

<blockquote>The blockquote tag provides a nice way to set off a really long quote.</blockquote>

This is a numbered (1, 2) list:
<li>Item 1</li>
<li>Item 2</li>

This is a bullet point (unordered) list:
<li>Item 1</li>
<li>Item 2</li>

<img src="" width=300 height=200 alt="This is a picture">

<p><a href=""><img src="" width=300 height=200 alt="This is a hyperlinked picture, contained in a paragraph" border=0></a></p>

<div align=center><img src="" width=300 height=200 alt="This is a picture, centered on the page"></div>

<table border=1 cellpadding=10>

<td align=center>Upper left table cell</td>
<td align=right>Upper right table cell</td>


<td>Lower left table cell</td>
<td>Lower right table cell</td>


© Robert Niles

Follow on Facebook Follow on Twitter Connect on LinkedIn