Pixels are specific points in a graphic image. There are two types – soft pixels and hard pixels. A soft pixel takes the form of a script tag (<script>) and can be placed within an HTML document. Preferably, a soft pixel is placed in the heading of the HTML code (<head>). A hard pixel takes the form of an image tag (<img>) and should be placed within the body of the code (<body>).