HTML notes

tags


hr: The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).

The <hr> element is used to separate content (or define a change) in an HTML page.


input:http://www.w3schools.com/tags/tag_input.asp

<input type="password" name="pwd">


Form :http://www.w3schools.com/tags/tag_form.asp

Drop down box :http://www.w3schools.com/tags/tag_optgroup.asp

Field set :http://www.w3schools.com/tags/tag_fieldset.asp

table :http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_tbody


Layout :http://www.w3schools.com/html/html_layout.asp


Global attributes: those attributes can be used in any html element


class name<element class="classname">

Specifies one or more class names for an element. To specify multiple classes, separate the class names with a space, e.g. <span class="left important">. This allows you to combine several CSS classes for one HTML element.

Naming rules:

  • Must begin with a letter A-Z or a-z
  • Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), and underscores ("_")
  • In HTML, all values are case-insensitive


Head and Header

The <header> element represents a container for introductory content or a set of navigational links.

A <header> element typically contains:

  • one or more heading elements (<h1> - <h6>)
  • logo or icon
  • authorship information

You can have several <header> elements in one document.

Note: A <header> tag cannot be placed within a <footer>, <address> or another <header> element.

The <head> element is a container for all the head elements.

The <head> element can include a title for the document, scripts, styles, meta information, and more.

The following elements can go inside the <head> element:



BLOCK LEVEL

http://www.w3schools.com/html/html_blocks.asp

The HTML <span> element is an inline element that can be used as a container for text.


Reserved char :http://www.w3schools.com/html/html_entities.asp

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值