2013-12-24 2 views
0

나는 임의의 텍스트 편집기를 사용하고, .html 파일에 페이지를 저장하고 기즈모의 "링크 당신은 당신의 <body> 태그의 폐쇄 브래킷을 놓치고내 <a href = link가 작동하지 않는 이유는 무엇입니까?

<!doctype html> 

<html> 
<head> 
<title>This is the title</title> 
</head> 

<body 
<a href="http://www.gizmodo.com">This is the link for gizmodo</a> 
</body> 

</html> 

<!--"a" stands for anchor--> 
+0

너무하는 HTML 유효성 검사기를 사용합니다. W3C는 온라인 유효성 검사기를 제공했으며 오프라인 HTML 깔끔함이 있습니다. 그러나 HTML 5 실험 도구로만 제공됩니다. https://github.com/w3c/tidy-html5를 참조하십시오. –

답변

2

클릭 할 수 있어요. 이것은 HTML의 원인이됩니다 <a> 태그는 잘못된 일이 아니라 예상대로 : 작동하려면

<body <-- HERE 
<a href="http://www.gizmodo.com">This is the link for gizmodo</a> 
</body> 
1
나는 HTML에 대한 몇 가지 자습서를 볼 것이다

은. 당신은 분명히 있습니다 신인. 몸 속성이 <body> </body>하지 <body </body>

입니다

이것은 개조 코드 :

<!doctype html> 

<html> 
<head> 
<title>This is the title</title> 
</head> 

<body> <!-- THIS IS WHERE YOU FORGOT THE ">" --> 
<a href="http://www.gizmodo.com">This is the link for gizmodo</a> 
</body> 

</html> 

<!--"a" stands for anchor--> 
관련 문제