HTML and CSS Reference
In-Depth Information
< tr >
< th > Type
< th > Text
< th > Graphics
< tbody >
< tr >
< th > UI
< td > text input
< td > button
< tr >
< th > Links
< td > underlined
< td > icon
</ table >
</ body >
</ html >
Figure 1-3 shows what your table looks like.
Figure 1-3: A table created with HTML5.
Generally, you don't use tables for formatting text. Instead, tables are used for formatting
data — such as data that's loaded from a database or created dynamically by another program
like JavaScript. In HTML5, though, tables used in conjunction with CSS3 do a bit more
formatting than in previous versions of HTML and CSS.
h is i nal set of tags (see Table 1.3) is for anyone familiar with HTML4 and earlier versions of
HTML. h e following tags have been discontinued, either because they posed certain
problems or were replaced by other structures that better handled what they used to do.
If you're new to HTML, you can look at these to get an idea of what to avoid. In working with
HTML, you i nd many samples on the Web, and you're likely to incorporate them into your
own code. However, because HTML5 is so new, you'll i nd that most of the HTML was
created with earlier versions that may have obsolete tags, and you'll want to replace them with
the newer structures.
Search WWH ::

Custom Search