Expanding and collapsing sections allow you to create sections
which only show the title of the section by default. When a user clicks on the
title of the section, the rest of the section's contents will appear beneath
the section's title. When you use these sections, options will appear on the
page allowing a user to expand or collapse all of sections at once.
To create expanding and collapsing sections in ECEn Web XML, we're going to use
<section> tags.
These instructions assume that you already have an ECEn XML web page
to edit and know at least a bit about XML. Most content, such as text, links, lists, pictures etc., belongs in the
<content> portion of your page; check the instructions below to see if you need to make sure that you
have a page with a
<content> portion. If you need a quick tutorial or
just a simple starter web page download, check out the
'Howdy, World' Tutorial where you can get a brief overview of what files you need to set up a basic
ECEn XML web page.
If you need an example, have a look at the
Expanding and Collapsing Section Example page. You can view the XML source in your browser by clicking the 'this XML' link at the bottom of the page.
Or, the XML is source located in the Common Tasks Downloads to the right. (Right click, Save Link Target As...)