Attributes Table
Attributes | Description | Example |
---|---|---|
href | The href attribute specifies the URL of the page the link goes to: | <a href="">Something</a> |
src | The src attribute specifies the path to the image | Relative URL |
alt | Alternate text, if image is not loaded | <img src="/logo.png" alt="logo"> |
width | specify the width | width=100px |
height | specify the height | height=100px |
style | The style attribute is used to add styles to an element, such as color, font, size, and more. | style="width:100px" |
We will do a small hand-on exercise on Elements and Attributes in next article.
References: