2013-12-24 54 views
0

我使用一個隨機的文本編輯器和保存頁面爲.html和「鏈接,Gizmodo的無法點擊爲什麼我的<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 Tidy。但是,這僅作爲HTML 5的實驗工具提供。請參閱https://github.com/w3c/tidy-html5。 –

回答

2

你缺少你<body>標籤的右括號。這將導致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--> 
相關問題