Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<htm lang="ru">
    <head>
        <meta charset="UTF-8">
        <title>
            Форма регистрации на сайт html и css - основы
        </title>
        <link rel="stylesheet" href="style.css">
        <link href="https://fonts.googleapis.com/css?family=Nunito:400,300" rel="stylesheet" type="text/css">
        <meta name="description" content="Как сделать форму регистрации на сайт с помощью html и css - основы">
    </head>
    <body>
        
        <form action="">
            <h1>Регистрация</h1>
            <fieldset>
                <legend><span class="section">1</span>Основная информация</legend>
            
            <label for="name">Имя:</label>
            <input type="text" name="name" maxlength="20" title="Имя" required>

            <label for="email" required>e-mail:</label>
            <input type="email" name="email" title="Мыло">
                
                    
            <label for="password" required>Пароль:</label>
            <input type="password" name="password" title="Пароль">
                        
           
            <label>Возраст:</label>&#8195;
            
            <label class="light">Мне меньше 18
            <input type="radio" name="age" value="under_18">
        </label>

            <label class="light">Мне больше 18
            <input type="radio" name="age" value="over_18">
        </label>

        </fieldset>
        <fieldset>
            <legend><span class="section">2</span>Ваш профиль</legend>

            <label for="bio">БИО:</label>
            <textarea name="bio" placeholder="Расскажите о себе"></textarea>

            <label for="job">Ваша профессия</label>
            <select name="job">
                    <option value="" selected="selected" disabled="disabled"></option>
                <optgroup label="Веб-разработка">
                    
                    <option value="frontend_developer">Фронтенд разработчик</option>
                    <option value="php_developer">PHP разработчик</option>
                    <option value="python_developer">Python разработчик</option>
                    <option value="java_developer">Java разработчик</option>
                    <option value="web_designer">Веб-дизайнер</option>
                    <option value="wordpress_developer">Wordpress разработчик</option>
                </optgroup>
                <optgroup label="Мобильная разработка">
                        <option value="android_developer">Андроид разработчик</option>
                        <option value="ios_developer">iOS разработчик</option>
                        <option value="mobile_developer">Разработчик моб. приложений</option>
                        
                </optgroup>
                <optgroup label="Бизнес">
                    <option value="business_owner">Свой бизнес</option>
                    <option value="freelancer">Фрилансер</option>
                    <option value="youtube_creator">Ютубер</option>

                </optgroup>
            </select>
            <label>Увлечения:</label>&#8195;

            <label class="light">Разработка
            <input type="checkbox" value="interest_development" name="user_interest">
        </label>

            <label class="light">Веб-дизайн
            <input type="checkbox" value="interest_designer" name="user_interest">
        </label>

            <label class="light">
                    Бизнес
            <input type="checkbox" value="interest_business" name="user_interest">
        </label>


        </fieldset>

        <button type="submit">Отправить</button>
       

        </form>

    </body>
</htm>
              
            
!

CSS

              
                *{box-sizing: border-box;}

body {
    font-family: 'Nunito', 'sans-serif';
    color: #384047;
}
form {
    max-width: 300px;
    margin: 10px auto;
    padding: 10px 20px;
    background: #f4f7f8;
    border-radius: 8px;
}
h1 {
    margin: 0 0 30px 0;
    text-align: center;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(255, green, blue, 0.1);
    border: none;
    font-size: 16px;
    height: auto;
    margin: 0;
    outline: 0;
    padding: 15px;
    width: 100%;
    background-color: #e8eeef;
    color: #8a97a0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}
input:focus, textarea:focus {
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    border: 1px solid rgba(81, 203, 238, 1);
}
input[type="radio"],
input[type="checkbox"] {
    margin: 0 4px 8px 0;
}

select {
    padding: 6px;
    height: 32px;
    border-radius: 2px;
}

fieldset {
    margin-bottom: 30px;
    border: none;
}

legend {
    display: block;
    margin-bottom: 8px;
}

label.light {
    font-weight: 300;
    display: inline;
}
              
            
!

JS

              
                
              
            
!
999px

Console