declaring character encoding in html5 code example Example: html set character encoding <meta charset="UTF-8" />