0

I am trying to learn HTML 5 and I wanted to know how would HTML 5 deal with database. I came across Web SQL database but I read that it is not being used much. What would be the simplest way to interact with database?

It would be great if someone could help me with this.

learner2010
  • 4,157
  • 5
  • 43
  • 68
  • [This post](http://stackoverflow.com/questions/2689939/html5-database-storage-sql-lite-few-questions) will be helpfull – Emmanuel N Jan 17 '12 at 20:18

2 Answers2

2

To me they are unrelated and HTML5 does not deal with databases. HTML is a language for presenting content. HTML5 has added new features related to semantics, media presentation, and some browser manipulation (like history). http://diveintohtml5.info/ is a great website to learn about the new features in HTML5, and some possible applications in website development.

HTML does not discriminate with regards to content, and doesn't care whether it comes from a database or if you input it by hand. It will treat that content the same.

PHP is an example of a language that interacts with a database.

HandiworkNYC.com
  • 10,914
  • 25
  • 92
  • 154
  • thanks for the reply.. so if I want to display a table using HTML5 and that table reads values from a database, how would I go about doing this? – learner2010 Jan 17 '12 at 20:25
2

HTML5 supports different client-side storage methods which store persistent data in the browser.

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435