哪些HTML元素旨在包含文本? [英] What HTML elements are meant to contain text?

查看:110
本文介绍了哪些HTML元素旨在包含文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪些HTML元素意味着或旨在包含可见文本(HTML4/XHTML)?计划制作样式表以对其进行样式设置.

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>
  • <首字母缩写词>
  • < 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>
  • <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>

这篇关于哪些HTML元素旨在包含文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆