The html img tag

The <img> tag is used to insert an image. It contains only attributes, and does not have a closing tag. The image's URL (address) can be defined using the src attribute. The HTML image syntax looks like this: <img src="picture.png" alt="logo"/> <!DOCTYPE html> <html lang="en"> <head> <title> My html page</title> <metacharset="UTF-8"> </head> <body> <p align="right">This … Continue reading The html img tag


HTML Attributes

Attributes provide additional information about an element or a tag, while also modifying them. Most attributes have a value; the value modifies the attribute. <!DOCTYPE html> <html lang="en"> <head> <title> My html page</title> <meta charset="UTF-8"> </head> <body> <palign="right">This text is alinged to right</p> </body> </html> In this example, the value of "right" indicates that the … Continue reading HTML Attributes

HTML Elements

HTML documents are made up of HTML elements. An HTML element is written using a start tag (e.g <h1>) and an end tag (e.g </h1>), and with the content in between. HTML documents consist of nested HTML elements. In the example below, the body element includes the <p> tags,the <h1> tag, the <br /> tag … Continue reading HTML Elements