html hello world
html hello world
html hello world
HTML Documents
- HTML document type declaration <!DOCTYPE html>
- Html document stats with <html> tag and end with </html> tag.
- <!DOCTYPE HTML> not case-sensitive.
- <!DOCTYPE HTML> support for version HTML 5
- The Inside of <html> tags, there are two sections <head> and <body>.
- html hello world without using css.
- basic html hello world code is use.
html heading tag
- The html heading tag can be divided into <h1> to <h6> tags.
- The most popular heading tag defines 6 sizes of headings.
Html paragraphs tags
- The html paragraphs tag starts with <p> and closes with </p>.
HTML href link Tags
- The html link tag can be defined with the <a> tag.
- The a tag is base used for creating a hyperlink only.
HTML Image tags
- HTML image tag are defined <img>.
- image tag with defined closing tags is working properly.
- In image tags, use (src) for source of file and also define the (alt) tag.
- Image tags define height and width using Pixcel or percentage.
html hello world with example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Output:
Hello World!
How to Use
- Copy the HTML code above.
- Open a text editor such as Notepad, Sublime Text, VSCode, etc.
- Save the file with an .html extension, for example, hello.html.
- Open the saved file in a web browser (e.g., Chrome, Firefox, Safari, etc.) by double-clicking the file or dragging it into the browser window.
- Displays "Hello World!"