HTML: Tag[] getAllTags() : HTML « javax.swing.text.html « Java by API






HTML: Tag[] getAllTags()

      
import javax.swing.text.html.HTML;

public class Main {

  public static void main(String[] args) {

    HTML.Tag[] list = HTML.getAllTags();
    for (int i = 0; i < list.length; i++) {
      System.out.println((i + 1) + ": " + list[i]);
    }

  }

}
/*1: a
2: address
3: applet
4: area
5: b
6: base
7: basefont
8: big
9: blockquote
10: body
11: br
12: caption
13: center
14: cite
15: code
16: dd
17: dfn
18: dir
19: div
20: dl
21: dt
22: em
23: font
24: form
25: frame
26: frameset
27: h1
28: h2
29: h3
30: h4
31: h5
32: h6
33: head
34: hr
35: html
36: i
37: img
38: input
39: isindex
40: kbd
41: li
42: link
43: map
44: menu
45: meta
46: nobr
47: noframes
48: object
49: ol
50: option
51: p
52: param
53: pre
54: samp
55: script
56: select
57: small
58: span
59: strike
60: s
61: strong
62: style
63: sub
64: sup
65: table
66: td
67: textarea
68: th
69: title
70: tr
71: tt
72: u
73: ul
74: var
*/

   
    
    
    
    
    
  








Related examples in the same category

1.HTML.Attribute.HREF
2.HTML.Tag
3.HTML.Tag.A
4.HTML.Tag.CONTENT
5.HTML.Tag.H1
6.HTML: getAllAttributeKeys()