Hello World is a tiny program that prints the words “Hello, World!” to a screen. It is the first piece of code most developers ever write, and it shows up at the start of nearly every programming book, tutorial, and university lecture.
The phrase has spread far beyond programming. WordPress, the software that runs more than 40 percent of the web, creates a post titled “Hello world!” on every new installation. This article explains what that means, where the tradition began, and what to do with that default post on your new WordPress site.
What is Hello World?
A Hello World program is the smallest piece of code that produces visible output. It exists for one job: to confirm the compiler, interpreter, or runtime is working before you write anything more complex.
It is the universal “first run”. If Hello World does not print, your environment is broken. If it does print, you can start writing real code.
The origin of Hello World
The phrase entered programming culture in 1972, in Brian Kernighan’s tutorial for the B programming language at Bell Labs. The example printed the bare word “hello, world” with no exclamation mark.
In 1978, Kernighan and Dennis Ritchie published the influential book The C Programming Language. The first example in chapter one was the same Hello World program, this time slightly updated:
#include <stdio.h>
int main() {
printf("hello, worldn");
return 0;
}
That book became standard reading for a generation of programmers, and the convention stuck. Every new language since has needed a Hello World example to be taken seriously.
Hello World in popular languages
Here is what Hello World looks like in some of today’s most-used languages.
Python
print("Hello, World!")
JavaScript
console.log("Hello, World!");
PHP (the language WordPress is built on)
<?php echo "Hello, World!"; ?>
Ruby
puts "Hello, World!"
Go
package main
import "fmt"
func main() { fmt.Println("Hello, World!") }
Rust
fn main() { println!("Hello, World!"); }
Swift
print("Hello, World!")
The shorter the code, the more “modern” the language tends to feel.
Why WordPress has a Hello World post
When you install WordPress, the database is seeded with one sample post titled “Hello world!” and one sample page titled “Sample Page”. This has been the default since WordPress 1.0 launched in 2003.
The Hello world! post serves two purposes:
- It confirms the installation works. As soon as you visit your new site, you should see the post on the front page. If you do not, something in the database or theme is broken.
- It gives new users something to edit. WordPress is a learn-by-doing system, and clicking Edit on a real post is faster than reading the docs.
The default content reads:
“Welcome to WordPress. This is your first post. Edit or delete it, then start writing!”
That last line, “then start writing”, is the whole point. WordPress assumes you will replace the Hello world! post with real content within the first hour of using the platform.
Should you delete the Hello World post on WordPress?
Yes, almost always. The default post brings no SEO value, can leak the fact that the site is new, and a small number of comment-spam bots target sites that still have it published.
You have three choices:
- Delete it. Safe. Goes to trash, which you can empty later.
- Move it to draft. Keeps the post ID 1 in place for tools that reference it.
- Rewrite it. Turn it into a real article (like this one) that helps people who search for “what is hello world”.
Topical Developers chose option three. The post you are reading sits at the same /what-is-hello-world-origin/ URL the default install gave us. Instead of a placeholder, it is a useful page.
Hello World beyond programming
The phrase has crossed over into everyday language. It is shorthand for:
- A first message. Newborns and new accounts on social platforms get described as “saying hello world”.
- A first project. Cooks, woodworkers, and musicians use Hello World for their first attempt at something new.
- A test broadcast. Hardware engineers ping with “hello world” to confirm a radio, sensor, or microcontroller is alive.
The Computer History Museum keeps a collection of Hello World examples from more than 200 programming languages. Wikipedia maintains a similar list. The phrase is one of the few cultural shorthands that crosses the line cleanly between programmers and the public.
Frequently asked questions
Who invented Hello World?
Brian Kernighan at Bell Labs in 1972, as part of a tutorial for the B programming language. The 1978 book The C Programming Language by Kernighan and Ritchie spread the convention worldwide.
What does Hello World mean?
It is a placeholder phrase used by a tiny test program to prove the language, compiler, or runtime works. It has no fixed meaning beyond “the program ran”.
Why is Hello World always the first thing taught?
Because it is the smallest piece of working code in any language. It separates “tools are installed correctly” from “I can now learn syntax”.
Is the Hello World post in WordPress bad for SEO?
It is neutral on a single-author personal blog, but bad on a business site. Search engines see a placeholder, the URL /what-is-hello-world-origin/ is wasted, and competitors can tell the site is unmaintained. Replace it or delete it.
What languages have a Hello World example?
Almost all of them. The list runs into the thousands once you count esoteric and historical languages. Even hardware description languages, shader languages, and spreadsheet macros have a Hello World tradition.
