My Portfolio (created in codepen)

My Portfolio (created in codepen)
0

#1

My Portfolio

Hey everyone :slightly_smiling_face:
I just completed my Portfolio Project after a baffling amount of work. I am new to CSS, Bootstrap and JQuery so it involved a lot of research and learning which seemed very tedious at first but I ended up falling in love with it.
I’ve observed the community here in silence so far and it is so welcoming and helpful.
This is my first post as well and I’m requesting everyone who reads this to take a moment and critique my pen.
The coding is a little messed up. I apologize in advance for that and I’m not sure if the overall look is pleasing or not so I would be eternally grateful for any feedback.

Thanks
xxx


#2

Hi @romalina,
HTML inspector:

  • error: the <title> element cannot be a child of the <body> element:
<body> <!-- here -->

  <title> Shriti Chandra - Personal Portfolio
  </title>

...
</head> <!--- here -->


  • Target blank vulnerability
<a data-toggle="tooltip" title="GitHub" data-placement="top" href="https://github.com/Romalina" target="_blank">

MDN documentation:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

Note: When using target, consider adding rel="noopener noreferrer"
to avoid exploitation of the window.opener API.

https://mathiasbynens.github.io/rel-noopener/

TL;DR If window.opener is set, a page can trigger a navigation in the opener regardless of security origin.

https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/

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.
The newly opened tab can, say, change the window.opener.location to some phishing page. Or execute some JavaScript on the opener-page on your behalf… Users trust the page that is already opened, they won’t get suspicious.

How to fix
Add this to your outgoing links.

rel="noopener"

Update: FF does not support “noopener” so add this.

rel="noopener noreferrer"

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 :slight_smile:


#3

@erretres Thank you for your help :grinning:
I didn’t know all that. I’ll fix it right away.