<p> <center>想要居中的文字吗?</center> </p> <p style="text-align: center;"> 这样也可以居中哦! </p> <p> <a href="http://www.w3school.com.cn/html/html_links.asp" target="_blank">更多关于超链接的属性可以点我阅读</a> </p> <!-- 这两幅图都只会占用一半的宽度,可以把浏览器拉宽拉窄看效果 --> <img width="50%" src="http://lhr0909.github.io/img/doge.jpg" /> <br /> <!-- 左边这个标注是换行标记 --> <img style="width: 50%;" src="http://lhr0909.github.io/img/doge.jpg" />