为什么我的代码显示为文本(使用 vscode 的 HTML)

编程


每当我运行代码时,它都会加载一个带有 ~/ 的空白页面和一个包含我的代码的文件夹

我尝试过的:

这是我的代码(** <—不包括在内)

超文本标记语言
 **

	
		<title>CV
	
	
		<h1>Kenzo Kitembo</h1>
		<p>Software Engineer</p>
		
		<hr>
		<h2><ins>Summary</ins></h2>
		<p> My name is Kenzo and I'm a self taught SE looking forward to work with you!</p>
		<h2><ins>Experience</ins>
		 <li>Sololearn
		   <p><small> Learning Python and HTML alone as a teenager</small></p></li>		<li>Soon to be at College D
		   <p><small> Will be enrolling at D next year in the CS department</small></p></li>		
		
		<h2><ins>Skills</ins></h2>
		
			<table border="2"><tbody><tr>				<td>Languages</td>				<td>Python</td>				<td>HTML</td>			</tr>			<tr>				<td>Precise skill</td>				<td>OOP</td>				<td>Design</td>			</tr>		</tbody></table>

		<h2><ins>Contacts</ins></h2>
		<a href="https://opensea.io/collection/humans-of-the-universe" target="_blank">My Nfts</a>
		<a href="https://twitter.com/HumansoftheU" target="_blank">My twitter</a>
		
		<h2><ins>Write me a message</ins></h2>
		
			​Enter your information:<br><br>
			
			<br>
			
			<br>
			
			<br>
		
		<br>
		<br>
		
			<table border="2"><tbody><tr>				<td>Pleased to meet you!</td>			</tr>		</tbody></table>
		
		
**</h2>

解决方案1

我注意到的第一件事是你的 <title> 标签未关闭。
这意味着您根本没有 HTML 正文。

检查所有标签是否匹配很可能会解决许多问题。

解决方案2

你没有 html 也不 body 标签也可以。

换句话说,您的 HTML 格式严重错误。



コメント

タイトルとURLをコピーしました