How to display only the first two elements from ten same elements

You can css

ul li:nth-child(n+3) {
    display: none;
}

It’ll not show 3rd and up.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)