Hide Row from Table

How to hide <tr> or <td> from html page. i don't want to remove i just want to hide so no body can see it.

thanks
deepakabcAsked:
Who is Participating?
 
hieloConnect With a Mentor Commented:
Use css. Look at the code below
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
	<style type="text/css"><!--
	#secretRow{visibility:hidden;display:none;}
	--></style>
 
</head>
<body>
<table>
	<tr id="secretRow">
		<td>a</td><td>b</td>
	</tr>
	<tr>
		<td>c</td><td>d</td>
	</tr>
</table>
</body>
</html>

Open in new window

0
 
deepakabcAuthor Commented:
thanks for that
0
 
hieloCommented:
Why "B"? Doesn't it do what you wanted? What were you expecting?
0
All Courses

From novice to tech pro — start learning today.