function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shruthi MN 88Shruthi MN 88 

HTML and CSS

Hi Everyone,

I have written a html code but I dont know how to add the color. Attached is the page which has to be designed for your reference:


<html>
  <head>
<style>
<style>
table {
th
    {
      background-color:yellow;
      color:black;
    }
}
</style>
  </head>
  <body> 
  <table border="2" width=50% height= 50%>
    <tr> 

    <th colspan ="7" >Timetable</th>  

    </tr> 
    <tr> 
    <th rowspan ="7" >Hours</th> 
<th> Days/Periods</th> 
    <th> Mon</th> 
    <th> Tue</th> 
    <th> Wed</th> 
    <th> Thurs</th> 
    <th> Fri</th> 
    </tr> 
    <tr> 
    <td>10:00 to 11:00 </td> 
    <td>Science</td>
    <td>Maths</td>
    <td>Science</td> 
    <td>Maths</td> 
   <td>English</td> 
    </tr> 
    <tr> 
    <td>11:00 to 12:00</td> 
    <td>Science</td>
    <td>Maths</td>
    <td>Science</td> 
    <td>Maths</td> 
   <td>English</td> 
    </tr> 
    <tr> 
    <th colspan="5">Lunch</th> 
    </tr> 
    <tr> 
    <td>12:00 to 14:00</td> 
    <<td>Science</td>
    <td>Maths</td>
    <td>Science</td> 
    <td>Maths</td> 
    <td rowspan="2">Project</td>
    </tr> 
    <tr> 
    <td>14:00 to 15:00</td> 
    <<td>Science</td>
    <td>Maths</td>
    <td>Science</td> 
    <td>Maths</td>  
    </tr> 
     
    
  </body>
</html>


User-added image
AshwiniAshwini (Salesforce Developers) 
Hi Shruthi,

Are you trying to embed this html code in vfpage/lwc?