<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery children() Method</h1>
<div>
<p>This is paragraph.</p>
<a href="/css">Learn CSS</a>
</div>
<script>
$(document).ready(function(){
// Select all children of div
$("div").children().css("color", "red");
});
</script> </body>
</html>