开发者

What HTML elements are meant to contain text? [closed]

开发者 https://www.devze.com 2023-03-29 16:47 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andc开发者_如何学Cannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and c开发者_如何学Cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

What HTML elements are meant or are designed to contain visible text (HTML4/XHTML) ? Planning to make a stylesheet to style them.


Some of these are defined as block-type and some as text-level. But they were meant to contain texts (or at least are used as text-wrappers.)

  • <tt>
  • <i>
  • <b>
  • <big>
  • <small>
  • <em>
  • <strong>
  • <dfn>
  • <code>
  • <samp>
  • <kbd>
  • <var>
  • <cite>
  • <abbr>
  • <acronym>
  • <sub>
  • <sup>
  • <span>
  • <bdo>
  • <address>
  • <div>
  • <a>
  • <object>
  • <p>
  • <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
  • <pre>
  • <q>
  • <ins>
  • <del>
  • <dt>
  • <dd>
  • <li>
  • <label>
  • <option>
  • <textarea>
  • <fieldset>
  • <legend>
  • <button>
  • <caption>
  • <td>
  • <th>
  • <title>
  • <script>
  • <style>
  • <blockquote>
0

精彩评论

暂无评论...
验证码 换一张
取 消