Jump to content

browser difference


tersal

Recommended Posts

Hello new to HTML created my first page on a MAC using Textedit then Sublime. My page is fine on Chrome yet on Mozillza  and Firefox at the end of some of my tags I see these symbols.




Any ideas?
Code is below:


<!DOCTYPE html >
<html>

 

<body>

<h1>My First Heading</h1>

<p> My First paragraph.</p>

</body>
</html>

 

Link to comment
Share on other sites

This is called a "byte-order mark" or "BOM". Be sure that your code editor is set to save your HTML with an encoding UTF-8 without BOM.

The other thing you need to do to prevent encoding issues is to add a meta tag indicating that your document is encoded in UTF-8:

<meta charset="UTF-8">

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...