Html-phrase-elements-tag

提供:Dev Guides
移動先:案内検索

HTML-フレーズ要素

関数

フレーズ要素は、テキスト断片に構造情報を追加します。 フレーズ要素の通常の意味は次のとおりです-

<abbr> Indicates an abbreviated form like pvt. inc. etc.
<acronym> Indicates an acronym (e.g., WAC, radar, etc.).
<em> Indicates emphasis.
<strong> Indicates stronger emphasis.
<cite> Contains a citation or a reference to other sources.
<dfn> Indicates that this is the defining instance of the enclosed term.
<code> Designates a fragment of computer code.
<samp> Designates sample output from programs, scripts, etc.
<kbd> Indicates text to be entered by the user.
*<var> * Indicates an instance of a variable or program argument.

HTMLとXHTMLの違い

NONE

<abbr>pvt. or inc.</abbr><br/>
<acronym>HTML</acronym><br/>
<cite>Citation</cite><br/>
<em>Emphasized text</em><br/>
<strong>Strong text</strong><br/>
<dfn>Definition term</dfn><br/>
<code>Computer code text</code><br/>
<samp>Sample computer code text</samp><br/>
<kbd>Keyboard text</kbd><br/>
<var>Variable</var><br/>

これにより、次の結果が生成されます–

標準属性

Sr.No Attribute & Description
1
  • class*

ドキュメント全体の識別子

2

dir

テキストの方向を指定します

3

id

ドキュメント全体の識別子

4

title

要素に関連付けるタイトルを指定します。

5

style

インラインcasecadubfスタイルシートを含めるのに役立ちます。

6

lang

言語コードを設定します。

イベント属性

Sr.No Attribute & Description
1

onclick

マウスをクリックするとスクリプトが実行されます

2

ondblclick

マウスをダブルクリックするとスクリプトが実行されます

3

onmousedown

マウスボタンが押されたときにスクリプトが実行される

4

onmouseup

マウスボタンが放されたときにスクリプトが実行される

5

onmouseover

マウスポインターが要素上を移動するとスクリプトが実行される

6

onmousemove

マウスポインターが移動するとスクリプトが実行される

7

onmouseout

マウスポインターが要素から移動するとスクリプトが実行される

8

onkeypress

キーを押して離すとスクリプトが実行されます

9

onkeydown

キーが押されたときにスクリプトが実行される

10

onkeyup

キーが放されたときにスクリプトが実行されます

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes