<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="http://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.min.js"></script>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.4.33/dist/sweetalert2.min.css">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sweetalert2@11.4.33/dist/sweetalert2.all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
<title>Document</title>
<style>
div {
margin: 2px;
}
</style>
</head>
<body>
<div>
Test
</div>
<section>
<div>
Hello
</div>
<div>
Foo
</div>
</section>
<script type="text/javascript">
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
$('div').style.color = 'blue'
$$('section div').forEach(div => div.style.background = 'orange')
</script>
</body>
</html>