xhtml 1.0 strict - Where is the error in tag(a)? -


this first year in html courses, i'm using html 4.01 strict/xhtml 1.1 error in code??

<a href="http://www.upv.es" onclick="target='_blank';"> <img src="http://politube.upv.es/templates/imagenes_cabecera/escudo.gif"/> </a> 

well, don't provide information expect , not working. if try open link in new tab, you'll have change

 onclick="target='_blank';" 

to

target="_blank" 

otherwise, you'll setting javascript variable target string value _blank.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -