A Pen by Alex Rodriguez on CodePen.
Created
March 28, 2014 04:30
-
-
Save arod2634/9825459 to your computer and use it in GitHub Desktop.
A Pen by Alex Rodriguez.
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
<!-- We can remove the doctype since Codepen sets it up automatically for us --> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Element Demo</title> | |
<!-- Lets move this into a separate stylesheet --> | |
<style> | |
div, span { | |
width: 60px; | |
height: 60px; | |
float: left; | |
padding: 10px; | |
margin: 10px; | |
background-color: #eee; | |
} | |
</style> | |
<!-- We can remove this also since Codepen sets it up automatically for us --> | |
<script src="//code.jquery.com/jquery-1.10.2.js"></script> | |
</head> | |
<body> | |
<h1></h1> | |
<div>DIV1</div> | |
<div>DIV2</div> | |
<span class="message"></span> | |
<!-- Lets move this to a separate JS file --> | |
<script> | |
jQuery(document).ready(function(){ | |
$( "h1" ).text("Hello World!"); | |
$( ".message" ).text("I'm a span!"); | |
$( "div" ).css( "border", "9px solid red" ); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment