what did i do wrong
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?