26.Links and text decoration


#1

Hi, i need some help i have just finished programming this section of my web page but it brings an error message "Oops, try again.
Did you remember to put some link text between your tags? You can't leave them empty!
"
I have successfully linked stylesheet.css to index.html and my code is

<!DOCTYPE html>
<html>
    <head>
    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>HTML and CSS</title>
    </head>
    <body></body>
    <h1>Welcome to css</h1>
        <a href="https://www.codecademy.com">CSS</a>
    <p>Table Borders. To specify table borders in CSS, use the border property. The example below specifies a black border for</p>
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADMCAMAAAAI/LzAAAAAflBMVEUzMzP///8tLS0qKiowMDAlJSUoKCgjIyPl5eX39/fv7+80NDRZWVn8/PxDQ0NgYGCysrKFhYVoaGgdHR2YmJg6OjrOzs6+vr5ycnLHx8eMjIyqqqrp6elPT0+fn596enra2tqAgIAYGBiTk5PV1dVJSUlSUlKcnJwTExO4uLhhftwWAAAJpElEQVR4nO1d24KyvA6FNpwREDkjB8fR+Xj/F9ygoy2HouMvKuyui7nq1CyaNmmbpII4gpWuBlWeRKZlCG+FYZlRkleBqq/G5BXYTNT4x1Q2ioQRvJdKA0BYqoUxvVhl82GRUZ3EBgm9m0MXSAI7cdQ/kdHyzMAfx+QMhI0s1+4mo6eG8gGaxQYoRqrfRUYP7c1HU2kAGzvs0+mRCSLhQ/WrDSREwS0yoY/fLea9wH44SkbzpI/XMAKQPI1NZrv+BJNyPwCttywyqjsbFbsAu+owGdWU3y3b3yGb6hCZrTtDLjUbd9sno61np2Nn4LXWI+PNwroMAXldMuGc1uQ2QArbZAJ/tlxqNn5Ak9GjmU6YM3CkU2RCYcYDUw+NEBIyuj3b2X8GsvUrmXTzbmn+KzbphYxmzFrJGoCh/ZLJlXfL8t+h5Gcyajb7gamHJlNPZJw3H4o9B4bTkFkls7YxF+BkVZNR574un4FstSYTL2DGNIBYFFae9G4xngPJWwm6uQgtq/XM1AV1AUbmDEUVgtm7MhdsAqFazshUQj7LY4whyL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Vkemz301pYk1JWKp7QHd4sk8E0AG+zPN6uD+299L0joBhDg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg6O/xcs6J0TY1mP6SzqmaNFPUC1qKfBFvVo26Ke01vUQ4eLeoJyUY+DLurZ1kU9qLusp44X9Qj1op4HX9bD7WK+AFOjNHmkDRltykqVrwEY2i8ZMZ29S7M5VYY7kdHnvjojW7+SeTyL9DMAwjmd6ExmuHDCbIAjnSIzQW2HFwL838w84ZIH8rIsgqcDpEvO2oWM6M12DUCe2CUzZSXhSYHXWo+MuB2qOvT5kKkavIRMU1z03ZL9HbJJZR1SZET14QoMbwN26QxKmoy4Xc8rCQfQupVA2SIjat6cVmiQOlmWbTJNjZfZqBr2uznRXTJiEAmzsDhIiHo1qnpkRD20p31X4BmAjR32M0X7ZGo6qfGSbM+HAYqRDqUQD5GpF4I8M/CHahvCRsbINB4mU9scJ7GBnSL6LiAJ7MRhZeezyJzeI/kxlY0ifUQGKCAs1cKYXqyyE+7ZZBo+uhpUeRKZ1puP1gzLjJK8ClR9pHSAKP4PSTh75wewqEIAAAAASUVORK5CYII=" />
</html>

and my css code is

h1
{font-family:Verdana,sans-serif;
color:#576d94
}
p
{font-size:18px;
color:#4a4943;
font-family:Garamond,serif;
}
img
{height:200px;
width:300px;
border:1px solid #4682b4;
}
a
{text-decoration:none;
color:#cc0000;
}

please help me ASAP because i want to get back to coding


#2

Seems you hit a glitch, try a different browser


#3

Hello everyone. I think I see your problem. Put your h1 tag, link tag, the p tag and the img tag inside the body tags.


#4

you are right, but <a></a> should also be inside the body, but it doubt that is what is tricks the error message but good catch :slight_smile:


#5

thats what i did check my code


#6

Please double check.


#7

i have just corrected the closing body tag but still it doesn't work


#8

Did you try my suggestions? Try a different browser, i think your browser is sending cached data


#9

i am still downloading chrome once i finish installing it i will inform you


#10

There is one problem that I see, under your css for h1, then your style for color doesn't have a semicolon. Could you also give me a link to the exercise so that I can get a better idea of what you might be missing?


#11

Put
a
{text-decoration:none;
color:#cc0000;
}
Over the image, this bugged me too.


#12

h1 {
font-family: Verda;na, sans-serif,;
color: #576D94
}

p {
font-family: Garamond, serif;
font-size: 18px;
color: 4A4943;
}

a {
color: #cc0000;
text-decoration:none;
}
img {
height: 100px;
width: 300px;
border: 1px solid #4682b4;


#13

ignore the ; in Verdana


#16

Kindly create a +New Topic If you have an error/question with your code, error and lesson. Thank You


#17