How to look up and down with mouse

I have a start of a camera look script and I have it to let me go left and right . How do I allow it to go up and down?

C#

		float horizontal = Input.GetAxis ("Mouse X") * rotateSpeed;
		target.transform.Rotate (0, horizontal, 0);
		
		float desiredAngle = target.transform.eulerAngles.y;
		Quaternion rotation = Quaternion.Euler (0, desiredAngle, 0);
		transform.position = target.transform.position - (rotation * offset);
		
		
		transform.LookAt (target.transform);

float horizontal = Input.GetAxis (“Mouse X”) * rotateSpeed;
float vertical = Input.GetAxis (“Mouse Y”) * rotateSpeed;
target.transform.Rotate (vertical, horizontal, 0);
float desiredAngleH = target.transform.eulerAngles.y;
float desiredAngleV = target.transform.eulerAngles.x;
Quaternion rotation = Quaternion.Euler (desiredAngleV, desiredAngleH, 0);
transform.position = target.transform.position - (rotation * offset);
transform.LookAt (target.transform);

Some of Unity’s standard scripts include a fairly straightforward solution to this. Their first-person control scripts tend to keep one key point in mind.

You need scripts on two objects: One is for your character, so turning left and right turns the character as well. The other is for your camera, to look up and down without tilting your character up and down with it.