code and name attributes required