I need to work with a different company's markup code, and it's quite unconventional. I'm only able to edit the CSS, not the HTML itself. The markup code I have to deal with looks like this:
<p>
<font size="2">Headline</font>
<font size"1">Paragraph text</font>
</p>
I want to style the color and other properties of these two elements differently, but I'm unsure how to target them using CSS. Could it be done like this?
font[size=2] {
color: red;
}
font[size=1] {
green;
}