HTML and binary
Logic and truth tables
Theories and ideas |
CS 010 Summary
Part I: HyperText Mark-up Language
To make a web page, write a text document using notepad or
simpletext and save it as .html or .htm instead of .txt.
Tags, marked out by < and >, go before everything that
shouldn't be plain text. Always remember to close the tag
by repeating it as > after the part you want to change.
Start out with <HTML>. Don't forget to close it at
the bottom of the page. Then make a title between <TITLE>
and </TITLE>. Then open the body of the web page with
<BODY>. Some tags can have attributes, which
come after a space after the main word of tag, but before the
>. For example, <BODY bgcolor="yellow">, which makes
the background of the whole web page yellow. More tags and
attributes can be looked up on various tutorial web pages like
htmlgoodies.
Making tables is a bit more complex. <table> opens
the table; <tr> opens a row; and <td> opens
a cell. All three of these can have attributes. If you don't
tell <table> how thick to make the border, the border
is automatically set to 0 and it is invisible. If you want
your table to have a border, <table> needs the attribute
border="1", for example. If you want a cell to span more
than one column, you can tell it to with the attribute colspan=
followed by the number of columns that you want it to span.
Likewise with the rowspan attribute. Again, don't forget to
close every tag.
Tables can be very useful because if you set border="0",
you can use it simply to put things side-by-side on a page.
Part II: Binary
Abacuses are wooden frames with silver beads on gymp strung from
one end of the frame to the other used to do arithmetic.
| 0 | 1 | 10 | 11 |
100 | 101 | 110 | 111 | 1000 |
1001 | 1010 | 1011 | 1100 |
| 0 | 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 |
In binary, the rightmost column is the ones columns. The second-
rightmost is the twos, the next is 4s, then 8s, then 16s, then 32s, etc.
| Computers think in binary. |
You can too. |
|