xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to apply CSS style to an HTML element inline in an HTML page
HTML Online Editor
Run Code
More HTML Sample Codes
<!DOCTYPE html> <html> <head> <title>Inline CSS Style in HTML Page</title> <!-- Title of the page--> </head> <body> <h1>Example of Inline CSS Style in a Webpage</h1> <hr /> <h3>CSS color and font size have been applied to the following line.</h3> <!--style="color: red; font-size: 18px;" attribute is used to apply CSS style to <p> element. --> <p style="color: red; font-size: 18px;">You can use the style attribute within HTML element to apply CSS directly to that specific element.</p> <p>style="color: red; font-size: 18px;" attribute is used to apply CSS style to the <p> element.</p> </body> </html>