Computer Science, asked by afrinanjum9115, 4 months ago

What are BIG and SMALL elements? Explain with suitable

HTML example.​

Answers

Answered by Anonymous
3

Function

The following elements are all font style elements, so we have put all of them together for your better understanding.

<b> − Used for specifying bold text.

<big> − Used for specifying bigger text.

<i> − Used for specifying italic text.

<small> − Used for specifying smaller text.

<tt> − Used for specifying teletype or mono spaced text.

Difference between HTML and XHTML

NONE

Example

<tt>This is Teletype text</tt><br />

<i>This is Italic text</i><br />

<b>This is Bold text</b><br />

<big>This is Big text</big><br />

<small>This is Small text</small><br />

This will produce following result:

This is Teletype text

This is Italic text

This is Bold text

This is Big text

This is Small text

Standard Attributes

Sr.No Attribute & Description

1

class

Document wide identifier

2

dir

Specifies the direction of the text

3

id

Document wide identifier

4

title

Specifies a title to associate with the element.

5

style

Helps to include inline casecadubf style sheet.

6

lang

Sets the language code.

Event Attributes

Sr.No Attribute & Description

1

onclick

Script runs when a mouse click

2

ondblclick

Script runs when a mouse double-click

3

onmousedown

Script runs when mouse button is pressed

4

onmouseup

Script runs when mouse button is released

5

onmouseover

Script runs when mouse pointer moves over an element

6

onmousemove

Script runs when mouse pointer moves

7

onmouseout

Script runs when mouse pointer moves out of an element

8

onkeypress

Script runs when key is pressed and released

9

onkeydown

Script runs when key is pressed

10

onkeyup

Script runs when key is released

Similar questions