Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTML5

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for Edd S Edd S
April 18, 2012

 HTML5

Slides from an internal talk I gave at MintDigital. The first section was on new things we got with HTML5 and the second half was pointing out how we could improve our code internally.

Avatar for Edd S

Edd S

April 18, 2012
Tweet

More Decks by Edd S

Other Decks in Programming

Transcript

  1. “The aside element represents a section of a page that

    consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.” - http://dev.w3.org/html5/spec/Overview.html#the-aside-element
  2. <% form_for :user do |f| %> <ol> <li> <%= f.label

    :email %> <%= f.email_field :email %> </li> </ol> <% end %>
  3. <label for="source">How did you hear about us?</label> <datalist id="sources"> <select

    name="source"> <option>please choose...</option> <option value="television">Television</option> <option value="radio">Radio</option> <option value="newspaper">Newspaper</option> <option>Other</option> </select> If other, please specify: </datalist> <input id="source" name="source" list="sources">
  4. <input type=“number” name=“age” min=“17” max=“65” /> or in rails <%=

    f.number_field :age, :min => “17”, :max => “65” %>