<!DOCTYPE HTML>
<html>
<head>
<style>
    * {
        border: none;
    }
    :focus-within {
        border: 2px solid green;
    }
</style>
</head>
<body>
    <div>
        <input>
        <input>
        <input>
        <input>
        <input>
        <input>
        <input>
    </div>
    <script>
        let midInput = document.getElementsByTagName("input")[3];
        midInput.focus();
    </script>
</body>
</html>
