How to create a table with HTML and CSS? [closed]

0

Hello.

How do I create a responsive table in html and css using < ul > or < table > this way:

    
asked by anonymous 29.05.2017 / 22:02

1 answer

1

The HTML code to create this table would be as follows:

<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>

<table class="table table-responsive">
	<thead>
		<tr>
			<td width="100" rowspan="2">Resumo</td>
			<td>2</td>
			<td>3</td>
			<td>4</td>
		</tr>
		<tr>
			<td>5</td>
			<td>6</td>
			<td>7</td>			
		</tr>
	</thead>
	<tbody>
		<tr>
			<td><b>Direto</b></td>
			<td>1</td>
			<td>2</td>
			<td>3</td>
		</tr>
		<tr>
			<td><b>1 Parada</b></td>
			<td>4</td>
			<td>5</td>
			<td>6</td>
		</tr>
	</tbody>
</table>

I hope I have helped.

    
29.05.2017 / 22:10