Quote:
Originally Posted by boksida
when I replace the "a" with p,h1,h2,div,...., I get following error message:
attribute href is not declared for element 'p' (or one of the other options)
text content, but they get no error message.
|
The attribute "href" is normally only in the "a" element and doesn't go with p,h1,div.
I have found a good resource is the W3School's reference site. It gives a really good explanation of HTML and CSS with all the different options as well as the ability to "try it yourself" to see what happens. They also have a pretty good tutorial for giving a basic understanding of all the jargon. I reference it all the time!
You can find the tutorials here:
http://www.w3schools.com/html/default.asp
the HTML references here:
http://www.w3schools.com/tags/att_link_href.asp
And the CSS references here:
http://www.w3schools.com/cssref/default.asp
I hope that helps!
Cheers!