Semantic implications of multiple
tags

后端 未结 2 1583
旧巷少年郎
旧巷少年郎 2021-01-12 13:28

When using

lists to associate keys to values, is there a semantic difference between these 2 samples? Which one provides better semantics? What do multiple
2条回答
  •  盖世英雄少女心
    2021-01-12 13:47

    The document that you link to contains the following example:

    In the following example, one entry ("Authors") is linked to two values ("John" and "Luke").

    Authors
    John
    Luke
    Editor
    Frank

    In other words, the two

    elements following a single
    element are both associated to that same
    element.

    There doesn't appear to be much of a difference in terms of semantics, then, between having multiple successive

    elements, and having a single
    that in turn contains a
      . If it's important to distinguish "a list" (a
        in a single
        ) from "a group of values" (multiple
        s in sequence), then I would decide based on that. If that's not important, then given a choice I would pick multiple
        s in sequence, because it is simpler.

提交回复
热议问题