≪ Today I learned.
RSS購読
    公開日
    タグ
    HTML
    著者
    ダーシノ

    注釈を表現するためにu要素を使う

    u要素は、もともとunderline要素と呼ばれ下線を引くために用いられてきたが、HTML4で非推奨となった。しかし、HTML5では「固有名詞に注釈をつける」「スペルミスを表現する」などの意味になって復活した。

    The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt.

    HTML Standard - The u element

    以下のように、スペルミスを表現するために使う。用途は限られており、使う場面は少ないかもしれない。

    <p>This paragraph includes a <u>wrnogly</u> spelled word.</p>

    使用上の注意

    デモ

    This paragraph includes a wrnogly spelled word.