테스트 사이트 - 개발 중인 베타 버전입니다

웹표준 검사시 Error 메세지 채택완료

동물원 2년 전 조회 1,418

웹표준 검사를 실행해서 다른 오류들은 다 잡았는데요. 아래 두가지는 어떻게 잡아야 할지 모르겠네요.

meta 태그가 있는 아래부분 같은데요. 

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

이 부분을 어떻게 수정해야 할까요?

 

※ 웹표준검사 에레메세지 내용

  1. Error: Attribute name not allowed on element https://html.spec.whatwg.org/multipage/#the-meta-element">meta at this point.

    d>↩<body>↩<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">↩ ↩
     

  2. Error: Element https://html.spec.whatwg.org/multipage/#the-meta-element">meta is missing one or more of the following attributes: itempropproperty.

    d>↩<body>↩<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">↩ ↩

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
J
2년 전

<body>

여기에 넣으시면 안되구요

</body>

 

<head>

// head 안쪽에 넣으세요

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

</head>

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

동물원
2년 전
정말 감사합니다. 잘 적용했습니다.

댓글을 작성하려면 로그인이 필요합니다.

2년 전

body 가 아닌

<body><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"></body>

 

head 에 넣어야 합니다.

<head><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"></head><body>...</body>

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

동물원
2년 전
답변 감사합니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인