A 'Hello world' program is a computer program that outputs 'Hello World' (or some variant) on a display device. The first known version of this program comes from Brian Kernighan's paper A Tutorial Introduction to the Language B from 1972 (chapter 7). Let's start with a simple Hello World Node.js example. Create a new folder HelloWorld and launch VS Code. Mkdir HelloWorld cd HelloWorld code. From the File Explorer, create a new file called helloworld.ts. Now add the following TypeScript code. You'll notice the TypeScript keyword let and the string type declaration.
In this tutorial, you will learn how to create a simple hello world page with HTML. Firstly, let explains some of the HTML basics.
- HTML is stands for Hyper Text Markup Language
- HTML is a text file which consists a set of markup tags like (<html><body></html></body>).
- Almost all of the markup tag has start tag <html> and close tag </html>. Close tag is start with a “/”.
- The markup tags is just like a command to tell web browser (Firefox or Internet Explorer) what should do.
- HTML file must have htm or html as file extension.
- HTML file is not case sensitive. <html>, <HTML> or <hTmL> are all same tag.
- HTML file can be edit with any text editor like notepad or wordpad in windows , vi or emacs in unix or linux.
Steps to create HTML page
Let start to create a classic “Hello world” HTML file.
Hello World C++ Visual Studio
1. Text Editor
Open your favorite text editor, e.g Notepad. Create an empty text file.
2. HTMP Code
Copy and paste the following HTML code into your newly open text file.
3. Save It
Click File, Save it with a HTML file extension, e.g “anynameyoulike.html”
4. Demo
Double click to view it. (Or open the newly saved HTML file with your favor Internet browser).
Explanation of code
- <html></html> tag is tell internet browser this file is a start and end of the HTML file document.
- Text between <header></header> tag is for HTML header information, which is not display in internet browser.
- Text between <title></title> will display in left-up corner in internet browser, it’s web page title.
- Text between <body></body> will display as content in internet browser.