Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Organizing Forms The Label Element

Sahar Nasiri
Sahar Nasiri
7,454 Points

Labels' font

My labels' font don't match with Nick's

    <form action="index.html" method="post">
        <h1>Sing Up</h1>

        <label for="name">Name:</label>
        <input type="text" id="name" name="user_name">

        <label for="mail">Email:</label>
        <input type="email" id="mail" name="user_email">

        <label for="password">Password:</label>
        <input type="password" id="password" name="user_password">


        <label for="bio">Biography:</label>
        <textarea id="bio" name="user-bio"></textarea>

        <button type="submit">Sign Up</button>
      </form>

4 Answers

Codin - Codesmite
Codin - Codesmite
8,600 Points

Nick has probably defined a font for the label in his css file included on line 9.

You can change the font of label elements in your css like this:

label {
    font: normal 12px Verdana;
}
Sina Maleki
Sina Maleki
6,135 Points

Hi Sahar Nick used custom font-family for the body.

body {
  font-family: 'Nunito', sans-serif;
}

I thing you are from Iran, Am I right? Best

Sahar Nasiri
Sahar Nasiri
7,454 Points

Bale :D kheili khoshhal shodam Irani didam inja :D

Sina Maleki
Sina Maleki
6,135 Points

Manam hamin tor, alan kharejie error mizane mige ina chi daran migan.... To che zaminei fa alin?

Sahar Nasiri
Sahar Nasiri
7,454 Points

:DD are man barname nevisi robotic mikardam k khob be karam nayumad Web o ye maho nime shuru kardam qablan ru Java o Python kar karde budam MATLAB o inaam dge harja lazem bud vali kheili herfeii nashodam chon hey in shakhe un shakhe kardam :) tasmim daram injaro donbal konam k dge begam Web baladam :D to chi?

Sina Maleki
Sina Maleki
6,135 Points

Manam java kar mikardam, ye mod datam java ee, manam hamash in shakhe on shΓ khe karda ta ba inja ashna shodam. alan android ro to hamin ja shoro kardam, mikhay email bazanim behtar az forum injast, emailam jsina.maleki@gmail.com