Schema Central  >  XHTML 1.0 Strict  >  xhtml1-strict.xsd  >  pre
Advanced search

Recommended Reading:

Definitive XML Schema

 

pre

      content is "Inline" excluding "img|object|big|small|sub|sup"
      

Element information

Namespace: http://www.w3.org/1999/xhtml

Schema document: xhtml1-strict.xsd

Type: Anonymous

Properties: Global, Qualified

Content

  • Any text (mixed) content, intermingled with:
  • from type pre.content
  • Choice [0..*]
    • a content is "Inline" except that anchors shouldn't be nested
    • from group fontstyle
    • tt fixed pitch font
    • i italic font
    • b bold font
    • big bigger font
    • small smaller font
    • from group phrase
    • em emphasis
    • strong strong emphasis
    • dfn definitional
    • code program code
    • q inlined quote
    • samp sample
    • kbd something user would type
    • var variable
    • cite citation
    • abbr abbreviation
    • acronym acronym
    • sub subscript
    • sup superscript
    • from group special.pre
    • br forced line break
    • span generic language/style container
    • bdo I18N BiDi over-ride
    • map
    • from group misc.inline
    • ins
    • del
    • script script statements, which may include CDATA sections
    • from group inline.forms
    • input form control
    • select option selector
    • textarea multi-line text field
    • label Each label must not contain more than ONE field Label elements shouldn't be nested.
    • button Content is "Flow" excluding a, form and form controls

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom group coreattrs
class [0..1]xsd:NMTOKENSfrom group coreattrs
style [0..1]StyleSheetfrom group coreattrs
title [0..1]Textfrom group coreattrs
lang [0..1]LanguageCodefrom group i18n
xml:lang [0..1]Anonymousdenotes an attribute whose value is a language code for the natural language of the content of any element; its value is inherited. from group i18n
dir [0..1]Anonymousfrom group i18n
onclick [0..1]Scriptfrom group events
ondblclick [0..1]Scriptfrom group events
onmousedown [0..1]Scriptfrom group events
onmouseup [0..1]Scriptfrom group events
onmouseover [0..1]Scriptfrom group events
onmousemove [0..1]Scriptfrom group events
onmouseout [0..1]Scriptfrom group events
onkeypress [0..1]Scriptfrom group events
onkeydown [0..1]Scriptfrom group events
onkeyup [0..1]Scriptfrom group events
xml:space [0..1]Anonymousdenotes an attribute whose value is a keyword indicating what whitespace processing discipline is intended for the content of the element; its value is inherited.Fixed value is "preserve".

Used in

Sample instance

<pre> <--any elements or text--> </pre>