In this article, I will show you the complete way of rendering your HTML Program. HTML is a primary language of web development and it is used in all forms of websites, applications development. So without knowledge of HTML, You can’t deliver a clean and working webpage or application. So Basically HTML is the root of every website and application. In this post, I will show you how to write your first HTML Document and display the output of your HTML Program.
How 2 write your first HTML Program
Before you write your first HTML Program, I would like to explain to you some essential details.
To write your HTML Program, you need to have some basic code editors which will be really helpful to write your HTML Program. and some of the free tools are listed below:
You can use any of the above code editors. But Its not mandatory. You can still write your HTML code in a Notepad. So let’s get to the program.
Basic Code of HTML Program
You can copy the below code of HTML Program and paste it in your Notepad or your preferred code editor.
<html> <head> <title>I am HTML Program title</title> </head> <body> <!-----Primary page content goes inside the body tag-----> <h1>I am a heading</h1> <p>I am a paragraph and I can be used to display your page contents </p> <a href="https://crmboy.com">I am a link</a> <!------Page content end above this comment-------> </body> </html>
Outputting Your HTML Program
Once you paste the above code or write your own HTML Program, Now its time to save your file.
To save your file in Windows PC, you can press Ctrl+S and give your HTML Program a name like “myprogram” and then just after the name of program, you need to add .html file extension. So your complete saved file name will be “myprogram.html“
Once your file is saved on your preferred location for example, On Desktop. Please go to the desktop and double click on the file and select any browser like Google Chrome, Firefox or Microsoft Edge and open your file to output your HTML Program.
So this is the proper way to execute your first HTML Program and start learning HTML.
If you like this post. Please share it with your friends.