SHARE
Facebook X Pinterest WhatsApp

HTML 4.0: New Subcommands

Written By
thumbnail
Joe Burns
Joe Burns
Jan 4, 2005

     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>

 


 


 


 


 


 


 


 


 

Recommended for you...

Best VR Game Development Platforms
Enrique Corrales
Jul 21, 2022
Best Online Courses to Learn HTML
Ronnie Payne
Jul 7, 2022
Working with HTML Images
Octavia Anghel
Jun 30, 2022
Web 3.0 and the Future Of Web Development
Rob Gravelle
Jun 23, 2022
HTML Goodies Logo

The original home of HTML tutorials. HTMLGoodies is a website dedicated to publishing tutorials that cover every aspect of being a web developer. We cover programming and web development tutorials on languages and technologies such as HTML, JavaScript, and CSS. In addition, our articles cover web frameworks like Angular and React.JS, as well as popular Content Management Systems (CMS) that include WordPress, Drupal, and Joomla. Website development platforms like Shopify, Squarespace, and Wix are also featured. Topics related to solid web design and Internet Marketing also find a home on HTMLGoodies, as we discuss UX/UI Design, Search Engine Optimization (SEO), and web dev best practices.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.