HTML REFERANSLAR

HTML Alfabetik

HTML Standart Özellikler

HTML Olay Özellikleri

HTML Dil Kodları

HTML Doctype

HTML ETİKETLERİ

<!-- ... -->

<!DOCTYPE>

<a>

<abbr>

<acronym>

<address>

<applet>

<area>

<article>

<aside>

<audio>

<b>

<base>

<basefont>

<bdi>

<bdo>

<big>

<blockquote>

<body>

<br>

<button>

<canvas>

<caption>

<center>

<cite>

<code>

<col>

<colgroup>

<command>

<datalist>

<dd>

<del>

<details>

<dfn>

<dir>

<div>

<dl>

<dt>

<em>

<embed>

<fieldset>

<figcaption>

<figure>

<font>

<footer>

<form>

<frame>

<frameset>

<h1> ... <h6>

<head>

<header>

<hgroup>

<hr>

<html>

<i>

<iframe>

<img>

<input>

<ins>

<kbd>

<keygen>

<label>

<legend>

<li>

<link>

<map>

<mark>

<menu>

<meta>

<meter>

<nav>

<noframes>

<noscript>

<object>

<ol>

<optgroup>

<option>

<output>

<p>

<param>

<pre>

<progress>

<q>

<rp>

<rt>

<ruby>

<s>

<samp>

<script>

<section>

<select>

<small>

<source>

<span>

<strike>

<strong>

<style>

<sub>

<summary>

<sup>

<table>

<tbody>

<td>

<textarea>

<tfoot>

<th>

<thead>

<time>

<title>

<tr>

<track>

<tt>

<u>

<ul>

<var>

<video>

<wbr>

HTML <script> charset Özelliği

HTML <script> Etiketi

Örnek

<script src="script.js" charset="UTF-8"></script>


Tarayıcı Desteği

Charset özelliğini popüler tüm tarayıcılar desteklemektedir.


Tanım ve Kullanımı

Charset özelliği harici komut dosyasında kullanılan karakter kodlamasını belirtir.

Bu özellik HTML belgesi ile komut dosyası arasındaki karakter kodlamaları farklı olduğunda kullanılır.


HTML 4.01 ve HTML5 Farkları

Kullanım farklılığı yoktur.


Sözdizimi

<script charset=" değer ">


Alabileceği Değerler

DeğerTanım
değerBağlı komut dosyasının karakter kodunu belirtir.

Ortak Değerler:
UTF-8: Unicode karakter kodlaması
ISO-8859: Latin alfabesi karakter kodlaması

HTML <script> Etiketi

Referanslar

HTML Referansları