I’m a rookie in webpage development working on my first webpage. I wrote some HTML code in a text editor and saved it as an HTML file. However, when I open it in my browser, I only see the plain HTML text instead of the table. Can anyone help me with this?
The following is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY>
<CENTER>
<TABLE border=2>
<CAPTION>My Homework</CAPTION>
<TR>
<TD>Link to Homework #1</TD>
<TD>Link to Homework #2</TD>
<TR>
<TD>Link to Homework #3</TD>
<TD>Link to Homework #4</TD>
<TR>
<TD>Link to Homework #5</TD>
<TD>Link to Homework #6</TD>
<TR>
<TD>Link to Homework #7</TD>
<TD>Link to Homework #8</TD>
</TABLE>
</CENTER>
</BODY>
</HTML>
In addition to closing the
<TR>‘s with</TR>‘s make sure you are saving the file with an extension that indicates it’s an HTML file. page.html, page.htm etc.So you are using TextEdit on Mac. Sounds like you might want to read this to ensure you are saving the file correctly.