html5 - Will the character encoding(charset) declaration apply to the HTML file after saving it on my hard disk in following scenario? -
i'm using microsoft windows 10 home single language 64-bit operating system on laptop. i'm learning html on laptop w3schools html tutorial(the best in class tutorial available on internet).
i wrote following html code simple notepad editor:
<!doctype html> <html> <body> <h1>my first heading</h1> <p>my first paragraph.</p> </body> </html>
then named file index.html , trying save on hard disk. while doing changed option encoding drop-down box ansi
utf-8
, saved file on hard disk.
so question without using proper syntax character encoding i.e.
<meta charset="utf-8">
into <head>
tag of html page character encoding apply file index.html saved hard disk.
if yes how without adding code it? if no why after setting encoding type before saving file?
the character encoding of file has how content of file saved. special characters etc. how file viewed different matter. depending on server, file either base encoding on server-side setup (httpd.conf, instance), or if it's served via php, settings set in php.ini. if server, reason, not use of settings, <meta>
-tag in html might used, , should match method it's saved with, since if not, characters might shown either broken, wrong, or gibberish.
Comments
Post a Comment