Anyone can view YouTube through the website or the app. However, the recommended age restriction is 13. YouTube Kids is recommended for use by anyone under the age of 13.
Officially, YouTube doesn’t allow children under the age of 13 to create their own account and children between the ages of 13 and 17 need their parent or guardian’s permission. However, parents and carers can (and do) open accounts for their child.