Encode .css file to base64 string - HTML CSS CSS

HTML CSS examples for CSS:Introduction

Description

Encode .css file to base64 string

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Hello World!</title> 
  <link rel="stylesheet" href="data:text/css;base64,Ym9keSB7IHdpZHRoOiA5NjBweDsgbWFyZ2luOiBhdXRvO30gcCBtZmFtaWx5OiBWZXJkYW5hO30" type="text/css"> 
 </head> <!--from   w ww.j ava  2s  . com-->
 <body> 
  <p>Hello World!</p>  
 </body>
</html>

Related Tutorials