HTML: Images

This entry is part 4 of 34 in the series HTML

To specify a image, we use the <img> tag.

<!DOCTYPE html>
<html>
<head>
        <title>First Example</title>
</head>
<body>
<h1>An Image</h1>
<img src='http://upwhere.com/code/images/flappy.png'>
</body>
</html>
Try The HTML

We can also specify the the size of the image by using width and heights attributes.

<!DOCTYPE html>
<html>
<head>
    <title>First Example</title>
</head>
<body>
<h1>An Image with a smaller size</h1>
<img src='http://upwhere.com/code/images/flappy.PNG' width='100' height='150'>
</body>
</html>
Try The HTML
Series Navigation<< HTML: Applying bold and italic formatting
HTML: Applying superscript formatting >>

Leave a comment

Leave a Reply