Here we iterate over a list of animals.

Animal is: aardvark.
This is the HTML for other animals.

Animal is: kiwi.
This is the HTML for other animals.

Animal is: gecko.
This is the HTML for small animals.

Animal is: cat.
This is the HTML for other animals.

Animal is: dog.
This is the HTML for other animals.

Animal is: elephant.
This is the HTML for large animals. This is the HTML for the user's favorite animal.

Animal is: squirrel.
This is the HTML for small animals.

Animal is: zebra.
This is the HTML for a large stripey animal. This is the HTML for large animals.

Here we iterate until we reach the favorite animal, then break.

aardvark kiwi gecko cat dog elephant