Mempercantik CODE dengan CSS
Contoh tampilan kode HTML yang di dalamnya terdapat text yang panjang
<html>
<head>
</head>
<body>
<p>The <pre> tag is used to display pre-formatted text. The output will mimic exactly how the text is rendered inside the pre element including white space, tabs, and line breaks. This allows you to maintain the appearance of data in rows and columns, or have extra white spaces in text such as poems. Perhaps one of the most common uses of this tag is to display computer code and output.</p>
</body>
</html>
Contoh tampilan kode CSS
.contoh{
width:200px;
line-height:17px;
text-transform:uppercase;
background-color:#f4f4f4;
background-image:url("contoh.gif");
background-repeat:no-repeat;
background-position:top right
}
Contoh tampilan kode PHP yang hanya memiliki satu baris kode
if ( $file_name =="") { echo "error"; }
« Kembali ke artikel tutorial: Mempercantik CODE dengan CSS