2021.1

Table Of Contents
Many video courses and hands-on courses about HTML (and CSS) are offered on the Internet
as well, some for free. Go, for example, to www.codeschool.com or www.codeacademy.com
and look for HTML (and CSS) courses.
Attributes
ID and class
Every element in the content of a template can have an ID and a class. ID's and classes are
particularly useful with regard to variable data (see "Personalizing content" on page780) and
styling (see "Styling templates with CSS files" on page738).
You can specify an ID and/or class when you add the element to the content.
To add an ID and/or class to an element that has already been added to a template, select the
element (see "Selecting an element" on page629) and type an ID and/or a class in the
respective fields on the Attributes pane at the top right.
Note
Each ID should be unique. An ID can be used once in each section.
Other attributes
Apart from the ID and class, elements can have a varying number of properties, or 'attributes' as
they're called in HTML (see "Editing HTML" on the previous page). Which properties an
element has, depends on the element itself. An image, for example, has at least four attributes:
src (the image's URL), alt (alternate text), width and height. These attributes are visible on the
Attributes pane when you click an image in the content.
For each type of element, a small selection of attributes is visible on the Attributes pane at the
top right.
In a multilingual template, the proprietary data-translate attribute marks an element for
translation. For more information see "Translating templates" on page926 and "Tagging
elements for translation" on page928.
Page 627