Top 3 Must Known b:if Commands of HTML

Editorial Staff February 26, 2013 No Comments »
Top 3 Must Known b:if Commands of HTML

HTML is the widely know and used language for internet. It is consider to be the most easy language as per the servery. There are few tags and attributes which every site contains with in. We can not imagine web without HTML. Most of the Android and iOS apps are built using HTML . It is almost impossible to build a website or webpage without using HTML. We are going to share some most common yet important <b:if> commands which every blogger or online geek must know. They are easy as mentioned before and have interesting usage. Let’s get started.

 

Top 3 Must Known b:if Commands of HTML

 

  • Show Element on Homepage Only 

 

If you want to show some widget or something on the home page only. You can use this command

 

<b:if cond=’data:blog.homepageUrl == data:blog.url’>

All you content will go here, will be shown on Home page and no where else

</b:if>

 

  • Show Element Everywhere except Homepage 

 

This command is used when you want to show the content on every page except homepage. It is very useful when you want to make homepage light. It can enhance your the speed of blog.

 

<b:if cond=’data:blog.pageType == &quot;item&quot;’>

All your content will go here, will be shown everywhere except homepage

</b:if>

 

  • Element on specific Place 

 

In case you want to show something on particular page, in that case this command could be useful. Say that you want to show the contact form which should be on contact page. You can add this command and this will work fine.

<b:if cond=’data:blog.url == &quot;http://www.aimzo.com/specificpage&quot;’>

All you content will go here,  will be shown on the specific page.

</b:if>

 

These were top 3 must known b:if commands of HTML which every blogger or online should know. If you have any other suggestion regarding to b:if commands. Let us know by comment here below. If you like our work do share this with your friends and family.




Enter your email address:

Delivered by FeedBurner






Leave A Response

CommentLuv badge