Skip to content

Instantly share code, notes, and snippets.

<div style="color:##38121E">Hello Wold</div>
<div style="color:##38121E; font-size:20px">Hello Wold</div>
<div style="color:##38121E; font-size:20px; font-wight:Bold">Hello Wold</div>
<div style="border-width: 1px; border-style: dotted; border-color: black">Hello Wold</div>
<div style="border: 1px dotted black">Hello Wold</div>
1. --------------------------------------------------------
<style type="text/css">
div {font-size: 20px}
#red {color: #450515}
<script type="text/javascript">
alert('hello world')
</script>
<script type="text/javascript">
a = "hello World"
alert(a)
</script>
<script type="text/javascript">
<style>
ul {
padding: 0px;
}
li:first-child {
border-left: 1px solid red;
}
li {
list-style: none;
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<style type="text/css" media="screen">
.box {background-color: red; width: 80px; height: 80px; display: inline-block;}
</style>
</head>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(
function() {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(
function() {
<script type="text/javascript">
// function CookRice(){
// alert(“hello”)
// }
// ---------------------------
// Var CookRice = function() {
// alert(“hello”)
// }
// ---------------------------
// Var CookRice = function() {
@cflove
cflove / gist:9437752
Created March 8, 2014 19:42
class_jQuery_image_gal.html
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
centerMe = function () {
var pageW = $(window).width()
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Canvas</title>
</head>
<body>
<canvas id="MyDrawing" width="600" height="400" style="border: 1px solid black;"></canvas>
<script type="text/javascript">
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Form</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<script src="//netdna.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<script type="text/javascript">