I want to insert these particular tags into the database. This is my HTML:
you have to do an ajax request via jquery.
you can find a lot of tutorials on web how to do that (e.g. http://www.ibm.com/developerworks/opensource/library/os-php-jquery-ajax/)