Skip to content

some more helper notes for n00bs (like me!) #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions week1-dom/03_select_parent_child/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<html>

<!-- header is where title, script, and style tags can go -->
<!-- these scripts are in the library included but could easily be referencing
a source online-->
<head>
<meta charset="UTF-8">
<title>03_select_parent_child</title>
Expand All @@ -15,13 +17,19 @@

<!-- this is the actual document body, the stuff that will appear on the page -->
<body>
<h1>Welcome to this page.</h1>
<!--Go ahead and play with it! ... make a copy of the orig if your worried,
and then play with your copy. You won't break anything!-->
<h1>Welcome to YOUR page.</h1>

<p class="apple">This is a paragraph, the CSS class is apple.</p>
<p class="apple">Go take a look at the CSS file if you don't believe me!! And change the font of </p>
<p class="pear" id ="banana">This is a paragraph, the CSS class is pear.
The id is banana, and p5 is going to add an image of a banana below using <code>select()</code> and <code>parent()</code>.</p>
<p class="apple">This is another paragraph, the CSS class is also apple.</p>
<p class="apple" id = "orange">This is another paragraph, the CSS class is also apple, but now there is also an id set to orange.</p>
The id is banana, and the p5 library, the one referenced in the head tags above
is going to add an image of a banana below using <code>select()</code> and <code>parent()</code>.
Take a look at the sketch.js in this directory. The link to the banana image below is in the .js!</p>
<p class="pear">This is another paragraph, the CSS class is also apple.</p>
<p class="apple" id = "orange">This is another paragraph, the CSS class is also apple,
but now there is also an id set to orange in the style CSS. Check it out.</p>

</body>
</html>
</html>