You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapters/04-exercise-1.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,19 +68,19 @@ We will be creating the application JavaScript files during the tutorial. Don't
68
68
Now let's populate the body of index.html. We'll need an `<input>` for creating new todos, a `<ul id="todo-list" />` for listing the actual todos, and a footer where we can later insert statistics and links for performing operations such as clearing completed todos. We'll add the following markup immediately inside our body tag before the script elements:
69
69
70
70
```html
71
-
<sectionid="todoapp">
72
-
<headerid="header">
71
+
<sectionclass="todoapp">
72
+
<headerclass="header">
73
73
<h1>todos</h1>
74
-
<inputid="new-todo"placeholder="What needs to be done?"autofocus>
74
+
<inputclass="new-todo"placeholder="What needs to be done?"autofocus>
75
75
</header>
76
-
<sectionid="main">
77
-
<inputid="toggle-all"type="checkbox">
76
+
<sectionclass="main">
77
+
<inputclass="toggle-all"type="checkbox">
78
78
<labelfor="toggle-all">Mark all as complete</label>
79
-
<ulid="todo-list"></ul>
79
+
<ulclass="todo-list"></ul>
80
80
</section>
81
-
<footerid="footer"></footer>
81
+
<footerclass="footer"></footer>
82
82
</section>
83
-
<divid="info">
83
+
<divclass="info">
84
84
<p>Double-click to edit a todo</p>
85
85
<p>Written by <ahref="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/addyosmani">Addy Osmani</a></p>
86
86
<p>Part of <ahref="http://todomvc.com">TodoMVC</a></p>
@@ -114,8 +114,8 @@ We also need to define the #stats-template template which we will use to populat
0 commit comments