Can anyone tell me how to save and run a html code?

Asked By 0 points N/A Posted on -
qa-featured

Dear Experts,

I have learnt few codes of HTML. Just for the practice I am trying to save and run HTML code in notepad.

But when I save and run it, it opens in text format again.

Can anyone tell me how to save and run a html code?

SHARE
Best Answer by Rubi Sharlene
Answered By 0 points N/A #165531

Can anyone tell me how to save and run a html code?

qa-featured

Hello Dawn,

Here is how to save and run HTML code.

First of all open the notepad write down your html code.

After that save the file.

This is the most important part of the creating the code when you are putting the name of the file at the end you should write html , after that your notepad file became html file.

At the end everything you should do is to start the file.

Best Answer
Best Answer
Answered By 0 points N/A #165532

Can anyone tell me how to save and run a html code?

qa-featured

Hello Dawn,

This a very common problem that lot of people faced during the beginning of their HTML carrier. You have done great up to the coding part you are missing is a simple step in the saving procedure. Here you have save the file as a ‘.txt’ and to open up it in a browser you need to save it as ‘.html’ file. Just put the ‘.html’ instead of ‘.txt’ in the save as tab when you are saving the file.

For confirmation that you saved your file correctly go to the location that you saved the file and you will see it has your browser logo as the icon. Now just double click the file and it will automatically open with your browser. That’s it. 

Don’t forget this after now and you will get used to this when you do more html coding. 

If your default is chrome and you saved the file as test.html you would see a icon like this

                              test.html

If your default is Firefox and you saved the file as test.html you would see a icon like this

                                  test.html

If your default is Internet Explorer and you saved the file as test.html you would see a icon like this

             

                                  test.html

 

Thank you.

Rubi Sharlene

Related Questions