Open Notepad
Type the required HTML code in the editor window.
Press Ctrl + S to save the file with the extension myhtmlFile.htm or myhtmlFile.html
Make sure that "save as type" is set to all files.
Make sure encoding is UTF-8
Locate the saved HTML file and double click.
The file will open in the default web browser (Firefox, EDGE, or Chrome).