0
Why i cannot write html5 programs in notepad
I have written svg for creating star but in my computer it is not showing me that things i have written write code then also i am unable to run it What should I do https://code.sololearn.com/WsPl07wN1GWc/?ref=app
5 Respuestas
+ 10
Not sure if I'm understanding this right... When you open the file, does it open in your browser and not work, or is it opening in Notepad?
If it keeps opening in Notepad, make sure the file extension is .html
If your computer hides file extensions, it's probably actually named "filename.html.txt". Right-click it, checks its properties, and remove the .txt
+ 3
You Can Use DreamWeaver
i know DW only free for 30 days but i had do a little hack so i can open dreamweaver forever.
+ 1
So first if the code here is an exact copy of what is in your html file on your computer, this line:
<path d="M 0 0 L100 100 L200 200 L50 300 L250 200 Z"style="stroke:white; fill:red;" />
needs to have a space added between " and the s in style like:
<path d="M 0 0 L100 100 L200 200 L50 300 L250 200 Z" style="stroke:white; fill:red;" />
Some browsers may not interpret the code correctly without it.
In addition to that and what everyone else has already pointed out. Your file extension default action may not be set correctly if double clicking on the file doesn't open it in the default browser. You may try using the file > open > (navigate to file) from the file menu to open the html file or drag and drop the file onto the browser (most browsers support this). If you are opening the file in the browser ok, but it is not displaying the svg, this may be due to browser support. Check to see that the version of the browser you are using supports svg and/or try a different browser.
http://caniuse.com/#feat=svg
+ 1
Thanks everyone for helping me but my internet explorer was not supporting it but it works on firefox
0
I have saved it with extention .html but its not working in Browser