HTML Basic Examples part -02
HTML Links
-
- HTML links are defined with the
<a>tag: -
Example
-
- <a href="https://www.w3schools.com">This is a link</a>
- The link's destination is specified in the
hrefattribute.
Attributes are used to provide additional information about HTML elements.
You will learn more about attributes in a later chapter.
- <!DOCTYPE html>
<html>
<body>
<h2>HTML Links</h2>
<p>HTML links are defined with the a tag:</p>
<a href="https://www.w3schools.com">This is a link</a>
</body>
</html> HTML Images
HTML images are defined with the<img>tag.
The source file (src), alternative text (alt),width, andheightare provided as attributes:
HTML Buttons
HTML buttons are defined with the<button>tag:
Example
<button>Click me</button>

No comments:
Post a Comment
thank-you