![]()
|
<br>
for
line break, <p>
for
paragraph
<b>boldface</b>
and Logical <strong>strong</strong>
:
boldface and strong.
<img
src="smiley.png">
:
<a
href="url">
to other HTML
resources (pages, images, ...)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
The markup on the right results in this page. When you follow that link, use the "view source" option of your browser, and you'll see it's identical to what appears in the table here.
Comparing the "source" to the results is probably the best way to learn HTML, if you can find decently crafted pages!
A HeadingThis is a paragraph. You've seen them before. They begin with a <p> tag and end with a </p>.
That table is aligned to the right, and has a border width of 2 (pixels). Images can be aligned too. Tables with zero border (default) are used to place things (text, images) on the page. Pat Murphy
|
(the above code renders what is in the box on the right here).
<a
href="url">something</a>
- Absolute:
<a
href="http://www.nrao.edu/privacy.shtml">privacy</a>
- Relative:
<a
href="foo.html">foo</a>
(relative to current page's location)
- Rooted:
<a
href="/~pmurphy/">me</a>
; protocol,
hostname from current URL
- If linking to directory, include final
"/"
as it saves time.
- Basic protocols: http://, ftp://, mailto:, file:/// (local).
- Blue border
around images by default;
<img
border="0">
to hide: 
![]() Hi ThereBlah blah blah
Modified by Pat Murphy on some date |
Use template, save as
something.shtml
, edit. You get
something like the view on the right. (Replace "something", "Hi There" and
"blah blah blah" as appropriate).