The font-family property specifies the font for an element. You can list multiple fonts as a "fallback" system.
The font-size property sets the size of the text. It can be defined in pixels, ems, or percentages.
The font-weight property defines the boldness of the text. Common values are normal, bold, and bolder.
The text-align property sets the horizontal alignment of the text. Options include left, right, center, and justify.
The text-decoration property adds decorative features such as underline, overline, or line-through.
The line-height property sets the amount of space between lines of text, improving readability.
p {
font-family: Arial, sans-serif;
font-size: 16px;
font-weight: bold;
text-align: justify;
text-decoration: underline;
line-height: 1.5;
}
The font-family property specifies the font for an element. You can list multiple fonts as a "fallback" system.
The font-size property sets the size of the text. It can be defined in pixels, ems, or percentages.
The font-weight property defines the boldness of the text. Common values are normal, bold, and bolder.
The text-align property sets the horizontal alignment of the text. Options include left, right, center, and justify.
The text-decoration property adds decorative features such as underline, overline, or line-through.
The line-height property sets the amount of space between lines of text, improving readability.
The line-height property sets the amount of space between lines of text, improving readability.
Console Output:
Sample Text with CSS Properties Applied
The text-transform property controls the capitalization of text. Options include uppercase, lowercase, and capitalize.
The letter-spacing property adjusts the space between characters in a text.
The word-spacing property modifies the space between words in a text.
The white-space property manages how white space inside an element is handled. Options include normal, nowrap, and pre.
h1 {
text-transform: uppercase;
letter-spacing: 2px;
word-spacing: 5px;
white-space: nowrap;
}
The text-transform property controls the capitalization of text. Options include uppercase, lowercase, and capitalize.
The letter-spacing property adjusts the space between characters in a text.
The word-spacing property modifies the space between words in a text.
The white-space property manages how white space inside an element is handled. Options include normal, nowrap, and pre.
Console Output:
THIS IS A SAMPLE TEXT
The text-shadow property adds shadows to text. It takes values for horizontal and vertical shadow, blur radius, and color.
h2 {
text-shadow: 2px 2px 4px #000000;
}
The text-shadow property adds shadows to text. It takes values for horizontal and vertical shadow, blur radius, and color.
Console Output:
Text with Shadow Effect
The text-overflow property specifies how overflowed content that is not displayed is signaled to the user. It can be clipped or shown with an ellipsis.
The overflow property controls what happens to content that is too big to fit into an area. It can be set to visible, hidden, scroll, or auto.
The white-space property indicates how to handle white space inside an element. It can be set to nowrap for preventing line breaks.
.text-container {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
The text-overflow property specifies how overflowed content that is not displayed is signaled to the user. It can be clipped or shown with an ellipsis.
The overflow property controls what happens to content that is too big to fit into an area. It can be set to visible, hidden, scroll, or auto.
The white-space property indicates how to handle white space inside an element. It can be set to nowrap for preventing line breaks.
Console Output:
This is a very long text...
The font-style property specifies the style for a text. Common values are normal, italic, and oblique.
em {
font-style: italic;
}
The font-style property specifies the style for a text. Common values are normal, italic, and oblique.
Console Output:
This text is italicized.
The font-variant property specifies whether or not a text should be displayed in small-caps font.
p {
font-variant: small-caps;
}
The font-variant property specifies whether or not a text should be displayed in small-caps font.
Console Output:
This text is in small-caps.
The font-stretch property selects a normal, condensed, or expanded face from a font.
p {
font-stretch: expanded;
}
The font-stretch property selects a normal, condensed, or expanded face from a font.
Console Output:
This text is expanded.
The font-smoothing property allows for the control of the rendering of fonts to improve readability on different displays.
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
The font-smoothing property allows for the control of the rendering of fonts to improve readability on different displays.
Console Output:
Text with improved font smoothing.
Newsletter
Subscribe to our newsletter for weekly updates and promotions.
Wiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWiki E-Learning
E-LearningComputer Science and EngineeringMathematicsNatural SciencesSocial SciencesBusiness and ManagementHumanitiesHealth and MedicineEngineeringWikiCode
Programming LanguagesWeb DevelopmentMobile App DevelopmentData Science and Machine LearningDatabase ManagementDevOps and Cloud ComputingSoftware EngineeringCybersecurityGame DevelopmentWikiCode
Programming LanguagesWeb DevelopmentMobile App DevelopmentData Science and Machine LearningDatabase ManagementDevOps and Cloud ComputingSoftware EngineeringCybersecurityGame DevelopmentWikiCode
Programming LanguagesWeb DevelopmentMobile App DevelopmentData Science and Machine LearningDatabase ManagementDevOps and Cloud ComputingSoftware EngineeringCybersecurityGame DevelopmentWikiCode
Programming LanguagesWeb DevelopmentMobile App DevelopmentData Science and Machine LearningDatabase ManagementDevOps and Cloud ComputingSoftware EngineeringCybersecurityGame DevelopmentWikiCode
Programming LanguagesWeb DevelopmentMobile App DevelopmentData Science and Machine LearningDatabase ManagementDevOps and Cloud ComputingSoftware EngineeringCybersecurityGame DevelopmentWikiCode
Programming LanguagesWeb DevelopmentMobile App DevelopmentData Science and Machine LearningDatabase ManagementDevOps and Cloud ComputingSoftware EngineeringCybersecurityGame DevelopmentWiki News
World NewsPolitics NewsBusiness NewsTechnology NewsHealth NewsScience NewsSports NewsEntertainment NewsEducation NewsWiki News
World NewsPolitics NewsBusiness NewsTechnology NewsHealth NewsScience NewsSports NewsEntertainment NewsEducation NewsWiki News
World NewsPolitics NewsBusiness NewsTechnology NewsHealth NewsScience NewsSports NewsEntertainment NewsEducation NewsWiki News
World NewsPolitics NewsBusiness NewsTechnology NewsHealth NewsScience NewsSports NewsEntertainment NewsEducation NewsWiki News
World NewsPolitics NewsBusiness NewsTechnology NewsHealth NewsScience NewsSports NewsEntertainment NewsEducation NewsWiki News
World NewsPolitics NewsBusiness NewsTechnology NewsHealth NewsScience NewsSports NewsEntertainment NewsEducation NewsWiki Tools
JPEG/PNG Size ReductionPDF Size CompressionPDF Password RemoverSign PDFPower Point to PDFPDF to Power PointJPEG to PDF ConverterPDF to JPEG ConverterWord to PDF ConverterWiki Tools
JPEG/PNG Size ReductionPDF Size CompressionPDF Password RemoverSign PDFPower Point to PDFPDF to Power PointJPEG to PDF ConverterPDF to JPEG ConverterWord to PDF ConverterWiki Tools
JPEG/PNG Size ReductionPDF Size CompressionPDF Password RemoverSign PDFPower Point to PDFPDF to Power PointJPEG to PDF ConverterPDF to JPEG ConverterWord to PDF ConverterWiki Tools
JPEG/PNG Size ReductionPDF Size CompressionPDF Password RemoverSign PDFPower Point to PDFPDF to Power PointJPEG to PDF ConverterPDF to JPEG ConverterWord to PDF ConverterWiki Tools
JPEG/PNG Size ReductionPDF Size CompressionPDF Password RemoverSign PDFPower Point to PDFPDF to Power PointJPEG to PDF ConverterPDF to JPEG ConverterWord to PDF ConverterWiki Tools
JPEG/PNG Size ReductionPDF Size CompressionPDF Password RemoverSign PDFPower Point to PDFPDF to Power PointJPEG to PDF ConverterPDF to JPEG ConverterWord to PDF ConverterCompany
About usCareersPressCompany
About usCareersPressCompany
About usCareersPressLegal
TermsPrivacyContactAds PoliciesLegal
TermsPrivacyContactAds PoliciesLegal
TermsPrivacyContactAds PoliciesCompany
About usCareersPressCompany
About usCareersPressCompany
About usCareersPressLegal
TermsPrivacyContactAds PoliciesLegal
TermsPrivacyContactAds PoliciesLegal
TermsPrivacyContactAds PoliciesLegal
TermsPrivacyContactAds PoliciesAds Policies