xFactorSchool.com
Python
JavaScript
How to Do Examples
C 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 Compilers
C Compiler
C++ Compiler
C# Compiler
Java Compiler
Python Compiler
HTML Code Editor
CSS Code Editor
JavaScript Compiler
JavaScript Code Editor
Practice how to apply CSS style using HTML tag name
CSS Online Editor
Run Code
More CSS Sample Codes
</body> </html> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Apply CSS style using HTML tag name</title> <!--Internal CSS style--> <style> /* example of using HTML tag name: here p is the tag*/ p { color: blueviolet; } </style> </head> <body> <h1>How to apply CSS style using HTML tag name?</h1> <p>Use the HTML tag name as selector. Here 'p' tag is used as selector to apply css color style to all paragraph elements</p> <p>This is a paragraph</p> <p>This is another paragraph</p> </body> </html>