13; Images and links


#1

Please tell me what I did wrong:

<head>
	<title></title>
</head>
<body>
	<img src="http://41.media.tumblr.com/837c6392b6734fea49273e5b7c9f89de/tumblr_miloc6CPlz1qzya49o1_500.jpg"/>
	<img src="http://s2.favim.com/orig/34/animal-black-and-white-cat-cofee-coffe-Favim.com-277462.jpg"/>
	<a href="google.com"></a>	
</body>


#2

@javasurfer71250

Hi,

What is the error that you are getting?

Your images are coded properly,

The link code is there but you won't see it as you didn't add in any text

<a href= "http://www.google.com">some text</a>


#3

@javasurfer71250,

The Instructions:
-01. Between the < body > tags, add two images using the < img >''' tag.
One should be a link;

<a href="http://www.codecademy.com">
<img src="http://www.not-again.com/x.jp" />
</a>

the other should not. The link can go anywhere you want.

<img src="http://www.not-again.com/y.jpg" />

-02. After your two images, create a link that's just a line of text.
It can link anywhere you want.

    <a href="http://www.amazon.com">
     goto amazon
    </a>

==== As a note ==================================

I think it is better, if one understands the concept.

It all start's with you,
using a Browser
in which you load a HTML-file,
which we will call the HTML-Document.

This document has a minimal build of


<!DOCTYPE html>
  <html>
     <head>
          <title> </title>
     </head>
     <body>
     </body>
  </html>

The Browser =load's= this document into Memory
in a pattern that is described as
the Document Object Model
in short the DOM.
( the interpretation of the DOM is Browser & Version specific )

            html
             |
       +-----+------+
       |            |
     head          body
       |
     title

In the description of your document in DOM-talk...
you will encounter terms like:
parent children sibling descendants ascendants...

The HTML-Element has no parent
but is a parent to 2 child-Element's
the 'head'-Element
and
the 'body'-Element.

The 'head'- and 'body'-Element,
both being children to the 'html'-Element
are siblings to each-other.

The 'head'-Element is parent to the 'title'-Element...
the 'title'-Element is a child of the 'head'-Element
the 'title'-Element is also a descendant of the 'html'-Element.

The DOM has several interface's
over which you can access the data**/**information
held by the DOM.

One of the interface's is the Element-interface
you can divide the interface into
properties ( consisting of a property-key and it's associated VALUE )
and
methods ( giving you the functionality to manipulate the Elements )
https://developer.mozilla.org/en-US/docs/Web/API/Element
https://developer.mozilla.org/en-US/Learn/HTML/HTML_tags


#4

Am I allowed to ask a question to this thread or am I best creating my own thread?

As I am having problems with this session, wondering if I have intruded on the ownership of a website while trying to achieve this method.

I feel I wasn't given any direction in finding my images or link,


#5

@jtv1 Pls create a new thread