
|
HTML Help
|
|
|
Paragraphs
Paragraphs are defined with the <p> tag.
<p>This is a paragraph</p><p>This is another paragraph</p>
HTML automatically adds an extra blank line before and after a paragraph.
|
Line Breaks
The <br> tag is used when you want to end a line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it.
<p>This <br> is a para<br>graph with line breaks</p>
The <br> tag is an empty tag. It has no closing tag.
|
Bolding
Bolding is defined with the <b> tag.
This <b>word</b> is now bold.
|
Italics
Italics are defined with the <i> tag.
This <i>word</i> is now italicized.
|
Lists
An unordered list is a list of items. The list items are marked with bullets (typically small black circles).
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
Here is how it looks in a browser:
Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.
|
Links
HTML uses the <a> (anchor) tag to create a link to another document.
An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc.
The syntax of creating an anchor:
<a href="url">Text to be displayed</a>
The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.
This anchor defines a link to the AIASF:
<a href="http://www.aiasf.org/">Vist the AIASF</a>
|
Images
In HTML, images are defined with the <img> tag.
The <img> tag is empty, which means that it contains attributes only and it has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display on your page.
The syntax of defining an image:
<img src="url">
The URL points to the location where the image is stored. An image named "logo.jpg" located in the directory "images" on "www.aiasf.org" has the URL: http://www.aiasf.org/images/logo.jpg.
The browser puts the image where the image tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph.
|