Merge pull request #247 from gslin/master

Prefer HTML5 syntax.
This commit is contained in:
Honza Pokorny 2013-07-21 15:32:31 -07:00
commit bdcfe04406

View File

@ -6,8 +6,8 @@ snippet html5
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<meta charset="utf-8">
<title>$2</title> <title>$2</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
$3 $3
</head> </head>
<body> <body>
@ -34,15 +34,15 @@ snippet idn
snippet label_and_input snippet label_and_input
<label for="${2:$1}">${1}</label> <label for="${2:$1}">${1}</label>
<input type="${3:text}" name="${4:$2}" id="${5:$2}" value="${6}" />${7} <input type="${3:text}" name="${4:$2}" id="${5:$2}" value="${6}">${7}
# FORMS # FORMS
# use idn . or n to add id # use idn . or n to add id
snippet input snippet input
<input type="${1:text}" value="${2}" ${3}/>${7} <input type="${1:text}" value="${2}" ${3}>${7}
snippet submit snippet submit
<input type="submit" value="${2}" ${3}/>${7} <input type="submit" value="${2}" ${3}>${7}
snippet textarea snippet textarea
<textarea $1>$2</textarea> <textarea $1>$2</textarea>
@ -61,7 +61,7 @@ snippet img
<img src="$1" alt="$2"/> <img src="$1" alt="$2"/>
# JS/CSS # JS/CSS
snippet css_file snippet css_file
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}" />${3} <link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">${3}
snippet css_block snippet css_block
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}"> <link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">
</link> </link>