top of page

HTML image tags are defined as <img>.

The source file (src), alternative text (alt), width, and height are provided as attributes

Example

<body>

<img src="coderstop.jpg" alt="coderstop" height="200px" width="200px">

</body>

  • The src attribute is used to define the image address.

  • The alternate text is used to define an alternate image.

  • The height and width attribute controls the size of the image.

  • The height and width is measured in pixels(px).

Programming Console
Fact 1

Current HTML

The current version of HTML is W3C Validator. It follows the W3c Instructions.

HTML defines break ruler tag as <br>

The <br> tag insert a single line break.

It is a empty tag because it does not have a closing tag.

Example

<body>
<p>To force<br> line breaks<br> in a text,<br> use the br<br> element.</p>
</body>

HTML defines horizontal ruler as <hr>.

The <hr> tag insert a horizontal line.
It is a empty tag because it does not have a closing tags.

Example

<body>

<h1> Coder Stop </h1>

<hr>

</body>

As you have learnt so far, let's take a small test.

HTML defined emphasis tag as <em>.

The <em> tag is used to define emphasized text. The content inside is typically displayed in italic. 

Example

<body>

<p> <em> Coder Stop </em> makes learning easy </p>

</body>

HTML defines strong tag as <strong>.

The <strong> tag is used to display important text in bold style.

Example

<body>
<p> <strong> Coder Stop </strong> makes learning easy </p>
</body>
bottom of page