3 ms·
> What do you mean by posts are not links? Not GP, but he is right; the behavior of your website is semantically incorrect. Looks like you redirect the users t
by Pooge 2y ago
> What do you mean by posts are not links?
Not GP, but he is right; the behavior of your website is semantically incorrect. Looks like you redirect the users to your blog posts by using <button /> instead of <a />.
I also agree that your website should absolutely not require JavaScript to work. Clicking on links is something that is possible with 0 lines of JavaScript.
> I don't have a RSS feed but I have a newsletter with a subscribe button.
This is also not very hacker-friendly behavior. Why should users give you their email addresses when a RSS feed is much easier to implement and use?
- chistev 2y ago> Not GP, but he is right; the behavior of your website is semantically incorrect. Looks like you redirect the users to your blog posts by using <button /> instead of <a />. I'll fix this. Thanks. > This is also not very hacker-friendly behavior. Why should users give you their email addresses when a RSS feed is much easier to implement and use? I'll do this too. Thanks.
- Pooge 2y agoI'm glad you took it nicely. You should definitely post here when you write a new article. There's always something to learn! Just remember to do things the easiest way possible; <a> allows you to "redirect" users using HTML-only, while <button> needs an event attached to it using JavaScript. There are many things that people use JavaScript for but that are 100% possible using HTML. We should favor those. Also, writing a static website removes a plethora of vulnerabilities. Collecting email addresses comes with its legal burden, too (do you delete people's email addresses if they ask you to and are in the EU?).
- chistev 2y agoYea, sure I will delete emails if asked to, but no one has ever asked.
- chistev 2y agoRSS feed added, and buttons changed to a href tags.