HTML 4.0: New Subcommands

By Joe Burns

     Here's a look at what the subcommands will do. Many of these are already shown in the New Commands example tutorial.


CLASS

     In order for this class command to work, this:

<STYLE>
.purple {color:purple}
</STYLE>

was placed between the <HEAD> commands.

The Code:
     <SPAN CLASS="purple">Affected text</SPAN>

What You Get:
     Affected text


DIR

The Code:

<BDO DIR="LTR">hello</BDO>
<BDO DIR="RTL">hello</BDO>

What You Get:
hello
hello


ID

The Code:
     <A HREF="#bottom-id">Jump to the Bottom</A>

What You Get:
     Jump to the Bottom


LANG

The Code:
     <SPAN LANG="es">Hola! Como esta?</SPAN>

What You Get:
     Hola! Como esta?


TITLE

The Code:
<SPAN TITLE="title text">
Put your mouse here and leave it sit for a second.
</SPAN>

What You Get:
     Put your mouse here and leave it sit for a second.


Back to the HTML 4.0 Tutorial

 

 

 

 

 

 

 

 

 

This is the bottom text you jumped to.

It looks like this:

<SPAN ID="bottom-id">
This is the bottom text you jumped to.
<SPAN>

 

 

 

 

 

 

 

 

 



Make a Comment

Loading Comments...

  • Web Development Newsletter Signup

    Invalid email
    You have successfuly registered to our newsletter.
  •  
  •  
  •  
Thanks for your registration, follow us on our social networks to keep up-to-date