File: counter.htm

package info (click to toggle)
litehtml 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,928 kB
  • sloc: ansic: 31,385; cpp: 27,328; makefile: 9
file content (79 lines) | stat: -rw-r--r-- 1,470 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
  <title>
    css counters
  </title>
  <style type="text/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) " ";
      }

      ol {
        counter-reset: section;
        list-style-type: none;
      }

      li::before {
        counter-increment: section;
        content: counters(section,".") " ";
      }
  </style>
</head>
<body>
    <h1>HTML/CSS Tutorials</h1>
    <h2>HTML</h2>
    <h2>CSS</h2>
    <h2>Bootstrap</h2>
    <h2>W3.CSS</h2>

    <h1>Scripting Tutorials</h1>
    <h2>JavaScript</h2>
    <h2>jQuery</h2>
    <h2>React</h2>

    <h1>Programming Tutorials</h1>
    <h2>Python</h2>
    <h2>Java</h2>
    <h2>C++</h2>
    <ol>
      <li>item</li>
      <li>item   
      <ol>
          <li>item</li>
          <li>item</li>
          <li>item
          <ol>
          <li>item</li>
          <li>item</li>
          <li>item</li>
          </ol>
          </li>
          <li>item</li>
      </ol>
      </li>
      <li>item</li>
      <li>item</li>
      </ol>
  
      <ol>
      <li>item</li>
      <li>item</li>
      </ol>
  
</body>
</html>