<html>
<head>
<style>
div {
font-size: 30px;
border: 1px solid black;
}
span {
font-size: 1ex;
}
</style>
</head>
<body>
<div>The font-size of the div element is set to 30px. <span>The span element inside the div element has a font-size of 1ex</span>.</div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_unit_ex by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:17:19 GMT -->
</html>