I am trying to put a bunch of different font types up.
I was doing P1, P2, P3, P4 and then realized it didn't work. I want to view a bunch of different examples and then pick the one I like.
| SitePoint Sponsor |
I am trying to put a bunch of different font types up.
I was doing P1, P2, P3, P4 and then realized it didn't work. I want to view a bunch of different examples and then pick the one I like.





<style>
.p1{color: red;}
</style>
...
<p class="p1">This text is red</p>




Couldn't you make your own tag? For example:
I've never tried this so I don't know if it works.Code:<style type="text/css" media="all"> p1 { font-size: 14px; font-family: Verdana; } </style> ... <p1>This is some text.</p1>





No, you can't make your own tag like that
But if you have an xml file with your own tags in, you can transform it to html with an xsl stylesheet
http://www.w3schools.com/xsl/xsl_transformation.asp
Bookmarks