html筆記2
阿新 • • 發佈:2017-10-03
pre a標簽 align div 使用 size ref 圖片大小 eight
html css的用法 <style type="text/css">代表我要使用css了
<html> <head> <style type="text/css"> h1 {color:red} p {color:blue} </style> </head> <body style="background-color:pink" > <h1>這是html css</h1> <p>html樣式</p> </body> </html>
a標簽的用法
<html> <body> <div style="color:blue"> <p>超級鏈接</p> <a href="http://www.baidu.com/">點擊本少跳轉到百度</a> <p>使用圖片來做超級鏈接</p> <a href="http://www.freebuf.com"> <img src="死神.jpg" width="30" height="20"/> </a>
</div> </body> </html>
img標簽的用法
<html> <body style="background-color:pink;text-align:center;font-size:20px"> <div style="color:blue"> <h1>圖片大小調整</h1> <p>死神</p> </div> <img src="1.jpg" width="300" height="250"/> </body> </html> <!---width是寬度,height是高度--->
未完待續.......
html筆記2