You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.2 KiB
45 lines
2.2 KiB
<!doctype html> |
|
<html> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<title>My Learning Website</title> |
|
<link href="/styles/styles.css" rel="stylesheet" type="text/css"> |
|
<link href="/webdevelopment/styles/styles.css" rel="stylesheet" type="text/css"> |
|
<link href="../styles/samples.css" rel="stylesheet" type="text/css"> |
|
<script type="module" src="/scripts/article.js" defer></script> |
|
<script type="text/javascript" src="/jQuery/jquery-3.6.3.js"></script> |
|
|
|
<script type="text/javascript"> |
|
$("document").ready(function() { |
|
$("p").css("border", "3px solid red"); |
|
//$(".selectors").css("border", "3px solid red"); |
|
//$("#intro").css("border", "3px solid red"); |
|
//$("p:first").css("border", "3px solid red"); |
|
//$("h2:not(.selectors)").css("border", "3px solid red"); |
|
}); |
|
</script> |
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
|
<!--[if lt IE 9]> |
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
|
<![endif]--> |
|
</head> |
|
<body> |
|
<h1 id="intro">Introduction to jQuery Selectors and Filters</h1> |
|
<div id="content"> |
|
<p>Selectors and Filters provide a way of finding and extracting information from Web pages.</p> |
|
|
|
<h2 class="selectors">Selectors</h2> |
|
<p>Selectors are used to select parts of the Web page using a common CSS-style syntax.</p> |
|
<p>For example, <code>$("p")</code> will select all of the paragraph tags in a document and return them as a list that |
|
can be further operated upon.</p> |
|
|
|
<h2 class="filters">Filters</h2> |
|
<p>Filters are used to further refine the results returned from selectors.</p> |
|
<p>For example, <code>$("p:first")</code> will select the first paragraph in the returned set from <code>$("p")</code>.</p> |
|
</div> |
|
</body> |
|
</html> |