Hey, I'm trying to put the attribute 'title' in the <section> tag inside the <h3> tag located just below and inside the <section> tag.The following works
<section title="General Information"> <h3>General Information</h3> .... </section>
what I would like to do is not to repeat the "General Information" inside the <h3>, but use the CSS content along with attr () to get the information inside the tittle attribute in the <section> and put it inside the <h3> tags.
<section title="General Information"> <h3></h3> .... </section> section h3:after { content:attr(title); }
This, as expected, looks for the attribute 'title' inside the <h3> tag instead of the <section> tag. Is there a way to achieve what I'm trying to achieve? Am I trying to make the right way to do something? I know that I can skip the <h3> tags in general and format the <section> tag to display any text in the 'title' attribute just like the <h3> tag.
John clearz
source share