Take the UI for a Short Drive

We’ve only implemented code to get a list of tasks, but let’s not write more code until we integrate the current code into an HTML page and see it live in action. You saw a design sketch for the UI in ​Create a Strategic Design​, it’s a good time to put that into an HTML file.

​ ​<!DOCTYPE html>​
​ <html>
​  <head>
​  <title>TO-DO</title>
​  <link rel=​"stylesheet"​ href=​"/stylesheets/style.css"​>
​  </head>
​  <body>
​  <div class=​"heading"​>TO-DO</div>
​  <div id=​"newtask"​>
​  <div>Create a new task</div>
​  <form>
​  <label>Name</label><input type=​"text"​ id=​"name"​ />
​  <label>Date</label><input type=​ ...

Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.