-
Book Overview & Buying
-
Table Of Contents
Express Web Application Development
By :
HTML tags are created by the mere mention of their names in the view file. If you would like to include any text within a tag, include it right after the tag name.
The way tags work in Jade is best understood by looking at these examples:
|
Jade |
HTML |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It is important to note that it is your responsibility to use valid HTML tag names, Jade will just create an element—valid or not.
In HTML, we create hierarchical DOM elements by nesting elements within other elements with the use of opening and closing tags. In Jade, we create hierarchy by the use of indentations—a tag indented below a tag is hierarchically placed under the former tag.
You can use either tabs or spaces for indentation. Whichever you choose...
Change the font size
Change margin width
Change background colour