I want to select all a tag in here but don't want to repeat the same line like " #s1 span a " all the parent elements have different ids but inner elements are the same or have a same class. I'm unable to figure out a way to do it in a short way. it's just a sample of my problem I have a bigger project where I need to use same css properties on many blockes elements. I mean wrapper blocks ids are different but child elements classes are same.
<style>
#sl,#s2,#s3 span.me a {
background-color: yellow;
}
</style>
<h1 id="sl">
<span class="me">
<a href="">Welcome to My Homepage<a>
<span>
</h1>
<h1 id="s2">
<span class="me">
<a href="">Welcome to My Homepage<a>
<span>
</h1>
<h1 id="s3">
<span class="me">
<a href="">Welcome to My Homepage<a>
</span>
</h1>