Is it possible to add a span to an < a > element? If so what is the appropriate syntax? These are the two I have tried but neither is working with my CSS.
<a span="add_button">+Add a Review</a></span>
<span="add_button"><a>+Add a Review</a></span>
Is it possible to add a span to an < a > element? If so what is the appropriate syntax? These are the two I have tried but neither is working with my CSS.
<a span="add_button">+Add a Review</a></span>
<span="add_button"><a>+Add a Review</a></span>
Both <a> and <span> are HTML elements. So, neither of the two you tried is an appropriate syntax.
It seems that you are trying to put a <span> inside an <a>, or an <a> inside a <span> (both of which are perfectly alright, btw), which would be done as follows:
<span id="add_button">
<a href="some/path">+Add a review</a>
</span>
Then, your CSS would look something like:
span#add_button {
/* Rules for the <span> */
}
span#add_button > a {
/* Rules for the <a> inside the <span> */
}