2024-10-16

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<script>
// 그룹 선택자 : $("요소1, 요소2,....요소n") ==> 요소1, 요소2,....요소n 에 지정된 요소를 한꺼번에 선택하는 선택자.
$(function() {
$("h1, h3").css("color", "red")
.css("border", "1px solid gray");
});
</script>
</head>
<body>
<h1>제이쿼리</h1>
<h2>직접 선택자 및 관계선택자</h2>
<h3>직접 선택자</h3>
<h3>관계 선택자</h3>
</body>
</html>
