Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
When I am writing HTML code in Notepad and saved it. And When I try to open it in browser the complete code written in HTML notepad is printed in browser. How to resolve this issue

What I have tried:

I tried to change the properties of notepad and tried searching for a solution for it.
Posted
Updated 19-Mar-23 7:51am
Comments
0x01AA 19-Mar-23 11:52am    
Maybe you show us your 'HTML code' to give us a chance to help?
Saranya Reddy 19-Mar-23 11:56am    
There is no error in the code but it dont know how to access that to the browser
0x01AA 19-Mar-23 11:59am    
Maybe you just missed to give the file the extension '.html'?
Saranya Reddy 19-Mar-23 12:00pm    
Even i did that :(
Saranya Reddy 19-Mar-23 12:01pm    
It even shows HTML file

1 solution

Since you're not showing code it's hard to say what's going on but this is the basics of what you need to produce an html page.

HTML
<!DOCTYPE html>
<html lang="en-us">

<head>

	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>Page Title</title>

	<!--Additional elements for browsers and robots go here goes here-->

</head>

<body>
	<p>your code need to go here</p>
</body>

</html>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900