Can you use id and href at the same time? [closed] - html

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I'm obviously a newbie and I'm running into a problem when I'm trying to turn text into a link while also naming it with an id.
I'm currently using:
<p id="you" You</p>
Using google.com to test.
I haven't been able to get the link working though.
I'm trying to ultimately make a button called You where I'll add all the CSS to id="you" but I want the You word to go to a link.
Can I not write it this way? Suggestions?

Your opening paragraph tag is unclosed.
<p id="you">You</p>
Alternatively, if you don't need the block styling the paragraph gives, you can just go with the following.
<a id="you" href="www.google.com">You</a>

Sure: You
You

Do you mean something like this?
Yes, it works just fine.
you

Related

I could not understand what the mistake is? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
using ID attribute in html code:
I have added the "id attribute" but the challenge is not accepting it. It is saying that you must use the id attribute.
I have already tried other examples instead of [<p] in id attribute but it is not accepting it. but as I have written the code, when I click on working of code (see below) jump to bottom, it take us to the bottom, as it function.
I couldn't find the mistake plz help
Try and use this:
<footer id="footer"></footer>
It says footer tag should have an id named footer.
So, you should put an id="footer" at the footer tag, not the p tag or any other tag.
And you should edit your current footer tag, not make a new one

CSS will not read class names contained in quotes [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
My css sheet is linked from my HTML. Classes are only working in my HTML if I specify them with a space
<p class= task> </p>
If I specify them with a quote
<p class="task" >
weird characters show in the inspector. This is preventing me from using multiple classes. Example
<p class="task green"></p>
will only read the task element and not read the green element.
this problem is only possible when all the styles are used in task so check that once and also check that is this class are in one .css file or are u declaring that class properly or not. just check that u will get your answer

HTML image won't show but href works [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
The following tag shows a white box (broken image), but if I click on it the browser loads the image and displays it.
<img height="24" width="24" scr="/nicks/pic.png"/>
I have tried permission and so forth, and moved the directory.
The correct attribute name is src.
Don't use scr. Use src.
Use "src" instead of "scr".
src is short for "source". I've made this mistake myself too many times :)
An easy way to remember this is <img src="#"> stands for Image Source :)

How do I get rid of this little green box on my HTML/CSS page [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
http://pastebin.com/De29tEAg This is my HTML
http://pastebin.com/88BxpnSM This is my CSS
I just started coding yesterday, so bear with me
I decided to create a button (since it's all I can pretty much do), and underneath it, there's this little green box, that is also part of the link. What is it, and how do I get rid of it?
Delete that full stop/dot/period immediately after the img and before the closing a tag.
I.e.
<img src="http://imgur.com/ukmXAgG.gif /">.
Should be
<img src="http://imgur.com/ukmXAgG.gif /">

mystery symbol on page [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I have looked at the markup for this page forever and I can't for the life of me figure out why there is a "greater than" symbol visible on this page in between the navigation and the main content. I keep staring at it because it bugs me but I don't see the mistake. Any help is greatly appreciated.
Page: http://cdaniels75.github.io/210/schedule.html
On line 57 of the source is this:
<tr><td>33</td> <td>04.28</td>><td>FINALS WEEK<br /><h6><a
Notice the extra > between <td>s.
That said you have a large number of markup errors on this page, like unclosed <a> tags and such. Run it through the validator.
in your favorite browser with dev tools installed, right-click on the ">" and select Inspect element (or similar) from the popup menu...