asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > @charset Rule

@charset Rule


Specifies the character set for an external stylesheet.

Syntax

HTML @charset "sCharacterSet"
Script N/A

Possible Values

sCharacterSet String specifying the character set.

The rule has no default value.

Remarks

At most, one @charset can be used in an external stylesheet, and it must appear at the top of the file, not preceded by any characters. The @charset rule cannot be in an embedded stylesheet.

Example

The following sample demonstrates how the @charset rule is implemented.

@charset "Windows-1251";


Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note