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 internal CSS style to HTML elements using HTML tag name in an HTML page
HTML Online Editor
Run Code
More HTML Sample Codes
<!DOCTYPE html> <html> <head> <title>Internal CSS Style in HTML Page</title> <!-- Title of the page--> <!--This is an example of internal css style.--> <style> /*here p element is used as selector to apply css style.*/ p { color: red; font-size: 18px; } </style> </head> <body> <h1>Example of HTML Tag Name to Apply Internal CSS Style in a Webpage</h1> <hr /> <h3>CSS style element added in the head element. Color and font size of the following lines have been changed using HTML tag name.</h3> <p>You can add <style> element within head element to apply CSS using HTML tag names.</p> <p>p{"color: red; font-size: 18px;"} is used in the style element within the head element to apply CSS style to all <p> elements in the document.</p> </body> </html>