Questions
Write a code to generate following using html:
Last Updated : 17 Jul 2025
Jan 23, Jan 2024
Solution:
<!DOCTYPE html>
<html>
<head>
<title>list</title>
</head>
<body>
<table border="1">
<tr bgcolor="grey">
<th colspan="2">Types of Memory</th>
</tr>
<tr>
<th>Primary Memory</th>
<th>Secondary Memory</th>
</tr>
<tr>
<td>
<ul>
<li>Ram
<ol type="a">
<li>SRAM</li>
<li>DRAM
<ul type="circle">
<li>SDRAM</li>
<li>RDRAM</li>
<li>DDR SDRAM</li>
</ul>
</li>
</ol>
</li>
<li>Rom
<ol type="a">
<li>PROM</li>
<li>EPROM</li>
<li>EEPROM</li>
<li>MROM</li>
</ol>
</li>
</ul>
</td>
<td>
<li>Magentic disk</li>
<li>Floppy disk</li>
<li>Hard disk</li>
<li>SSD</li>
<li>Pen drive</li>
<li>Blu ray disk</li>
<li>SD Card</li>
<li>CD</li>
<li>DVD</li>
</td>
</tr>
<tr bgcolor="grey">
<td colspan="2">Computer memory is a physical device capable of stroing information temp or per.</td>
</tr>
</table>
</body>
</html>
Code Explaination:
Table Elements:
<table border="1">
: Table with border.<tr bgcolor="grey">
: Grey row with header "Types of Memory".<tr>
: Row with column headers "Primary Memory" and "Secondary Memory".<tr>
: Row with lists for primary and secondary memory.- Primary Memory:
<ul>
with<li>
forRam
andRom
, each with sub-lists. - Secondary Memory:
<li>
list items likeHard disk
,SSD
, etc.
- Primary Memory:
<tr bgcolor="grey">
: Grey row with description of computer memory.
Report an error
Meanwhile you can watch this video
Watch Video