this is my first html project, i hope you like it. https://codepen.io/Charlie15/full/baGMzO
Is better not use the style attribute:
<body style="padding-left: 80px; padding-right:80px;" class="text-responsive">
Because, you have multiple styles sources (That’s make the page more difficult to review.):
- The CSS tab
- Every element on the html with the style attribute
The style global attribute contains CSS styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the
<style>element have mainly the purpose of allowing for quick styling, for example for testing purposes.
- The ‘align’ attribute is no longer valid on the
<div>element and should not be used.
<div style="background-color: #cda;" align="center">
The align attribute is obsolete; do not use it anymore.
- Target blank vulnerability
<a href="https://en.wikipedia.org/wiki/Steve_Jobs" target="_blank">click here</a>
Note: When using target, consider adding rel="noopener noreferrer"
to avoid exploitation of the window.opener API.
TL;DR If window.opener is set, a page can trigger a navigation in the opener regardless of security origin.
People using target=’_blank’ links usually have no idea about this curious fact:
The page we’re linking to gains partial access to the linking page via the window.opener object.
How to fix
Add this to your outgoing links.
Update: FF does not support “noopener” so add this.
Remember, that every time you open a new window via window.open(); you’re also “vulnerable” to this, so always reset the “opener” property
var newWnd = window.open(); newWnd.opener = null;
Cheers and happy coding
thank you for the feedback, i have no idea how to use _blank, there’s a lot of work to do