How do you create table with 2 rows and 3 cells?
Experience Level:
Junior
Tags:
HTML
Answer
For creating rows and cells you can use tag <table>.
Example
<html>
<head>
...
</head>
<body>
<table>
<tr>
<th>first name</th>
<th>last name</th>
</tr>
<tr>
<td>Jim</td>
<td>Smith</td>
</tr>
</table>
</body>
</html>
Related HTML job interview questions
-
How does HTML/CSS work with DOM?
HTML Junior -
What is DOM?
HTML Junior -
What is <i> tag?
HTML Junior -
What is <strong> tag?
HTML Junior -
Can you give 10 examples of the most used attributes?
HTML Junior