Every HTML 5 tag can be used as reference

Remember, that every HTML 5 tag can have id and can be used as reference. Every one!

So, if you want to display some bolded value, then instead of writing:

[code language=”html”]
<span>Cars: <span id="carsValue" style="font-weight: bold"></span></span>
[/code]

you can use much simpler approach of:

[code language=”html”]
<span>Cars: <strong id="carsValue"></strong></span>
[/code]

Leave a Reply