<txp:css /> single tag, 5 attributes

css

The basic css tag is a single tag and used to output the URL of the style sheet assigned in the Sections tab.

attributes

name="unset" 
  • Link to specified style.
format="url" 
  • How to format output: either return complete (X)HTML link tag with necessary (X)HTML attributes, or only the StyleSheet’s URL. Available values are link or url.
rel="stylesheet" 
  • (X)HTML rel attribute to be applied to link tag (when invoked with format=“link”).
media="screen" 
  • (X)HTML media attribute to be applied to link tag (when invoked with format=“link”).
title="unset" 
  • (X)HTML title attribute to be applied to link tag (when invoked with format=“link”).

genealogy

Version 4.3.0

  • n attribute deprecated and renamed name

Version 4.0.4

  • format, media, rel, title added.
<txp:css /> 3 examples

Output the URL to the section’s default style sheet

<head>
<!-- ...tags... -->
<txp:css />
<!-- ...more tags... -->
</head>

Output the URL to a named style sheet

<head>
<!-- ...tags... -->
<txp:css name="style_name" />
<!-- ...more tags... -->
</head>

Output print and alternate style sheets

<head>
<!-- ...tags... -->
<txp:css name="plain" rel="alternate" title="Plain and Simple Style" />
<txp:css name="glossy" rel="alternate" title="Glossy Style"/>
<txp:css name="print" media="print" />
<!-- ...more tags... -->
</head>