This file contains 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
<a href="tel:1-408-555-5555">1-408-555-5555</a> | |
<a href="sms:1-408-555-1212">New SMS Message</a> |
This file contains 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
<form action="http://maps.google.com/maps" method="get" target="_blank"> | |
<label for="saddr">Enter your location</label> | |
<input type="text" name="saddr" /> | |
<input type="hidden" name="daddr" value="350 5th Ave New York, NY 10018 (Empire State Building)" /> | |
<input type="submit" value="Get directions" /> | |
</form> |
This file contains 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
<input name="frameworks" list="frameworks" /> | |
<datalist id="frameworks"> | |
<option value="MooTools"> | |
<option value="Moobile"> | |
<option value="Dojo Toolkit"> | |
<option value="jQuery"> | |
<option value="YUI"> | |
</datalist> |
This file contains 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
<!-- will download as "expenses.pdf" --> | |
<a href="/files/adlafjlxjewfasd89asd8f.pdf" download="expenses.pdf">Download Your Expense Report</a> |
This file contains 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
<input type="text" title="email" required pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" /> |
This file contains 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
<select> | |
<option value=" " selected>(please select a country)</option> | |
<option value="--">none</option> | |
<option value="AF">Afghanistan</option> | |
<option value="AL">Albania</option> | |
<option value="DZ">Algeria</option> | |
<option value="AS">American Samoa</option> | |
<option value="AD">Andorra</option> | |
<option value="AO">Angola</option> | |
<option value="AI">Anguilla</option> |
This file contains 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
// JS Option | |
window.location = "http://new-website.com"; |
This file contains 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
//Add a CSS class to a specific element | |
$('#myelement').addClass('myclass'); | |
//Removing a CSS class from a specific element | |
$('#myelement').removeClass('myclass'); | |
//Check if a specific element has a CSS class | |
$(id).hasClass(class) |
This file contains 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
font: bold italic small-caps 1em/1.5em verdana,sans-serif | |
background: [background-color] [background-image] [background-repeat] | |
[background-attachment] [background-position] / [ background-size] | |
[background-origin] [background-clip]; | |
Notice the forward slash, similar to how font shorthand and border-radius can be written. The slash allows you to include a background-size value after the position in supporting browsers. | |
In addition, you also have up to two optional declarations for background-origin and background-clip. |