Computer scienceFrontendHTMLHTML IntroCode style

Code style

Indents

Report a typo

Which code sample shows a proper use of indents?

A)

<p>Shopping list</p>
  <ul>
    <li>Bread</li>
    <li>Milk</li>
    <li>Butter</li>
    <li>Towels</li>
  </ul>

B)

<div class="nav">
    <div class="nav-item"> ... </div>
    <div class="nav-item"> ... </div>
    <div class="nav-item"> ... </div>
</div>

C)

<table>
  <tr>
    <th>heading</th>
    <th>heading</th>
  </tr>
  <tr>
    <td>data</td>
    <td>data</td>
  </tr>
</table>

D)

<div class="form-group row">
<label for="name" class="col-sm-2 col-form-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name" placeholder="name">
</div>
</div>
Select one option from the list
___

Create a free account to access the full topic