Images and Attributes

Images

To show an image in HTML, you need to :

<img src=”title of picture.jpg” alt=”description of picture” height=”50” width=”50 />

In English, you need to type the image source; the alternative: so it is able to be read to blind people, or as a search function in Chrome or another browser; setting the height or width is optional.

Attributes

Following from: https://www.w3schools.com/html/html_attributes.asp
All HTML elements can have attributes
    • Attributes provide additional information about elements
    • Attributes are always specified in the start tag
    • Attributes usually come in name/value pairs like: name="value"

Attributes are things like <html lang=”en”>, and <meta charset=”UTF-8” >, and <img src” .jpg”>

Tag 			Attribute
<img>			src
<meta>, <script>	charset
<a>, <link>		href

This entry was posted in Web Developer Course and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *