Free HTML Tutorials   •   CSS   •   Frames Tutorials   •   Forms Tutorials   •   Beginners HTML Tutorials   • Advanced HTML Tutorials   • JavaScripts   • Free Web Page Tutorials   •   Free Downloads
OzWebLogo Beginners Section


TAGS 4 - Other Tags

DIV TAGS

These are some tags I have not previously covered. I will mention just a few here. Note that some of them will not work if you have an older browser. And some only work in Internet Explorer.

I have included some of the most useful here, but for the full details on these and other tags and elements (and more information than you will ever need) go to the World Wide Web Consortium pages.

<DIV>  </DIV>   This is a grouping tag which identifies and aligns different parts of your web page. It needs to be closed with </DIV>. It is one of my favourites and, using the "JUSTIFY" tag, is a great way to produce neatly justified text, that is, rows of text that fit evenly across a page or column, like a newspaper, book or magazine. It can be used anywhere, even inside tables.

The alignments you can use are:

  • LEFT
  • CENTER
  • RIGHT, and
  • JUSTIFY
Here are some examples:

<DIV ALIGN=right> Some text </DIV>
This is aligned to the right
<DIV ALIGN=left> Some text </DIV>
This is aligned to the left
<DIV ALIGN=center> Some text </DIV>
This is in the centre
<DIV ALIGN=justify> Some text </DIV>
OzWebWeaver, the easy HTML tutorial. Beginners, Intermediate and Advanced sections with step-by-step instructions on how to create your own web pages. Lots of sample pages, graphics, tips and links included. Even if you use a web creation programme a knowledge of HTML will assist you. Free help is always available by email.


The following tags will only work in newer browsers.

<BUTTON>
This new tag is a shorter version of the <input type="button">tag which is mainly used in Forms (see Advanced section). Now you can just use just <button>

<INS> and <DEL>
These are used to indicate some inserted text in a document revision. Example:
  

Price reduced specials! Only 78 62 left so hurry in!

And here is the code:

<B> Price reduced specials! Only <DEL> 78</DEL> <INS> 62</INS> left so hurry in!</B>



<OBJECT>
I am not sure if this is still around (2008) but it may be a useful tag as it combines various existing tags and extensions for some things like sound, java applets and image files. It will replace <APPLET>,<EMBED>, <BGSOUND>, <SOUNDS> and <IMAGE> tags. Check out the WWW3 page for more information on these and other new tags.

Next:  Lists of Things

Beginners Index

Help
Copyright ©1998-2008 OzWebWeaver.