Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

To Do List Project

DEV Community·Athithya Sivasankarar·27 days ago
#lEuAJvpd
Reading 0:00
15s threshold

<! DOCTYPE html > < html lang = " en " > < head > < meta charset = " UTF-8 " > < meta name = " viewport " content = " width=device-width, initial-scale=1.0 " > < title > Document < /title > < /head > < style > body { font - family : Arial ; text - align : center ; margin - top : 50 px ; } input { width : 200 px ; height : 40 px ; font - size : 20 px ; text - align : left ; } button { width : 70 px ; height : 50 px ; font - size : 18 px ; margin : 5 px ; } ul { list - style : none ; padding : 0 ; margin : 20 px 0 ; } < /style > < body > < input id = " user-input " type = " text " placeholder = " Enter a task... " > < button onclick = " todo() " > add < /button > < ul id = " list " >< /ul > < script > function todo () { const task = document . getElementById ( " user-input " ) let user_input = task . value ; const item = document . createElement ( " li " ); item .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More