I am struggling with this if I have these two tag combinations in my css:
aside h4 {
color:yellow;
}
article h4 {
color:blue;
}
and I apply them to the following HTML
<div>
<h4>International new</h4>
<article>
<h4 class="headline">New Developments!</h4>
<aside>
<h4>Impact On Marckets</h4>
</aside>
</article>
</div>
Why is Impackt On Marckets blue , I thought it should be yellow? I thought that in this case the labels should be applied inside out, and not vice versa. Is this something like an Article tag ?
.headline {
color:red;
}
aside h4 {
font-style: italic !important;
color:yellow;
}
article h4 {
font-style:normal;
color:blue;
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="StyleSheet1.css" rel="stylesheet" />
</head>
<body>
<div>
<h4>International new</h4>
<article>
<h4 class="headline">New Developments!</h4>
<aside>
<h4>Impact On Marckets</h4>
</aside>
</article>
</div>
</body>
</html>
Run codetag
source
share