html

本文详细介绍了HTML的基本语法,包括文档类型声明、标题、段落、加粗、斜体、链接、图片、列表等元素的使用方法,是初学者掌握网页制作的基础指南。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!doctype html> #tell the browser we work on html5
<html>
<head>
	<title> My webpage </title> #标题
</head>

<body>
	<h1>bigest</h1> 
	<h2> second </h2>  #h1到h6代表字体大小
	<p>  # p代表新的paragraph
		this is <strong> bold </strong>  <br>  # strong 是加粗 br是换行
		this is <em> italic </em> <br> # em是斜体
	</p>
	<p>
		this is <strong> bold </strong>  <br>

		this is <em> italic </em> <br>
	</p>
	<p>
		this is <strong> bold </strong>  <br>

		this is <em> italic </em> <br>
	</p>
	<a href="http://www.google.com">google</a> #a代表链接 herf=“地址”
	
	<a herf="page2.html">page2</a> #没有http://,这里是relative link
	
	<img src="https://timedotcom.files.wordpress.com/
	2015/06/521811839-copy.jpg"> <br> #img代表image,src=“地址”

	<div></div>
	<span></span>

	<ul> #代表unordered list
		<li> item 1 </li>
		<li> item 2 </li>
	</ul>

	<ol> #代表ordered list
		<li> item 1 </li>
		<li> item 2 </li>
	</ol>
</body>

</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值