.htaccess is a plain text file that can be used to override your web server's behaviour, in line with rules you enter into the .htaccess file itself. You can create an .htaccess file using any text editor.
Your server administrator must have enabled .htaccess override for your site however, in order for any rules to work.
As for your problem, and presuming you meant: "/student/?id=1", put the following into your .htaccess file:
RewriteEngine On
RewriteRule ^/(student)/([0-9]+)$ /your_script.php?id=$2 [L]