Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
618 views
in Technique[技术] by (71.8m points)

html - Link a img id="logo"

I have - img id="logo" SO I can have my logo on my website, the full code for it being:

<img id="logo" src="nsc/logo2.png" alt="logo" />

How can I link this logo image using <a href=""> ???

I've tried many different ways but they don't work :/

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
<a href="www.example.com"><img id="logo" src="nsc/logo2.png" alt="logo" /></a>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...