那些電子商務新手們需要知道的!

在這個互聯網發展的時代,學習電子商務的人越來越多,今天小編為那些新手們整理了一些HTML必知的語言。

一、HTML文件結構

<html>

<head>

<title>文檔標題</title>

<body>正文</body>

</head>

</html>

二、HTML常用標記標籤

1、<h1>---<h6> 標題標籤

2、<p>---</p> 段落標籤 <br/> 強制換行標籤

3、<img src="圖片" alt="圖像的代替文字" title="滑鼠懸停提示文字" with="寬度"height="圖片高度"/> 圖像標籤

Advertisements

4、<a herf="鏈接地址" target="目標窗口位置">鏈接文本或圖像</a> 鏈接

5、<hr 屬性="屬性值"/> 水平線

6、<strong></strong>、<b></b> 字體加粗

7、<font 屬性="屬性值">需要格式化的文字</font> 修改簽字體標記

8、{<ul></ul> 無序列表標記

9、<ol></ol> 有序列表標記

10、<li></li> 標示清單項目} 列表標籤

11、<table></table> 表格 <tr></tr> 行標籤<td></td> 列標籤 <th></th> 表頭

Advertisements

12、<th rowspan=#> 跨列標籤 <td rowspan=#> 合併單元格<table cellspacing=#> 單元格距離 <table rellspadding=#>單元格內容與邊界的距離 <td align="屬性值"> 內容對齊

三、CSS基礎

1、內部樣式:

<style type="text/css">

選擇符{樣式屬性:屬樣值}

</style>

2、*{margin:0;padding:0} 取消網頁的間距

3、{margin:0 auto;} 自動居中

四、CSS屬性

1、font-family 設置字體

2、font-size 設置字型大小

3、font-style 字體風格

4、font-weight 字體加粗

5、font:字體取值 字體複合屬性

6、color:顏色取值 顏色屬性設置

7、background-color 背景顏色

8、background-image 背景圖片

9、background-repeat 背景重複 (repeat-x 水平 repeat-y 垂直)

10、background-attachment 背景附件

11、background-position 背景位值

12、background 複合背景

13、Word-spacing 單詞間隔

14、letter-spacing 字元間隔

15、text-decoration 文字修飾

16、text-align 文本排列

17、text-indent 文本縮進

18、line-height 文本行高

19、margin-top 頂端邊距

20、margin 複合邊距

21、padding-top 頂端填充

22、padding 複合填充

23、border-style 邊框樣式

24、border-width 邊框寬度

25、border-color 邊框顏色

26、list-style-type 列表符號

27、list-style-imger 圖像符號

28、list-style-position 列表縮進

29、list-style 列表複合屬性

30、position:absolute 絕對定位

31、position:relstive 相對定位

32、dispiay:nome 不顯示 dispiay:block 顯示

怎麼樣,你記住了嗎?

Advertisements

你可能會喜歡