How can I link Javascript and html? [on hold]

This is my html file
I want to create a registration form and I wish that after submitting all the information, whether in the good sense or in the wrong way, I click on the Save button, the line "submitted successfully "appears on the screen. I've watched a lot of videos on youtube and it's too complicated, compared to my needs …