How To Print "Hello World" In HTML?

 


To print "Hello, World!" in HTML, you can use the following code:


```html Code :-


<!DOCTYPE html>

<html>

<head>

    <title>Hello World</title>

</head>

<body>

    <h1>Hello, World!</h1>

</body>

</html>



This is a basic HTML document structure. The text "Hello, World!" is enclosed within an `<h1>` (header 1) element, which is a way to define a top-level heading in HTML. When you open this HTML document in a web browser, you'll see "Hello, World!" displayed as a heading on the webpage.

Comments