text-transform
en CSS se usa para cambiar la apariencia del texto. Es una forma conveniente de asegurarse de que el texto de una página web se muestre de forma coherente, sin tener que cambiar el contenido de texto de los elementos HTML reales. La siguiente tabla muestra cómo los diferentes valores de text-transform
cambian el texto de ejemplo "Transformarme". Valor | Resultado |
---|---|
lowercase | "transformame" |
uppercase | "Transfórmame" |
capitalize | "Transformame" |
initial | Usa el valor por defecto |
inherit | Use el valor de text-transform del elemento padre |
none | Predeterminado: usar el texto original |
h4
para que esté en mayúsculas utilizando la propiedad de text-transform
. h4
debe estar en mayúsculas.
testString: 'assert($("h4").css("text-transform") === "uppercase", "The h4
text should be uppercase.");'
- text: El texto original del h4 no debe ser cambiado.
testString: 'assert(($("h4").text() !== $("h4").text().toUpperCase()), "The original text of the h4 should not be changed.");'
```
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.