Advanced HTML

Create a HTML websites - force line breaks, introduce non-breaking spaces, use entities for special characters, link into the middle of pages, use preformatted text, flow text around images, define clickable regions within images, create tables, use roll-overs and other tricks, enable users to listen to sound files.

Advanced HTML

... it is time to move on to more advanced features. The following will teach you how to:

keep your markup clean and free of errors with HTML Tidy

<br>

How to force line breaks.

Just occasionally, you will want to force a line break. You do this using the br element, for example when you want to include a postal address:

ShowLearn more

&nbsp;

How to introduce non-breaking spaces.

Browsers automatically wrap text to fit within the margins. Line breaks can be introduced wherever space characters appear in the markup.

ShowLearn more

©

How to use entities for special characters.

For copyright notices, or trademarks it is customary to include the appropriate signs:

ShowLearn more

<a

Linking into the middle of Web pages.

Imagine you have written a long Web page with a table of contents near the start. How do you make the entries in the table contents into hypertext links to the corresponding sections?

ShowLearn more

<pre>

Preformatted Text.

One advantage of the Web is that text is automatically wrapped into lines fitting within the current window size. Sometimes though, you will want to disable this behavior.

ShowLearn more

align=

Flowing text around images.

With HTML, you can choose whether any given image is treated as part of the current text line or is floated to the left or right margins. You control this via the align attribute.

ShowLearn more

<area

Clickable regions within images.

The following image acts as a map of a group of Web pages. You can click on the circles to go to the corresponding page.

ShowLearn more

<table

Tables.

Tables are used for information as well as for layout. You can stretch tables to fill the margins, specify a fixed width or leave it to the browser to automatically size the table to match the contents.

ShowLearn more

roll..

Roll-Overs and other tricks.

A little JavaScript can go a long way to enliven your pages. You will be shown below how to create "rollovers" where the appearence of a link changes as you move the mouse over it.

ShowLearn more

mp3

Enable users to listen to sound files.

Let's assume that you and your friends have got together to record some music in your garage, and you now want to get this out to the listening public.

ShowLearn more

Getting Further Information

W3C's Recommendation for HTML 4.0 is the authoritative specification for HTML. However, it is a technical specification. XHTML 1.0 is now a W3C Recommendation.
www.w3.org, Dave Raggett.

» Send question

Author:

E-mail:

Home

Coolf

Websites

Positioning

Cooperation

About

Contact