Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert HTML from CSS

Tags:

html

css

Is there any way to insert an HTML element, dom or code from CSS(3)?

like image 230
methyl Avatar asked Feb 02 '11 20:02

methyl


People also ask

Can you insert HTML with CSS?

No, you cannot insert HTML code from CSS.

How do I include an external CSS file in HTML?

External CSS Each HTML page must include a reference to the external style sheet file inside the <link> element, inside the head section.

Can CSS add text?

CSS can insert text content before or after an element.


1 Answers

No. The only you can do is to add content (and not an element) using :before or :after pseudo-element.

More information: http://www.w3.org/TR/CSS2/generate.html#before-after-content

like image 51
Sotiris Avatar answered Sep 20 '22 21:09

Sotiris