Jump to content

an70n

Newbie
  • Posts

    6
  • Joined

  • Last visited

Posts posted by an70n

  1. У меня вот вопрос конкретно к тем кто уже перешел или переходит на html5:

    css привязывать к новым элементам (<header> например) как вот тут:

    header { 
    width: 100%;
    display: block;
    text-align: center;
    background-color: #595959;
    float: left;
    }

    <header>
    Заголовок
    </header>

    или как раньше только просто в начале и в конце добавить.

    .title { 
    width: 100%;
    display: block;
    text-align: center;
    background-color: #595959;
    float: left;
    }

    <header>
    <div class="title">
    Заголовок
    </div>
    </header>

    Оба валидны, но в первом кода меньше. Но при переходе от html4 к html5 второй проще. ИМХО. А как вы считаете?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy