HTP

htp on-line reference : ALTTEXT

Table of Contents
  Introduction
  License
  Tutorial
  Usage
  HTP Tags
  > ALTTEXT
    BLOCK
    BLOCKDEF
    DEF
    FILE
    IF
    INC
    IMG
    IMAGEURL
    OPT
    OUTPUT
    QUOTE
    SET
    UNDEF
    UNSET
    USE, $
    WHILE
    <!---
  History
  Wish list
  Bugs

syntax

<[ref]def name="tagname" [option="option1 [option2 ...]" ] [global] [expand]>
<[ref]/def>

>
  <[ref]block name=b expand>
    b is expanded at time <[ref]use time>.
  <[ref]/block>
  <[ref]set time="1">
  <[ref]use a>
  <[ref]use b>
  contents of a: <[ref]use a noexpand>
  contents of b: <[ref]use b noexpand>
  <[ref]block name=c expand>
    c is expanded at time <[ref]use time>; <[ref]use a>
  <[ref]/block>
  <[ref]block name=d expand>
    d is expanded at time <[ref]use time>; <[ref]use a noexpand>
  <[ref]/block>
  <[ref]block name=e>
    e is expanded at time <[ref]use time>; <[ref]use a noexpand>
  <[ref]/block>
  <[ref]set time="2">
  <[ref]block name=a>
    a is defined for the 2nd time <[ref]use time>.
  <[ref]/block>
  <[ref]use c>
  <[ref]use d>
  <[ref]use e>

synopsis

ALTTEXT declares an ALT attribute for any IMG tag with a SRC matching the ALTTEXT NAME. Since relative paths can be used to point to the same image, only the filename is considered in all comparisons.

When an IMG tag with a matching source is encountered, htp will add an ALT attribute only if one is not already present. This allows for ALT text to be overridden on specific images and default text on all others.

For example:

An ALTTEXT tag with a name but no text attribute removes any ALT mapping for this image. Successing IMG tags with a matching SRC name are not changed.

Since this is useful for an image used throughout a set of documents, ALTTEXT is most appropriate in an include file or a default file.

In addition to ALTTEXT, htp can also automatically add WIDTH and HEIGHT attributes to IMG tags.

  page source
  htp project
  htp homepage
hosted by
Sourceforge
HTML coding Powered by htp
htp on-line reference / http://htp.sourceforge.net/ref/
Authors: Jim Nelson, Jochen Hoenicke, Michael Möller.
Maintainers: Jochen Hoenicke.

Copyright © 1995–96 Jim Nelson.
Copyright © 2001–2014 Jochen Hoenicke.
Permission to reproduce and distribute this hypertext document granted according to terms described in the License section.

last updated Sat May 16, 2015