Some useful code to help you get magento URL path to display images, include javascript on frontend, get URL for categories or cms page, get content of static block.
There are many different ways to do it. Let’s figure out

In admin page : cms page or static block

Get Magento Skin URL

{{skin url='images/test.png'}}


Get Magento Media URL

{{media url='test.png'}}


Get Magento Base URL

{{base  url='yourstore/yourpage.html'}}


Get Magento Store URL

{{store  url='yourstore/yourpage.html' }}


In PHTML file on Frontend

Get Content Of Static Block In Magento



Create Magento New URL

<?php echo Mage::getUrl('yourModule/yourController/yourAction') ;?>


Get Magento Skin URL

<?php echo $this->getSkinUrl('images/test.png'); ?>


Get Magento Secure Skin URL

<?php echo $this->getSkinUrl('images/test.png',array('_secure'=>true)); ?>


Get Magento Current URL

<?php echo Mage::helper('core/url')->getCurrentUrl(); ?>


Get Magento Home URL

<?php echo Mage::helper('core/url')->getHomeUrl(); ?>


Get Magento Js URL

<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>


Get Magento Media URL

<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>


Get Magento Store URL

<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>