Created
February 13, 2017 03:05
-
-
Save alexpelan/74b15f8831382749b51d919542d5e2c7 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=74b15f8831382749b51d919542d5e2c7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"enabledLibraries":["jquery"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| WE DO: Variable & jQuery practice | |
| */ | |
| // Variables | |
| // Create variables called noun and adjective. Set noun to a string that is a noun. Set adjective to a string that is an adjective. | |
| // Append | |
| // Append our noun variable to the first h1 tag on this page (hint: jQuery!)? | |
| // Challenge #1 | |
| // append our adjective variable to the first h1 tag on this page. | |
| // Challenge #2 | |
| // Add an <h1> tag to the html for a verb, then repeat this process for a verb | |
| // Add an <h1> tag to the html for a number, then repeat this process for a number | |
| // Challenge #3 | |
| // using jQuery, write a sentence using the noun, adjective, number, and verb you created above. Place this sentence in the div with the ID sentence. | |
| // Be creative with your sentence, just make sure it makes sense and includes all 4 parts! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #header{ | |
| color: red; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment