HTML links are created using the <a> tag.
Example
<a href=”https://www.code7school.com”>This is a link</a> |
The destination of the link is indicated within the href attribute.
Attributes are employed to furnish supplementary details about HTML elements.
You’ll delve deeper into attributes in a subsequent chapter.
HTML images are declared using the <img> tag.
Attributes such as source file (src), alternative text (alt), width, and height are included.
Example
<img src=”code7school.jpg” alt=”code7school.com” width=”104″ height=”142″> |