0

hey gues just practicing some HTML im haveing a problem with my code and it wont center. its the <h1> code i have 2 images on either side of the text(text is in between the jpg images) how can i move it over here is my code for it:

<html>
<body>
<TR>
<table width="1425";border="1" color="#0000FF";>
<TD colspan="0" style="background-color:#000000";>
<table width="1425";border="1" color="#0000FF";"text-align:center";>
<font size="85"; face="bobcat"; color="#0000FF";>
<h1><b><img src ="funny1.jpg"/>my<font color="#8E35EF">funny<font color="#0000FF"></b></TD>images<font color="#8E35EF"></b></TD>.COM<img src = "Funny2.jpg"/></b></h1>
</td></tr>
3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by JorgeM
1

With regard to your HTML table, the flow of the element's is not corect.

First is the <table> element, then table row <tr>, then its table data <td>. So an example of a table with one row and two cells would look like this:

<table>
  <tr><td>first cell</td><td>second cell</td></tr>
</table>

There are some other elements missing, not sure if you copied and pasted from your html or jut quickly jotted a few lines of HTML markup. For example, the first element is html, then head, then body Here is an example:

<html>
<head>
  <title>
</head>
<body>
  <!-- your html code -->
</body>
</html>

Also keep in mind that your pages should really have only one h1 element. If you are using h1 for formatting purposes, it is recommmended that you use the <span> element and style the text accordingly.

Votes + Comments
That's the answer!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.