How can PHP's Ternary Operator be utilized to improve code readability in form generation?

When generating forms in PHP, the code can become cluttered with multiple if-else statements to determine the value of attributes like "required" or "disabled". By utilizing PHP's Ternary Operator, we can simplify the code and improve readability by condensing these conditional checks into a single line.

<input type="text" name="username" <?php echo ($isDisabled) ? 'disabled' : ''; ?>>