JSFiddle - React, Tailwind, and code Playground

by Researcher

HTML

<!doctype html>
<html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Тег А</title>
 </head>
 <body>
  <p><a href="images/xxx.jpg">Посмотрите на мою фотографию!</a></p>
  <p><a href="tip.html">Как сделать такое же фото?</a></p> 
</body>
</html>

JavaScript

// jQuery map() test

$(document).ready(function() {
var links = $.map($("a"),function(anchor) {
return $(anchor).attr('href');
});
console.log(links);
    
    
    
});