JSFiddle - React, Tailwind, and code Playground

by Tìm ở đây Khoá học CNTT

HTML

<h1>Khóa học GIS:</h1>
<h2>Lịch sử GIS và các mốc quan trọng</h2>
<h2>Thực hành GIS với  ArcView </h2>

<h1>Khóa học C#:</h1>
<h2>Tổng quan về C#</h2>
<h2>Hướng dẫn học C#</h2>

CSS

body {
  counter-reset: section;
}

h1 {
  counter-reset: subsection;
}

h1::before {
  counter-increment: section;
  content: "Section " counter(section) ". ";
}

h2::before {
  counter-increment: subsection;
  content: counter(section) "." counter(subsection) " ";
}