Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Makboy

macrumors newbie
Original poster
Mar 2, 2017
12
0
Hi guys, this is driving me crazy, there are 2 errors but can't find a solution, can you please have a look at it?

This website might help to copy and paste and find the error faster but even in this way I can't figure it out what's happening.

http://htmlhint.com/

thanks!
Code:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>MSC Magnific 7</title>
<style type="text/css">
html, body, div, span , table  {






a:link {
    color: #19233E;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #19233E;
}
a:hover {
    text-decoration: none;
    color: #009FE3;
}
a:active {
    text-decoration: none;
}
a:link {
    text-decoration: none;
    font-weight: bold;
}
a {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
    font-weight: bold;
}
</style>
</head>

<body link="#19233E" vlink="#19233E" alink="#19233E">
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0" margin="0">
  <tbody>
    <tr>
      <td  colspan="3" align="center" valign="top" bgcolor="#19233E"><img src="Img/M7_top.jpg" width="650" height="508" alt=""/></td>
    </tr>
    <tr align="center">
      <th height="70" colspan="3" valign="top" bgcolor="#19233E"><p style="font-size: 16px; text-align: center; color: #FFFFFF; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif;">MEET OUR <span style="color: #009FE3; font-weight: bold;">NEW</span> TEAM, ENTER THE <span style="color: #009FE3; font-weight: bold;">COMPETITION OF THE YEAR</span><br>
        WHICH WILL SEE YOU JET OFF TO MIAMI AND EXPERIENCE THE HIGHLY ANTICIPATED
            <span style="font-weight: bold">MSC SEASIDE</span> AND MUCH MORE.</p></th>
    </tr>
    <tr>
      <td height="252" colspan="3"><img src="Img/MSC_map" width="650" height="290" alt=""/></td>
    </tr>
    <tr align="center" valign="middle" style="text-align: center">
      <td height="5
      " colspan="3"><hr></td>
    </tr>
    <tr align="center" valign="middle" style="text-align: center">
      <td width="325" height="210" valign="top"><img src="Img/MSC_win.jpg" width="325" height="210" alt=""/></td>
      <td width="325" height="210" valign="top" ><p style="font-size: 36px; text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: bolder;  line-height:100% ; style=color:#19233E; font-weight: bold; font-size: 20px; </span> <span>    style=color: #19233E; font-weight: bold; font-size: 20px" >To celebrate the arrival of MSCCruises dedicated Ex UK programme in 2018, we will be hosting the ‘not to miss’ competition of the year spread across 7 regional heats.       
<p style="font-size: 12px; valign=top; color: #19233E; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: normal">Each of the regional winners will bag a space on our VIP launch ceremony of <span style="font-weight: bold">MSC Meraviglia</span> and the <span style="font-weight: bold">ultimate winner to be announced at the CLIA 2017 conference.</span>



    <tr align="center" valign="top" style="text-align: center">
      <td height="5" colspan="3" valign="top"><hr></td>
    </tr>
    <tr>
      <td height="25" colspan="3" align="center" valign="top" style="font-size: 22px"><span style="font-weight: bold; color: #009FE3;">7 MAGNIFICENT</span> <span style="color: #19233E; font-weight: bold;">WAYS TO PROMOTE MSC MAGNIFICA</span></td>
    </tr>
    <tr>
      <td height="250" colspan="3" align="center" valign="top"><a href="mailto:xxxx@xxxx.com" target="_blank"><img src="Img/MSC_steps.jpg" width="650" height="250" alt=""/>
        <hr>
      </a></td>
    </tr>
    <tr>
      <td height="215" align="center" valign="top"><img src="Img/MSC_teamA.jpg" width="325" height="226" alt=""/></td>
      <td height="215" align="center" valign="top" ><p style="font-size: 36px; text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: bolder;  line-height:100% ; style=color:#19233E; font-weight: bold; font-size: 20px; </span><span style=color:#19233E; font-weight: bold; font-size: 20px" ><span style="font-size: 36px"><span style="font-weight: bold; color: #009FE3;">MEET</span> <span style="color: #19233E; font-weight: bold;">THE TEAM</span>
        <p style="font-size: 12px; valign=top; color: #19233E; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: normal;">If you and your colleagues would like to join the <span style="font-weight: bold">MSC gang for an unmissable evening of fun, training, drinks and nibbles </span>without pre-entering into our competition simply email your name, company name and chosen region to <a href="mailto:xxxxx@xxxxx.com"  target="_blank">xxxxxxx@xxxxx.com</a></p>
     </td>
    </tr>
    <tr>
      <td height="5" colspan="3" align="center" valign="top"><hr width="650" size="5"></td>
    </tr>
    <tr>
      <td height="55" colspan="3" align="center" valign="top"><img src="Img/MSC_mag_promo.jpg" width="650" height="55" alt=""/></td>
    </tr>
    <tr>
      <td height="100" colspan="3" align="center" valign="top" style="font-size: 14px; text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: bold;"><p>BOOKINGS MADE BETWEEN 15TH MARCH – 30TH JUNE 2017  WILL ALSO RECEIVE </p>
        <hr>
        <p>FREE <span style="font-weight: normal">ALL-INCLUSIVE DRINKS PACKAGE <span style="font-weight: bolder">+</span></span> FREE <span style="font-weight: normal">WIFI PACKAGE</span></p>
        <hr>
        <p>PLUS REGIONAL CONNECTIONS AVAILABLE</p></td>
    </tr>
    <tr>
      <td height="50" colspan="3" align="center" valign="middle" style="text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-size: 12px; color: #19233E;"> Terms and conditions apply. To find out further information or to book please log on to<br>
      <span style="font-weight: bold"><a href="https://www.xxxx.com" target="_blank">www.xxxx.com</a></span> or call us on <span style="font-weight: bold; font-size: 16px;">0203 426 3000</span></td>
    </tr>
    </p>  </p>
 </tbody> </table>
</body>
</html>
 
Last edited:

sugardrum

macrumors newbie
Apr 20, 2010
17
0
There's a couple of errors that I can see

- you have 2 closing </p> tags near the end of the document
- the CSS at the beginning is wrong, there's no closing } after all the html, body styles. Just remove line 7 and that should fix that as you don't define any styling there anyway.

best wishes,
Nigel

Hi guys, this is driving me crazy, there are 2 errors but can't find a solution, can you please have a look at it?

This website might help to copy and paste and find the error faster but even in this way I can't figure it out what's happening.

http://htmlhint.com/

thanks!
Code:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>MSC Magnific 7</title>
<style type="text/css">
html, body, div, span , table  {






a:link {
    color: #19233E;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #19233E;
}
a:hover {
    text-decoration: none;
    color: #009FE3;
}
a:active {
    text-decoration: none;
}
a:link {
    text-decoration: none;
    font-weight: bold;
}
a {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
    font-weight: bold;
}
</style>
</head>

<body link="#19233E" vlink="#19233E" alink="#19233E">
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0" margin="0">
  <tbody>
    <tr>
      <td  colspan="3" align="center" valign="top" bgcolor="#19233E"><img src="Img/M7_top.jpg" width="650" height="508" alt=""/></td>
    </tr>
    <tr align="center">
      <th height="70" colspan="3" valign="top" bgcolor="#19233E"><p style="font-size: 16px; text-align: center; color: #FFFFFF; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif;">MEET OUR <span style="color: #009FE3; font-weight: bold;">NEW</span> TEAM, ENTER THE <span style="color: #009FE3; font-weight: bold;">COMPETITION OF THE YEAR</span><br>
        WHICH WILL SEE YOU JET OFF TO MIAMI AND EXPERIENCE THE HIGHLY ANTICIPATED
            <span style="font-weight: bold">MSC SEASIDE</span> AND MUCH MORE.</p></th>
    </tr>
    <tr>
      <td height="252" colspan="3"><img src="Img/MSC_map" width="650" height="290" alt=""/></td>
    </tr>
    <tr align="center" valign="middle" style="text-align: center">
      <td height="5
      " colspan="3"><hr></td>
    </tr>
    <tr align="center" valign="middle" style="text-align: center">
      <td width="325" height="210" valign="top"><img src="Img/MSC_win.jpg" width="325" height="210" alt=""/></td>
      <td width="325" height="210" valign="top" ><p style="font-size: 36px; text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: bolder;  line-height:100% ; style=color:#19233E; font-weight: bold; font-size: 20px; </span> <span>    style=color: #19233E; font-weight: bold; font-size: 20px" >To celebrate the arrival of MSCCruises dedicated Ex UK programme in 2018, we will be hosting the ‘not to miss’ competition of the year spread across 7 regional heats.      
<p style="font-size: 12px; valign=top; color: #19233E; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: normal">Each of the regional winners will bag a space on our VIP launch ceremony of <span style="font-weight: bold">MSC Meraviglia</span> and the <span style="font-weight: bold">ultimate winner to be announced at the CLIA 2017 conference.</span>



    <tr align="center" valign="top" style="text-align: center">
      <td height="5" colspan="3" valign="top"><hr></td>
    </tr>
    <tr>
      <td height="25" colspan="3" align="center" valign="top" style="font-size: 22px"><span style="font-weight: bold; color: #009FE3;">7 MAGNIFICENT</span> <span style="color: #19233E; font-weight: bold;">WAYS TO PROMOTE MSC MAGNIFICA</span></td>
    </tr>
    <tr>
      <td height="250" colspan="3" align="center" valign="top"><a href="mailto:xxxx@xxxx.com" target="_blank"><img src="Img/MSC_steps.jpg" width="650" height="250" alt=""/>
        <hr>
      </a></td>
    </tr>
    <tr>
      <td height="215" align="center" valign="top"><img src="Img/MSC_teamA.jpg" width="325" height="226" alt=""/></td>
      <td height="215" align="center" valign="top" ><p style="font-size: 36px; text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: bolder;  line-height:100% ; style=color:#19233E; font-weight: bold; font-size: 20px; </span><span style=color:#19233E; font-weight: bold; font-size: 20px" ><span style="font-size: 36px"><span style="font-weight: bold; color: #009FE3;">MEET</span> <span style="color: #19233E; font-weight: bold;">THE TEAM</span>
        <p style="font-size: 12px; valign=top; color: #19233E; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: normal;">If you and your colleagues would like to join the <span style="font-weight: bold">MSC gang for an unmissable evening of fun, training, drinks and nibbles </span>without pre-entering into our competition simply email your name, company name and chosen region to <a href="mailto:xxxxx@xxxxx.com"  target="_blank">xxxxxxx@xxxxx.com</a></p>
     </td>
    </tr>
    <tr>
      <td height="5" colspan="3" align="center" valign="top"><hr width="650" size="5"></td>
    </tr>
    <tr>
      <td height="55" colspan="3" align="center" valign="top"><img src="Img/MSC_mag_promo.jpg" width="650" height="55" alt=""/></td>
    </tr>
    <tr>
      <td height="100" colspan="3" align="center" valign="top" style="font-size: 14px; text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-weight: bold;"><p>BOOKINGS MADE BETWEEN 15TH MARCH – 30TH JUNE 2017  WILL ALSO RECEIVE </p>
        <hr>
        <p>FREE <span style="font-weight: normal">ALL-INCLUSIVE DRINKS PACKAGE <span style="font-weight: bolder">+</span></span> FREE <span style="font-weight: normal">WIFI PACKAGE</span></p>
        <hr>
        <p>PLUS REGIONAL CONNECTIONS AVAILABLE</p></td>
    </tr>
    <tr>
      <td height="50" colspan="3" align="center" valign="middle" style="text-align: center; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-size: 12px; color: #19233E;"> Terms and conditions apply. To find out further information or to book please log on to<br>
      <span style="font-weight: bold"><a href="https://www.xxxx.com" target="_blank">www.xxxx.com</a></span> or call us on <span style="font-weight: bold; font-size: 16px;">0203 426 3000</span></td>
    </tr>
    </p>  </p>
 </tbody> </table>
</body>
</html>
 

Makboy

macrumors newbie
Original poster
Mar 2, 2017
12
0
There's a couple of errors that I can see

- you have 2 closing </p> tags near the end of the document
- the CSS at the beginning is wrong, there's no closing } after all the html, body styles. Just remove line 7 and that should fix that as you don't define any styling there anyway.

best wishes,
Nigel
Thanks, I had a look at it fresh on the morning and I could find some duplications, it was not necessary to delete line 7, I've just removed a couple of /spans and added /tr at the very end. I just learnt a lesson, when your brain says STOP...just STOP! :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.