Professional Documents
Culture Documents
Text level elements that define character styles can generally be nested.
They can contain other text level elements but not block level elements.
1
Explain About Text Level Element
The foxquick jumped over the doglazy.
Phrase Elements
2
Explain About Text Level Element
Form fields
INPUT elements are not containers and so the end tag is forbidden.
INPUT, SELECT and TEXTAREA are only allowed within FORM
elements. INPUT can be used for a variety of form fields including
password fields,
checkboxes,
radio buttons,
submit and reset buttons,
hidden fields,
file upload, and
image buttons.
SELECT elements require start and end tags and contain one or more
OPTION elements. SELECT elements are used for single or multi-
selection menus. TEXTAREA elements require start and end tags, and
are used to define multi-line text fields. The content of the element is
used to initialize the field.
Special Text level Elements
Used to define hypertext links and also to define named locations for use
as targets for hypertext links, e.g.
The way to <a
href="kamasutra.html">happiness</a>.
3
Explain About Text Level Element
The attributes are: NAME, HREF, REL, REV and TITLE. HREF is used
to supply a URL identifying the linked document or image etc. NAME is
used to associate a name with this part of a document for use with URLs
that target a named section of a document. Anchors can't be nested.
IMG
e.g. <IMG SRC="canyon.gif" ALT="Grand Canyon">
Used to insert images. This is an empty element and so the end tag is
forbidden. The attributes are: SRC, ALT, ALIGN, WIDTH, HEIGHT,
BORDER, HSPACE, VSPACE, USEMAP and ISMAP. Images can be
positioned vertically relative to the current textline or floated to the left
or right. See BR with the CLEAR attribute for control over textflow.
APPLET
Requires start and end tags. This element is supported by all Java
enabled browsers. It allows you to embed a Java applet into HTML
documents, e.g. to include an animation. The contents of the element are
used as a fallback if the applet can't be loaded. The attributes are:
CODE, CODEBASE, NAME, ALT, ALIGN, WIDTH, HEIGHT,
HSPACE and VSPACE. APPLET uses associated PARAM elements to
pass parameters to the applet.
FONT
Requires start and end tags. This allows you to change the font size
and/or color for the enclosed text. The attributes are: SIZE, COLOR.
Colors are given as RGB in hexadecimal notation or as one of 16 widely
understood color names.
BR
Used to force a line break. This is an empty element and so the end tag is
forbidden. The CLEAR attribute can be used to move down past floating
images on either margin, e.g. <BR CLEAR=LEFT>.
4
Explain About Text Level Element
MAP
Requires start and end tags. This allows you to define client-side image
maps. MAP elements contain one or more AREA elements that specify
hotzones on the associated image and bind these hotzones to URLs.