Skip to content
Snippets Groups Projects
Commit 80cb4f61 authored by Aymane Ismail's avatar Aymane Ismail
Browse files

Debut E

parent 470ae24c
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@
<link rel="stylesheet" href="css/news.css">
<link rel="stylesheet" href="css/pizzaList.css">
<link rel="stylesheet" href="css/footer.css">
<script src="src/main.js" defer></script>
</head>
<body>
<header>
......
console.log('Welcome to PizzaLand 🍕 !');
\ No newline at end of file
const name = "Regina";
const url = "images/" + name.toLowerCase() + ".jpg" ;
//let html = '<a href=\"' + url +'\">' + url + '</a>';
/*let html = '<a href=\"' + url +'\">\n' +
'<img src=\"'+url+'\"/>\n'+
'<section>Regina</section>' + '</a>';*/
let html = ` <article class="pizzaThumbnail">
<a href="${url}">
<img src=${url}>
<section>Regina</section>
</a>
</article>
`
document.querySelector('.pageContent').innerHTML = html;
console.log(url);
console.log(html);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment