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 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 paragrapgh</p> <p>This is another paragrapgh</p> </body> </html>