html 开发资料 英文,Html编写基础标准(国外英文资料).doc

Html编写基础标准(国外英文资料)

Html编写基本规范

Html writes basic specifications

File related specifications:

The file name must consist of lowercase letters, Numbers, and underscores.

The file encoding USES utf-8 by default.

CSS files are introduced in an external way.

The external method: < link rel = "stylesheet" / > (the type declaration type = "text/CSS" can be ignored).

In principle, it is not allowed to write styles directly on HTML.

The link should be in the head.

Block naming conventions:

In general, the main block naming conventions for a website are divided into:

1: the head the header

2: the tail footer

The main body of the page is main

4: navigation nav

5: the subnavigation subnav

6: advertising banner

7: menu menu

8: submenu submenu

9: search search

10: content the content

11: scroll scroll

Article 12: login loginbar

13: logo

15: the sidebar sidebar

16: tabs TAB

17: list

18: paging pagelist

Message: MSG

20: column header title

21: guide guild

22: service service

Hot hot 23:

24: news news

25: download the download

26: register register

28: state the status

29: back prepage

Nextpage 30: the next page

31: copyright copyright

32: links friendlink

33: coat wrap

34: left navigation: leftsidebar

35: right navigation: rightsidebar

36: icon icon

37: text TXT

General situation is such, other details as the case may be, be sure to use simple English combination named, cannot use Numbers, letters and Chinese name, suggested naming short and meaningful.

3 annotation specifications

1, the top of the CSS file is annotated

/ *

* @description: Chinese

* @ author: jiangliqiong

* @update: jiangliqiong (2012-11-11)

* /

Single line comments in the CSS file

/ * comments are the style of which module

HTML internal annotation structure

< div class = "header" > < / div >

4 typesetting specification

The rule is written as a single line, and the rules in the entire file must be unified.

More than 1.1 selectod Shared a style set, and multiple selectors must be written in

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值