I want to load css file only in home page alone.
I have tried with this way,but it loads on every page.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="Banners::css/banners.css" />
</head>
</page>
Please let me know how to add condition in layout xml file like we do on old magento layout file
<catalog_product_view translate="label">
<reference name="head">
<action method="addJs"><script>varien/product.js</script></action>
<action method="addJs"><script>varien/product_options.js</script></action>
<action method="addJs"><script>varien/configurable.js</script></action>
</reference>
</catalog_product_view>