git checkout -b gh-pages # Create a new branch
git push -u master gh-pages # Push it to GitHub
Your site will be published at username.github.io/repository.
Each of the above items links to the w3schools page for that method, including examples, reference material (including browser support) and a Try it Yourself live editor.
:hover
pseudo-class[data-id=4]
)Seriously, if you’re having any trouble with selectors, check out CSS Diner and CSS Selector Game.
If you’re new to jQuery, start with Try jQuery.
$()
, the jQuery functionBe sure to check out the excellent jQuery API documentation.
Presentations have been converted from their original format to play in web browsers.
$.ajax({
url: 'https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY',
method: 'get',
success: function(data) {
$(document.body).prepend('<img src="' + data.hdurl + '">');
}
});
Talk to the Mutant School API!
Add a button to delete individual mutants from the API.
Update existing mutant records.
Integrate the Mutant API with MegaRoster.
Add Pokémon, Star Wars characters, or something else from an existing API.