Example 3: Difference between revisions

From ICTED-WIKI
Jump to navigation Jump to search
Elina (talk | contribs)
Created page with "<nowiki><h2>The style Attribute</h2></nowiki> <nowiki><p>The style attribute is used to add styles to an element, such as color:</p></nowiki> <nowiki><p style="color:red;">This is a red paragraph.</p></nowiki>"
 
Elina (talk | contribs)
No edit summary
 
Line 1: Line 1:
<nowiki><h2>The style Attribute</h2></nowiki>
<h2>The style Attribute</h2>


<nowiki><p>The style attribute is used to add styles to an element, such as color:</p></nowiki>
<p>The style attribute is used to add styles to an element, such as color:</p>
 
<p style="color:red;">This is a red paragraph.</p>
<nowiki><p style="color:red;">This is a red paragraph.</p></nowiki>

Latest revision as of 10:00, 2 February 2024

The style Attribute

The style attribute is used to add styles to an element, such as color:

This is a red paragraph.