Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created December 8, 2016 21:41
Show Gist options
  • Save Bijesse/2af087e279d819b28cc6d7bdf8abe1b3 to your computer and use it in GitHub Desktop.
Save Bijesse/2af087e279d819b28cc6d7bdf8abe1b3 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=2af087e279d819b28cc6d7bdf8abe1b3
<!DOCTYPE html>
<html>
<head>
<title>Parts of Speech: We Do</title>
</head>
<body>
<h1 id = "header">This is a page about the parts of speech</h1>
<h1 id = "noun"> This is a noun --> </h1>
<h1 id = "adj"> This is a adjective --> </h1>
<div id ="sentence"></div>
</body>
</html>
/*
WE DO: Variable & jQuery practice
*/
// Variables
// We need to store a Noun and an Adjective in our JavaScript. How would we do this?
// Append
// How can we append our noun variable to the first h1 tag on this page?
// Challenge #1
// append our adjective variable to the first h1 tag on this page.
// Challenge #2
// Complete a similar activity for a verb.
// Challenge #3
// using jQuery, write a sentence using the noun and adjective you created above. Place this sentence in the div with the ID sentence.
#header{
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment