Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With HTML, create the following: An h1 element with the title of the todo list 1)An ordered list or unordered list with three preset tasks

With HTML, create the following: An h1 element with the title of the todo list

1)An ordered list or unordered list with three preset tasks

2)text input box that will be used to enter new tasks

3)A button that will add the task to the list upon clicking it

With JavaScript, will create a function called addTask() that is called when the button is clicked.addTask will do the following:

1)Check that the value of the text input box is not empty

2)If the text input box is empty, log a message to the console that says "Nothing to add"and do not add anything to the list

3)If the text input box is not empty, append a new list item to the inner HTML of theordered/unordered list.

4)After it has been added, clear the current value of the input box so that it is empty.

In your CSS file, you must at least do the following:

1) Change the background to a custom color/image

2) Change the font family

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

Answered: 1 week ago

Answered: 1 week ago