Why is my html file showing weird text at the top of my web page?

Virg

New member
I am using Text Edit to write the code, saving as text, changing the extension to .html and opening it with google chrome. It looks the same in Safari. Here is what the page looks like:

{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf290 {\fonttbl\f0\froman\fcharset0 Times-Roman;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww9000\viewh8400\viewkind0 \deftab720 \pard\pardeftab720\ql\qnatural \f0\fs24 \cf0 \ \ \
My First Heading

\ \
My first paragraph.

\ \ \ }

Here is what the code looks like:
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>
 
Back
Top