Tribute Page for Review - Thanks!

Hi - i recently finished my first Project and would like to get some Feedback at it.
It is pretty basic, but i would still love to know, if there is anything i can do better.

Thanks!

1 Like

Hello @meli,

  • Do not use lower levels to decrease heading font size:
<div class="col-sm-12">
      <h3 class="text-center">SARA FABER</h3>
      <h4 class="text-center">Visual Development Artist</h4>

MDN documentation:
<h1>–<h6>: The HTML Section Heading elements - HTML: HyperText Markup Language | MDN

Do not use lower levels to decrease heading font size: use the CSS font-size property instead.Avoid skipping heading levels: always start from <h1>, next use <h2> and so on.

HTML Standard

h2–h6 elements must not be used to markup subheadings, subtitles, alternative titles and taglines unless intended to be the heading for a new section or subsection. Instead use the markup patterns in the §4.13 Common idioms without dedicated elements section of the specification.

Common Idioms
HTML Standard


----
  • Target blank vulnerability
<a href="https://www.artstation.com/sarafaber" target="_blank"> Artstation </a>.

MDN documentation:

<a>: The Anchor element - HTML: HyperText Markup Language | MDN

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

About rel=noopener

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

Target="_blank" - 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:

1 Like

Thank you for the detailed explanation and sources, @Diego_Perez ! Really helpful.
Read all attached sources and improved the pen :slight_smile:

1 Like

You’re welcome :smiley:

Cheers and happy coding :slight_smile:

Style wise you could experiment with shadowboxes.

You could also create a title class and use some transform. I’m not a fan of having to all caps things.

https://www.w3schools.com/cssref/pr_text_text-transform.asp