Jump to content
  • 0

Что у Вас было с <html> и <body> (легчайший вопрос, тут нет простыни из кода)


GRAY
 Share

Question

Привет форумчанам. Пытаюсь научить себя верстать) Хочу попросить Вас поделитЬся опытом на тему тегов <html> и <body> и <head>

Какие атрибуты вы на них вешаете в вашей стандартной рыбке при написании нового сайта?

Частенько видел такое:

body{
  padding: 0px;
  margin: 0px;
  }

 

Это НОРМАЛЬНО? Или топорно и так нельзя? 

 

И еще маленький вопрос в догонку.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Имя окна</title>
<style></style>
</head>
<body>
</body>
</html>

Это сейчас моя стандартная рыбка. Можно ли ее как-то улучшить что-то добавив? 

Edited by GRAY
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  On 2/26/2021 at 9:17 PM, GRAY said:

Это НОРМАЛЬНО? Или топорно и так нельзя?

Expand  

Если надо сбросить поля, то сбрасывайте. Причем тут нормально или нет. Другой вопрос, что отступы (paddings) по умолчанию и так не установлены.

  On 2/26/2021 at 9:17 PM, GRAY said:

Это сейчас моя стандартная рыбка. Можно ли ее как-то улучшить что-то добавив?

Expand  

Ну то же самое: добавляйте что нужно. Здесь нельзя сказать, что лучше или хуже. Для референса можете посмотреть html5-boilerplate, например.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • 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