Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Headings

September 17, 2001

A special paragraph format allows you to create headings, just as you can with the <h1> through to <h6> elements in HTML. The headings format can take one of four possible sizes, which are actually known as levels (it can actually take more than four, but after level 4, all further headings are rendered at the same size):

  • Level 1 is rendered as 2em
  • Level 2 is rendered as 1.5em
  • Level 3 is rendered is 1.3em
  • Level 4 and beyond are all rendered as 1.2em

Note that em is a typographic term and refers to the size of the font, relative to the default font size on the web page

The heading format takes the following syntax, setting the level number as a separate option:

{heading level=level-number,  text }

So, for example, the code for a document containing several headings would look like this:

|| headings.curl
{curl 1.7 applet}
{applet license = "development"}
{heading level=1,  A level one heading }
{br}
{heading level=2,  A level two heading  }
{br}
{heading level=3,  A level three heading }
{br}
{heading level=4,  A level four heading }
{br}
{heading level=10,  A level ten heading }

and would be displayed as follows:

As you can see, while the level 10 size is legal, it is rendered the same as the level 4 size heading. Also, note that the spacing is uniform throughout the heading levels.

Displaying Text
Early Adopter Curl
Numbered Headings


Up to => Home / Authoring / Languages / Curl / Early




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers