Skip to content

Instantly share code, notes, and snippets.

Created December 3, 2011 00:11
What would you like to do?
HTML5 placeholder
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HTML5 Placeholder</title>
<style type="text/css" media="screen">
font-size: 62.5%;
font-family: Calibri, "Myriad Pro", Tahoma, sans-serif;
font-size: 1.6rem;
line-height: 2.2rem;
margin: 0;
border-style: none;
padding: 0;
input[type=text], textarea
border: 1px solid black;
padding: 1px 5px;
background: white;
width: 200px;
font-family: Calibri, "Myriad Pro", Tahoma, sans-serif;
font-size: 1.4rem;
line-height: 1.8rem;
padding-right: 2rem;
vertical-align: top;
text-align: left;
margin: 4.4rem 4rem;
<div id="page">
<h3>HTML5 placeholder</h3>
<table class="form">
<th>Text input</th>
<input type="text" placeholder="some text"/>
<textarea placeholder="some text"></textarea>
</div> <!-- /#page -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment