, then
the custom tag has to be set to display a block::
my-custom-tag {
display: block;
}
.. sidebar:: Block Structure
Often the css implies this already, so the display block is not
always required.
Using Custom Tags
-----------------
Use built-in tags
html has `a host of meaningful tags
`_
where applicable use these.
No capital letters
That is no uppercase ASCII characters.
Must contain one or more hyphens
*my-container* is valid, *container* is invalid.
Start with lowercase letter
Can contain numbers, UTF-8 characters even emojis.
Always supply a closing tag
Use after
Define the custom tags.
At the start list all the custom tags followed by their closing tags.
The custom elements require no special characters when reading with css - in
fact just like . The difference is that we can make our tag more meaningful,
so some classes will be redundant.
Registration
------------
Matthew James Taylor states that registration is not required, however
definition is necessary, when
`checking on `_ each of the custom tags
had an error of *undefined element*. After listing the tags, the HTML was
validated.
If the custom tags are being used for more complicated behaviour than
just replacing or then registration is required. Mozilla has a
utility `X-Tag `_ to help with the registration.