خطوط خالی و تورفتگی

بدون دلیل خطوط خالی اضافه نکنید.

برای خوانایی، خطوط خالی را برای جدا کردن بلوک‌های کد بزرگ یا منطقی اضافه کنید.

برای خوانایی، دو فاصله تورفتگی اضافه کنید.از کلید tab استفاده نکنید.

از خطوط خالی و تورفتگی غیرضروری استفاده نکنید.تورفتگی هر عنصر ضروری نیست:


Unnecessary:



<body>

  <h1>Famous Cities</h1>

  <h2>Tokyo</h2>


  <p>
    Tokyo is the capital of Japan, the
center of the Greater Tokyo Area,
    and the most
populous metropolitan area in the world.
    It is the
seat of the Japanese gove
ment and the Imperial Palace,
   
and the home of the Japanese Imperial Family.
  </p>

</body>


Better:



<body>

<h1>Famous Cities</h1>

<h2>Tokyo</h2>

<p>Tokyo is the capital of Japan, the
center of the Greater Tokyo Area,
and the most
populous metropolitan area in the world.
It is the
seat of the Japanese gove
ment and the Imperial Palace,

and the home of the Japanese Imperial Family.</p>

</body>


Table Example:



<table>
  <tr>
    <th>Name</th>

    <th>Description</th>

 
</tr>
  <tr>
    <td>A</td>

    <td>Description of A</td>

 
</tr>
  <tr>
    <td>B</td>

    <td>Description of B</td>
  </tr>
</table>


List Example:



<ul>
  <li>London</li>
  <li>Paris</li>

 
<li>Tokyo</li>
</ul>