I am new to learning html.
I wrote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<title> My first html page </title>
<hr>
<p> hello world </p>
</html>
Then I saved it as an .html document in Open Office. When I opened the document in Firefox, it just showed up as the same HTML source code (above). What am I doing wrong? I'm running Ubuntu if that makes a difference.
I added the head and body tags but it still is only displaying as source code in the browser.
I wrote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<title> My first html page </title>
<hr>
<p> hello world </p>
</html>
Then I saved it as an .html document in Open Office. When I opened the document in Firefox, it just showed up as the same HTML source code (above). What am I doing wrong? I'm running Ubuntu if that makes a difference.
I added the head and body tags but it still is only displaying as source code in the browser.