Lesson 3 - Working With Links and Embedded Content
Lesson 3 - Working With Links and Embedded Content
Lesson 3 - Working With Links and Embedded Content
LINKS AND
EMBEDDED CONTENT
HYPERLINKS
• These are the essence of the web.
• It allows users to access various pages on the Internet.
<a> (Anchor Tag)
The <a> (anchor tag) is also called as Hyperlink Tag.
href=“http://battle.caleduc.com/register.html”
href=“http://battle.caleduc.com/categories”
href=“http://battle.caleduc.com/categories/programming.html”
href=“http://battle.caleduc.com/info/programming.html”
href=“info/programming.html”
href=“register.html”
RELATIVE REFERENCES
• These references points to files based on their locations in relation to
the current file.
ABSOLUTE REFERENCES
• These references points pages and files by starting at the top level of
the directory hierarchy.
• It always begin with the protocol, followed by the domain name and
the location of the file or page to be linked.
TARGET ATTRIBUTES
- These are links that allows a visitor to jump from one section
of a web page to another specific section within the same web
page.
Embedding IMAGES, SOUNDS, and
VIDEOS
- Adding graphics and other content to your web pages makes
it more attractive.
- It also help emphasize the information that you present in
your web page.
INSERTING IMAGES
- Embedding graphics requires the use of <img> tag.
- This tag is combined with the src attribute, which points the
source of the image that is being inserted into the HTML
document, the value for this attribute can be an absolute or
relative reference.
- Alternative text denoted by alt attribute is used to describe
the image.
- File extensions for images to use are .jpg, .gif, .png and .svg.
Syntax for <img> tag
Example:
• <img src=“logo.png” alt=“CAL logo”>
• <img src=“http://caleduc.com/images/cal_red.png” alt=“CAL logo
on Red”>
Resizing an Image