Change the Font Size in CSS3

Change the Font Size in CSS3

We can use the font-size property to change the font size in css3 for a document’s text. By changing font size we can emphasize or de-emphasize different sections of text on our page. Instead of going through your documents and changing each instance of a tag, we can use the style sheet rule to change the font size for all use of the tag in your document. The font-size property accepts a variety of measurement units with the most common being points (PT) and pixels(px)

Change the Font Size in CSS3

Step 1: Click inside the tag declaration and type font size and space.

Step 2: Type a font size in point (pt), pixels(px), millimeter(mm), centimeter(cm), inches(in), picas(pc), x-height(em), or em space (em)

Result Output

<!DOCTYPE html>
<html>
    <Head>
        <Title>Coding thai</Title>
        <style>
            p{
                font-family: arial;
                font-size: 20px;
            }
        </style>
    </Head>
    <body>
        <h1>Types of Web Developer</h1> 
        <hr>
        <Section class="First">
            <p>A web developer is a programmer who develops World Wide Web applications using a client–server model. The applications typically use HTML, CSS, and JavaScript in the client, and any general-purpose programming language in the server. HTTP is used for communications between client and server.</p>
        <p>A front end developer has one general responsibility: to ensure that website visitors can easily interact with the page. </p>
        <p>Back-end developers are the experts who build and maintain the mechanisms that process data and perform actions on websites.</p>
        </Section>
        <hr>
       <small> &copy;Copyright 2022 Codingthai</small>
    </body>
</html>

Follow us on Social Media For More

FacebookInstagramPinterest

Leave a Comment