How to put a reference for a CSS in aspx page layout in SharePoint 2016
<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/Test/Custom.css %>"
runat="server" after="corev15.css"/>
or
<link rel="stylesheet"
href="/_layouts/1033/styles/HtmlEditorCustomStyles.css" type="text/css"
media="all" />
which is the correct way of doing it ?