0% found this document useful (0 votes)
6 views

HTML Class 03

Uploaded by

zoom1
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

HTML Class 03

Uploaded by

zoom1
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

<i>: The Idiomatic Text element

The <i> HTML element represents a range of text that is set off from the
normal text for some reason, such as idiomatic text, technical terms,
taxonomical designations, among others. Historically, these have been
presented using italicized type, which is the original source of
the <i> naming of this element.

Try it
Attributes
This element only includes the global attributes.

Usage notes
 Use the <i> element for text that is set off from the normal prose for readability
reasons. This would be a range of text with different semantic meaning than the
surrounding text. Among the use cases for the <i> element are spans of text
representing a different quality or mode of text,
What is bgcolor in HTML?
In HTML, the bgcolor attribute sets the background color of a HTML element. The
bgcolor attribute can be used with the HTML tags like <body>,

Example 1: set the bg color of the body to blue.

In the below example, we are using the bgcolor attribute with the <body> tag, and we are
setting the value of the attribute to bgcolor="blue". Hence, we can see that the background
color appears as blue in the output image below.

<!DOCTYPE html>
<html>
<body bgcolor="blue">
<h1>I am a Heading</h1>
</body>
</html>

You might also like