Let’s write a text editor.
When pressing the
Enter button, a new
p element should appear at the end of the
When you press the keys, the last character should be added to the inner text of the last paragraph.
When you press the buttons -
Ctrl - nothing should happen.
When you press the
Backspace button, you need to delete the last character of the inner text in the last paragraph.
Use the internal script.
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task
<!DOCTYPE html> <html> <head> <title>Text editor</title> </head> <body> <p></p> </body> </html>