Block and Inline Element

Element និមួយ​ៗ​នៅ​ក្នុង​ភាសា HTML មាន​លក្ខណ​បង្ហាញ (display) ​ពីរ​ប្រភេទ​គឺ លក្ខណ​បង្ហាញ​ប្រភេទ block និង​លក្ខណៈ​បង្ហាញ​ប្រភេទ inline ។ យ៉ាងណាម៉ិញ element ដែល​មាន​លក្ខណៈ​បង្ហាញ​ប្រភេទ block គឺ​ជា element ទាំងឡាយ​ណា​ដែល​ធ្វើ​អោយ​មាន​ការចុះ​បន្ទាត់​ដល់ element បន្ទាប់​ពី​វា​។ ផ្ទុយ​ទៅវិញ element ដែល​មាន​លក្ខណៈ​បង្ហាញ​ប្រភេទ inline គឺ​វា​មិន​ធ្វើ​អោយ​ការចុះបន្ទាត់​ចំពោះ element ដែល​មាន​ទីតាំង​បន្ទាប់​ពី​វា​ឡើយ​។

<!DOCTYPE html>
<html>
  <head>
  	<meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  	<title>Block and Inline Element</title>
  </head>
  
  <body>
	
Hello World

The DIV element is a block element, and will always start on a new line and take up the full width available (stretches out to the left and right as far as it can).

</body> </html>
Hello World

The DIV element is a block element, and will always start on a new line and take up the full width available (stretches out to the left and right as far as it can).


បណ្តា element ដែល​មាន​លក្ខណបង្ហាញ block មាន​ដូច​ខាង​ក្រោម​នេះ៖

<address><article><aside><blockquote><canvas><dd><div><dl><dt><fieldset><figcaption><figure><footer><form><h1>-<h6><header><hr><li><main><nav><noscript><ol><p><pre><section><table><tfoot><ul><video>

ចំណែក​ឯ element ដែល​មាន​លក្ខណបង្ហាញ inline វិញ​មាន​ដូច​ខាង​ក្រោម​នេះ៖

<a><abbr><acronym><b><bdo><big><br><button><cite><code><dfn><em><i><img><input><kbd><label><map><object><output><q><samp><script><select><small><span><strong><sub><sup><textarea><time><tt><var>