This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<p style="color:#ff0000;">Red paragraph text. Preferred Method</p> | |
<p style="color:red;">Red paragraph text using color name. Preferred Method</p> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<p color="#ff0000">Old style Red paragraph</p> | |
<p color="red">Old style Red paragraph using color names</p> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* styles by tags*/ | |
p { | |
text-align:center; | |
} | |
/* styles by class*/ | |
.centerbyclass { | |
text-align:center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p style="text-align:center;">This text will be centered</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div align="center"> | |
<p>This text will be centered</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<center>This text will be centered</center> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# | Compression | | |
# ---------------------------------------------------------------------- | |
<IfModule mod_deflate.c> | |
# Force compression for mangled `Accept-Encoding` request headers | |
# https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html | |
<IfModule mod_setenvif.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAONJREFUeNrsUz0PQTEUPRWUMBvfbvWsZhs7YrW+wc8QITGx+jc8K6tYiETC++jrI6p3YCCiicHiDL333LSn7ektU0rhGyTwJX4vkHwulHpLZHI5pDlvgTEHSg1iKadREGDRLZqdQBvb0oucRrVgUyRufAWaLMPQadctexsBzZplE38n8iIghagI38dwPHM3AhhNZi5xqht5oK7XzllKnGM5XwdA6J2QSvNyinMzE4PjEbQjYS+1wMnTmYdsPm8mcNjtHvlFN6nQ7hPu8aNAHEV3N91Vf6Jfkrl6eNsH7P8XcBNgAG5vc7Z6/67pAAAAAElFTkSuQmCC" alt="Small Arrow" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.someclass{ | |
background:white url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAONJREFUeNrsUz0PQTEUPRWUMBvfbvWsZhs7YrW+wc8QITGx+jc8K6tYiETC++jrI6p3YCCiicHiDL333LSn7ektU0rhGyTwJX4vkHwulHpLZHI5pDlvgTEHSg1iKadREGDRLZqdQBvb0oucRrVgUyRufAWaLMPQadctexsBzZplE38n8iIghagI38dwPHM3AhhNZi5xqht5oK7XzllKnGM5XwdA6J2QSvNyinMzE4PjEbQjYS+1wMnTmYdsPm8mcNjtHvlFN6nQ7hPu8aNAHEV3N91Vf6Jfkrl6eNsH7P8XcBNgAG5vc7Z6/67pAAAAAElFTkSuQmCC') repeat no-scroll; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.write('data:text/html;charset=utf-8,' + | |
// Escape for the URI | |
encodeURIComponent( | |
'<div>'+ | |
'<p>An encoded paragraph</p>'+ | |
'</div>' | |
) | |
); |