16 lines
262 B
HTML
16 lines
262 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.green { color: green; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
This should be green
|
|
</div>
|
|
<script>
|
|
document.body.firstElementChild.classList.add("green");
|
|
</script>
|
|
</body>
|
|
</html>
|