For example, I would like to know whether the color green will be
on character AAA and BBB inside of div
tag for all doctype such as xhtml, html5, html ?
<div style='color:green'>AAA<a>BBB</a></div>
But I tried it and AAA will be green and BBB will be black as default browser css color. In other words: parent tag style (defined by inline style or any other css method) won't affect child node style for all the mentioned doctypes. Right ?
where I can know the css spec in more detail about this ?