Posts

Showing posts from August, 2014

HTML5 Features Techniques

New Doctype  (old doctype)   <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   (New doctype) <! DOCTYPE html>   Make your Content Editable The new browsers have a nifty new attribute that can be applied to elements, called contenteditable . As the name implies, this allows the user to edit any of the text contained within the element, including its children. There are a variety of uses for something like this, including an app as simple as a to-do list, which also takes advantage of local storage. <! DOCTYPE html>   < html lang = "en" > < head >      < meta charset = "utf-8" >      < title >editcontent</ title > </ head > < body >      < h2 >Best Friends </ h2 >   ...