Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

HTML & CSS HTML Table Issue

willroach

New Coder
Hello all,
can't seem to get this table to provide the proper results without displaying the error shown below when ran through a validator.


<div class="techDiv">

<p style="font-family: copperplate; color: lightblue; font-size: 30px;"><u> Technology Skills </u> </p>

<table>

<tr>

<th style="font-family: verdana; color: lightblue"> Skill</th>

<th style="font-family: verdana; color: lightblue">Confidence</th>

</tr>

<tr>

<td style="font-family: verdana; color: white">HTML & CSS</td>

<td style="font-family: verdana; color: white">8/10</td>

</tr>

<tr>

<td style="font-family: verdana; color: white">Python</td>

<td style="font-family: verdana; color: white">7/10</td>

</tr>

<tr>

<td style="font-family: verdana; color: white">Databases & SQL</td>

<td style="font-family: verdana; color: white">6/10</td>

</tr>

</table>

</div>Screen Shot 2022-08-28 at 1.23.15 PM.png
 
Hmm, the error is reported on line 133, but you're showing only 21 lines of HTML. Are you sure the line in question is shown ?
If I copy these lines and run them through the w3c validator (adding some required tags) it reports no issues.
You should inspect your HTML in your text editor, showing Visible Spaces (any good editor has that option) to see is there's something funny there that you would normally overlook.

BTW, please always post code in CODE tags, like below, and preferably post complete code (which would have saved me the time to make it a valid HTML document)

HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>foo</title>
</head>
<body>
<div class="techDiv">
<p style="font-family: copperplate; color: lightblue; font-size: 30px;"><u> Technology Skills </u> </p>
<table>
<tr>
<th style="font-family: verdana; color: lightblue"> Skill</th>
<th style="font-family: verdana; color: lightblue">Confidence</th>
</tr>
<tr>
<td style="font-family: verdana; color: white">HTML & CSS</td>
<td style="font-family: verdana; color: white">8/10</td>
</tr>
<tr>
<td style="font-family: verdana; color: white">Python</td>
<td style="font-family: verdana; color: white">7/10</td>
</tr>
<tr>
<td style="font-family: verdana; color: white">Databases & SQL</td>
<td style="font-family: verdana; color: white">6/10</td>
</tr>
</table>
</div>
</body>
</html>
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom