Saturday, 29 August 2015
HTML Tag and Attribute
html element contain <start tag> content <end tag>, e.g. <h1>adam's to do list</h1>
also can add attribute into start tag, e.g. <link href="bootstrap.css" rel="stylesheet" />
css is a style sheet language
tag
----
1. block element vs inline element
block element start on a new line and take full width available, e.g. div
inline element does not start on a new line and only take space necessary, e.g. span
2. div
block level container
3. span
inline level container
4. ul
unsorted list
5. li
List item
6. a
hyperlink
7. select
drop-down list
8. table
9. th
table header cell
10. tbody
container of rows
11. tr
table row
12. td
table cell
11. script
a client side script, such as javascript
src attribute: specifies the url of an external script file
attribute
-----------
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment