Login | Register | FAQ
Anonymous

link as new tab

+ Post a reply

Page 1 of 1


link as new tab

by jona » Fri Apr 13, 2012 1:42 pm

hei everyone.
i am programming my first website and i am all excited! there s one thing i havent found a guide to in the html tutorial and that is:
HOW TO MAKE A LINK THAT AUTOMATICALLY OPENS AS A NEW TAB

(instead of loading it in the same window)

How do I do this?

Thank you for your answer
greet Jo
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm

Re: link as new tab

by XainPro » Fri Apr 13, 2012 2:53 pm

agreed with CubeSquare,
i.e code will look alike
Code: Select all
<a href="path_of_file" target="_blank"> The Anchor Text </a>
User avatar

XainPro

  • Posts: 3327
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: link as new tab

by jona » Fri Apr 13, 2012 10:19 pm

hei thanks. that works well!
maybe you can also tell me why it doesnt show a picture where i want it but rather an empty white frame?

code for picture looks as follows:

<img scr="david.jpg" alt="David" />

thanks a lot. this is great.
jo
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm

Re: link as new tab

by XainPro » Sat Apr 14, 2012 4:05 am

1.the image named david.jpg should be in same folder of html file.
2.Its src not scr
your code
<img scr="david.jpg" alt="David" />
actual code should be
<img src="david.jpg" alt="David" />
User avatar

XainPro

  • Posts: 3327
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: link as new tab

by jona » Sat Apr 14, 2012 6:47 pm

ja takk, jetzt funktioniert es.
gruss
Jo
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm


+ Post a reply

Page 1 of 1