Question:

How to create a table using CSS with HTML 4.0?

by  |  earlier

0 LIKES UnLike

I want to create a set the layout of a table with color using CSS with standard HTML 4.0, so i am not sure my workout is right or wrong? I am just trying my best

I use this site to http://www.w3schools.com/css/tryit.asp?filename=trycss_table_table-layout and it came out blank. What is wrong?

<html>

<head>

<style type="text/css">

body {

font-family: vardana, geneva, arial, sans-serif;

}

h1, h2 {

font-weight: normal;

color: #cc6600;

broder-bottom: thin dotted #888888;

}

h1 {

font-size: 170%;

}

h2 {

font-size: 130%

}

blockquote {

font-style: italic;

}

table {

margin-left: 20px;

margin-right: 20px;

border: thin solid black;

caption-side: bottom;

broder-collapse: collapse;

}

td,th {

broder: thin dotted gray;

padding: 5px;

}

th {

background-color: #cc6600;

}

cell color {

background-color: #fcba707;

}

<tr>

class= "cellcolor"

caption {

font-style: italic;

padding-top: 8px;

}

</body>

</html>

 Tags:

   Report

2 ANSWERS


  1. In addition to the previous answer, I believe that vardana listed in the &quot;font-family&quot; should be verdana. Also not sure that you can use that as a &quot;font-family&quot;. Are not the font families either &quot;times new roman&quot; or &quot;arial.&quot; I am not sure that I am correct on this last part of the answer; however vardana should be verdana


  2. you didn&#039;t close &lt;style&gt; and &lt;head&gt; tags

    put

    &lt;/style&gt;

    &lt;/head&gt;

    right before

    &lt;/body&gt;

    &lt;/html&gt;

    also, delete this:

    &lt;tr&gt;

    class= &quot;cellcolor&quot;

    what is it for?

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions