I have a master page currently with the below for the title:
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
I’ve now realised I have to put meta tags in, would that be best done like so:
<asp:ContentPlaceHolder ID="TitleContent" runat="server">
<title>Title</title>
<meta name="Description" content=" ... add description here ... ">
<meta name="Keywords" content=" ... add keywords here ... ">
</asp:ContentPlaceHolder>
OR
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<meta name="Description" content="<asp:ContentPlaceHolder ID="descContent" runat="server" />">
<meta name="Keywords" content="<asp:ContentPlaceHolder ID="keysContent" runat="server" />"
Yes, you could also add page specific meta tags by adding another ContentPlaceHolder for meta tags:
Then in your non master-page (like index.aspx) you could just
This would be much easier, in my opinion, to control the meta tags