I am going to assume that you are trying to make a title as in a heading. What the title tag is not to make titles but to title the website which appears on the tab. To make a heading you need to do this
<html> <head> <title> HELLO WORLD!</title> </head> <body> <h1>Hello World </h1> </body> </html>
Whatever you put in the body is the content of your website. And the H1 stands for heading 1. There are 6 levels of heading, h1 being the biggest and h6 being the smallest.
<h1>Hello World</h1> <h2>Hello World</h2> <h3>Hello World</h3> <h4>Hello World</h4> <h5>Hello World</h5> <h6>Hello World</h6>
FYI: to add pargraphs which is achieved by doing html <p>CONTENT HERE</p>
I hope I was able to help if so select the checkmark next to my comment which would be greatly appreciated.
Title and everything in head is going to be almost meta data, body is where you want to put the stuff that actually shows up...
<!DOCTYPE html> <html> <head> <title>HW prog</title> </head> <body> <p>HELLO WORLD!</p><!-- paragraph --> </body> </html>
Well, what are you expecting to be outputted? I see nothing wrong with your code, syntax wise?