了解一下html

在看ASP.NET 还需要了解一 下HTML

有这么几点 我认为很有必要知道的

 1

Anything enclosed in angled brackets (< >) is a tag, which is interpreted by the browser. For example,
in the currency converter page, the Convert text is displayed directly, but the <input> tags represents
something else—a text box and a button, respectively.

2

  HTML documents always start with an <html> tag and end with an </html> tag.

3

Inside the HTML document, you can place code, additional information such as the web page title, and the
actual web page content. The web page content is always placed between <body> and
</body> tags. The web page title is part of the information between the <head> and </head> tags.

4

Controls, the graphical widgets that users can click and type into, must always be placed inside a form.
Otherwise, you won’t be able to access the information the user enters. In ASP.NET, every control needs
to go inside the <form> tag.

5

The <div> tag, on its own, doesn’t do anything. However, it’s useful to use a <div> tag to group portions
of your page that you want to format in a similar way (for example, with the same font, background
color, or border). That way, you can apply style settings to the <div> tag, and they’ll cascade down into
every tag it contains. (The <div> formatting isn’t shown in this example, because it’s too long. However,
you can check out the online currency converter example to see the full list of style settings.)

6

 Whitespace is ignored in HTML. This means spaces, line breaks, and so on, are collapsed. If you need
to explicitly insert additional spaces, you can use the character entity &nbsp; (which stands for
nonbreaking space). To insert line breaks, you can use the break tag: <br />.

如果你想了解更多的html知识

你可以到

http://www.w3schoools.com/html

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值