programming-examples/css/Direct adjacent sibling combinator.html
2019-11-15 12:59:38 +01:00

24 lines
637 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>Direct Adjacent Sibling Combinator</title>
<style type="text/css">
h1 ~ h2 {
text-decoration: underline;
font-size: 24px;
color: pink;
}
</style>
</head>
<body>
<div>
<h1>Code Examples</h1>
<p>
Happy Codings is sample source code search engine.
</p>
<h2>Code Examples</h2>
</div>
</body>
</html>