Created
May 19, 2015 16:55
-
-
Save AndrewEddy/056ece6f86ea6e16075f to your computer and use it in GitHub Desktop.
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>ID and Class Page</title> | |
| <style> | |
| #main-navigation { | |
| color: brown; | |
| } | |
| h1 { | |
| color: aqua; | |
| } | |
| .headerone { | |
| color: blueviolet; | |
| text-decoration: overline; | |
| } | |
| .headergreen { | |
| color: green; | |
| text-decoration: underline; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="main-navigation"><ul> | |
| <li>Home</li> | |
| <li>About</li> | |
| <li>Contact</li> | |
| </ul></div> | |
| <h1 class="headerone">Header One</h1> | |
| <h1 class="headerone">Header One</h1> | |
| <h1 class="headerone">Header One</h1> | |
| <h1 class="headerone">Header One</h1> | |
| <h1 class="headergreen">Header Green</h1> | |
| <h1 class="headergreen">Header Green</h1> | |
| <h1 class="headergreen">Header Green</h1> | |
| </body> | |
| </html> |
Good
I think there is no need for h1 { color : aqua; }.
In the Style element above, Main-navigation is with a hashtag, but not h1. Headerone and headergreen is with a "." So my understanding is that if it's a unique word, it has to be with a hashtag. If it's a tag, it is by itself. If it's a class, it is with "." Am I correct?
In the Style element above, Main-navigation is with a hashtag, but not h1. Headerone and headergreen is with a "." So my understanding is that if it's a unique word, it has to be with a hashtag. If it's a tag, it is by itself. If it's a class, it is with "." Am I correct?
yes.
Nice
Nice
ok
good
ok
ok
ok
ok
good
good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍