html basic hello world code example Example: how to print hello world in html <!DOCTYPE html> <html> <head></head> <body>HELLO WORLD</body> </html>