使用 HTML,有没有办法根据每个文本选择所在的标签来混合文本颜色?此伪代码描述了我尝试创建的文本颜色混合类型:
<red>
This text should be red.
<blue>
This text should be purple, since it is inside red and blue tags.
</blue>
This text should be red.
<white>
This text should be pink, since it is inside white and red tags.
</white>
</red>
是否可以将此伪代码转换为有效的 HTML,以便以这种方式组合文本颜色?