ホーム 地域 What can an HTML file actually do? An easy-to-understand guide for beginners | HTML | JavaScript | Claude | ChatGPT | AI Utilization | Web Production | Programming | IT | Tool Creation | Column

What can an HTML file actually do? An easy-to-understand guide for beginners | HTML | JavaScript | Claude | ChatGPT | AI Utilization | Web Production | Programming | IT | Tool Creation | Column

三浦 拓海 三浦 拓海 • 更新: • 公開: • 読了約 19 分
目次

What exactly can an HTML file do?

n450d67051c56

Have you ever opened a file you were sent and seen some amazing page appear? In this article, I will explain what an HTML file is in the simplest way possible.

Table of Contents

1. What is an HTML file in the first place?

An HTML file is like a "blueprint" for displaying a web page.
The end of the file name (the extension) is .html, and when you double-click it, your browser (Chrome, Safari, etc.) will open it automatically.
*Back in the Netscape Navigator days, we saved them with the .htm extension, but I wonder if that's still around... Oh, either way, the browser will open it automatically for you.

Point
You might wonder, "Can I open it in a browser even without an internet connection?"
Yes, you can open an HTML file on your own computer without an internet connection.

When we hear "website," we usually imagine something on the internet.
However, you can save an HTML file on your computer and use it the same way offline (without the internet).
This is one of the major features of HTML.

2. Taking a peek inside...

Since an HTML file is a text file, if you open it with Notepad or a text editor, you will see code filled with symbols called "tags."

At first glance, it looks like a spell, doesn't it? (lol)
But the browser reads this code and displays it as an easy-to-read page.
The code turning into a "good-looking page"—that is the magic of HTML.
I bet many people in their 40s today were taught this in high school or college.

3. What can you do with a distributed HTML file?

When you receive a distributed HTML file, you can do things like this:

  • Manuals/Instructions / Easy-to-read manuals where you can jump to the section you want to read from the table of contents. Sometimes easier to read than Word.

  • Forms/Checklists / You can check off items, fill them out, and print them all at once.

  • Calculation Tools / Automatically calculates when you enter numbers. Can also be used as a calculator replacement.

  • Graphs/Dashboards / Displays data in a visually easy-to-understand way. Useful for sales or weight changes, etc.

  • Simple Games/Quizzes / You can even create quizzes where you enter an answer and find out if it's correct or incorrect.

  • ️ Catalogs/Document Collections / Distributed as easy-to-read materials such as product lists or photo collections.

Since you can do all this without being connected to the internet, HTML is an excellent format for "tools that are complete just by handing over a file."

4. A slightly geeky topic: What happens when JavaScript runs...

From here on, it gets a little technical, but I will explain it as simply as possible.

HTML is used to create the "visual structure," but you can embed a program called JavaScript inside it.
JavaScript is the unsung hero responsible for "movement" and "calculations."

To use an analogy...
If HTML is the "blueprint of a house," then JavaScript is the "plumbing and electrical system inside the house."
It works behind the scenes to realize convenient features.

Using JavaScript, you can do things like this, for example:

  • Automatically calculate BMI when you enter your weight and height

  • Instantly display the price including consumption tax when you enter an amount

  • Find out if your answer is correct or incorrect on the spot when you select a quiz answer

  • Trigger animations when a button is pressed

This means that just by opening an HTML file, it becomes a "tool that performs calculations."
There is no need to install any apps. You can use it just by double-clicking the file.

5. How HTML files of the past and present differ

In fact, HTML has been evolving year by year. What you can do now is vastly different from 10 to 20 years ago.

Movement and Animation

  • Past: Mostly static images. Clicking just changed the page.

  • Present: Smooth animations, slides, and fluid movements are standard.

Calculation and Processing Power

  • Past: About as much as simple addition.

  • Present: Complex calculations, graph displays, and even integration with AI are possible.

Data Storage

  • Past: Almost impossible (reset every time)

  • Present: Data can be saved in the browser and carried over to the next time

Design

  • Past: Centered on tables and text. Sometimes felt tacky

  • Present: Beautiful screens can be created that are indistinguishable from smartphone apps

Audio/Video

  • Past: Required separate software called Flash

  • Present: Audio playback and video embedding can be completed with just HTML

If you've dabbled a bit, you might have the image that "HTML files seem old-fashioned," but modern HTML has features that are on par with smartphone apps.
In fact, there are many advantages to being able to use them without installation.

6. Why it's suitable for distributing tools that can be used on a PC

When you want to share tools with colleagues or at work, HTML files are actually becoming a useful option.
Kitakore-san and others often distribute them, right?

  • Complete in one file / Just send one file via email or LINE. No need to go through the trouble of zipping up a whole folder.

  • No installation required / The recipient doesn't need to install any software. It's less likely to cause confusion like "I can't open it!"

  • Works on both Windows and Mac / As long as you have a browser, you're good to go. You don't need to worry about the type of computer the other person has.

  • Works offline / Can be used even in places where the internet connection is unstable. No need to send personal information to the cloud.

  • ✏️ Easy to update later / Since it's a text file, modifications are relatively easy. Just redistribute the new version.

  • No cost / No need for special services or server contracts. Can be distributed and used for free.

✅ Usage examples
"Club membership fee calculation sheet," "travel itinerary," "neighborhood association contact list," etc. It might be a good idea to create familiar tools in HTML and distribute them to friends.
⋯⋯Wait, is there anyone who would go that far?? lol
Isn't Excel or something fine?

But you know, there are quite a lot of people who don't have Excel, but there is no one who doesn't have a browser.
You can view it on your smartphone even if you don't have a PC.
It depends on who can maintain it, but it might actually be a surprisingly viable option.

️ Points to note
However, HTML files can do almost anything.
If someone wanted to misuse them, they could.
HTML files from untrusted, unknown senders may rarely contain malicious programs.
Let's be careful not to open such files indiscriminately.

Summary

  • An HTML file is like a 'blueprint that can be opened in a browser'

  • You can create tools that work without the internet and are contained in a single file

  • By incorporating JavaScript, you can realize advanced functions such as calculations, quizzes, and games

  • Modern HTML has features that are just as good as those of applications

  • The fact that it is 'installation-free and contained in a single file' is a major strength when distributing tools to colleagues

If you think, 'I want to try making an HTML file myself!', these days you can make them surprisingly easily by asking AI.
The file below, which I prepared as a sample, was also made by an AI.
I was also blown away by how much it can actually do.

HTML sample file

I have summarized what HTML is like.
I hope this article helps expand your range of expression and serves as a useful piece of knowledge.


同じカテゴリの記事

三浦 拓海
コンテンツディレクター 三浦 拓海
プロフィールを見る →

映画と連続ドラマの公開情報を追う担当。配給会社のプレスシートと公式サイトの発表日を確認したうえで執筆します。

おすすめの関連記事