<b:attr> Syntax and Attribute
Blogger XML Language
<div> <b:attr cond='CONDITION' name='ATTRIBUTE_NAME' <!-- expr:name='EXPRESSION' --> value='VALUE'/> <!-- expr:value='EXPRESSION' --> </div>
<b:attr> Example
Give id and class
<div> <b:attr name='id' value='foo'/> <b:attr name='class' value='bar'/> </div>
Add an attribute with a condition
<div> <b:attr cond='data:view.isPost' name='style' value='background: red'/> </div>
Inject multiple attributes
<a> <b:attr name='href' expr:value='data:label.url'/> <b:attr name='target' value='_blank'/> <span>TITLE</span> </a>
Other Tag
- <b:attr>
- <b:case>
- <b:class>
- <b:comment>
- <b:default>
- <b:defaultmarkup>
- <b:defaultmarkups>
- <b:eval>
- <b:else>
- <b:elseif>
- <b:if>
- <b:include>
- <b:includable>
- <b:loop>
- <b:message>
- <b:param>
- <b:section>
- <b:skin>
- <b:switch>
- <b:tag>
- <b:template-script>
- <b:template-skin>
- <b:widget>
- <b:widget-setting>
- <b:widget-settings>
- <b:with>
- <![CDATA[]]>
- <data:.../>