Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 10/19/2020 in all areas

  1. Wrap in quotes 'p, div', then use for loop with makeBold.length to loop through collection from querySelectorAll(); to apply required style.
    1 point
  2. Hi! item is a function, not an object, so you must call it: linkElements.item(i).setAttribute("target", "_self") By the way, getElementsByTagName returns HTMLCollection and you can get single item also in this way: linkElements[i].setAttribute("target", "_self") Finally, you incorrectly compare whether the target equals _blank. You used "=" which means you are assigning this value. You must use "==" or "===" operator. Please refer to the MDN documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality https://developer.mozi
    1 point
  3. If you understood, then you would be doing it correctly. Please stop to read carefully, I've explained it very clearly. The link (or button) needs an href attribute. That attribute has a URL pointing to the page and position to which you want to go. The hash is the important part of the URL. You can call it "bottom", or "end" or "anything", it doesn't matter what you call it, it's just an identifier for a part of the page. Here's your button: <a class="button hexagon" href="#abcdefg">Chcete se dozvědět více?</a> This piece of code has to be at the very end of your c
    1 point
  4. URLs have the following components: http://www.example.com/path/file.html?a=value#target http:// Protocol: Tells the browser how to communicate with the server. www.example.com Host name: Tells the browser where on the internet to go. /path/file.html Path: Tells the server what file was requested. ?a=value Query string: Tells the server what information is requested. #target Hash: Tells the browser where on the page to go The component we're dealing with here is the hash. When you click on a link with a hash in it (<a href="page.html#something">) it scrolls you down to the e
    1 point
×
×
  • Create New...