Is it possible to add an HTML TAG using CSS content
?
#teste{
content: "<p>tag HTML inserida via CSS</p>";
}
<div id="teste"></teste>
Is it possible to add an HTML TAG using CSS content
?
#teste{
content: "<p>tag HTML inserida via CSS</p>";
}
<div id="teste"></teste>
Using after or before you can add some content to your tag and style it but using tags within the content will be interpreted literally as text.
#teste:before{
content: "<a href='http://link.com'>Era pra ser um link</a>";
}
As our friend Vitor André spoke, it will be really interpreted as text. Ideally, you should use jquery to do html injection on the page, using append or prepend.