Jump to content
  • 0

Проблема с доктайпом


Faran
 Share

Question

Добрый день. Делаю сайт в первый раз. на главной странице написал доктайп: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru-ru" lang="ru-ru" >

<head>

<title>Тайтл</title>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />

<meta name="keywords" content="контент" />

<meta name="description" content="описание" />

<link rel="shortcut icon" type="image/x-icon" href="../img/favicon.ico">

<link href="../style.css" rel="stylesheet" type="text/css" />

</head>

Затем через дремвивер нажимал на страницу - сохранить как - и название для других страниц. В итоге создал много страници решил проверить это дело на валидность. На всех страницах выдаёт ошибки, кроме главной.

# Error Line 8, Column 80: end tag for "link" omitted, but OMITTAG NO was specified

…e/x-icon" href="../img/favicon.ic…

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

# Info Line 8, Column 7: start tag was here

<link rel="shortcut icon" type="image/x-icon" href="../img/favicon.ico">

# Error Line 10, Column 7: XML Parsing Error: Opening and ending tag mismatch: link line 8 and head

</head>

# Error Line 158, Column 7: XML Parsing Error: Opening and ending tag mismatch: head line 3 and html

</html>

# Error Line 158, Column 7: XML Parsing Error: Premature end of data in tag html line 2

</html>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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