In the previous step, we used the 4DVAR tag to display the contents of a 4D variable that contained the text string "Hello, World!". Now, we are going to create a custom Project Method that will be called by another semi-dynamic page. Please go again to 4D's Design environment, bring up 4D's Explorer. This time, click on the Project Methods item. Once you have it selected, click the New button (highlighted in red) to create a new Project Method.

When you click New, you are presented with a small dialog box. Make sure you name your new method "HelloWorld".

Once you have clicked OK, you are presented with a blank page for you to create a Project Method. Enter the following text for the HelloWorld Project Method:
C_TEXT($0;$1)
$0:="Hello, World!"

Your HelloWorld Project Method should look like the one in the picture above.
Security of you data is always a concern when accessing your data via the web. Because you wouldn't want anyone to access some project methods, by default, project methods CAN NOT be accessed via the web unless you specifically turn on the access. If you intend to access a method directly either by 4DACTION or 4DSCRIPT you must turn on direct access to the method. Before you close your HelloWorld Project Method choose the Method menu and choose Method Properties...
You should see the Method Properties dialog as follows:

Choose the "Available throught 4D Action" option and press OK. Then close and save your HelloWorld project method.
Next, you should go back to your text editor and create a new document. You should paste the following text into the document:
<html>
<head>
<title>4th Dimension Web Application</title>
<body>
<!--4DSCRIPT/HelloWorld-->
</body>
</html>

When you save the document, name it "hello3.html" and save it to the WebFolder inside your HelloWorld folder.
Go back to 4D's Design Environment, and bring up the On Web Connection method. Delete whatever is in there, and replace it with the following:
SEND HTML FILE("hello3.html")
Save the On Web Connection method and return again to your web browser. When you re-load the page, it should look like this:

Notice that it looks just like a couple of other examples in this tutorial. There are usually several ways to do the same task in 4th Dimension. Which method is best really depends on what you are doing. For this tutorial, any of the methods we used would have been fine, because there aren't a lot of things to consider when displaying "Hello, World!" in a browser.
By now, you should be familiar with the 4D Design Environment as well as the method editor. You should know how 4D's Web Server is configured and how it is stopped and started. You should be beginning to understand how 4D's dynamic web page technology works. This has been a simple tutorial. We will build upon what you have learned so far with the other tutorials in this series.