Learning notes: html basic

1: all white space is folded into one space. both in xhtml and html;
2: so to begin a new line, use <br />;
3: use image:   <img src=”lynda-24.png” alt=”lynda.com logo” title=”hey! you with the mouse!” width=”24″ height=”24″ /> ;
4:  <a href=”http://openssh.org/” target=”_blank” title=”More about ssh”>openssh Site</a>
&nbsp;&nbsp;(with <tt>target=”_blank”</tt>) ;
5: combine image  and links:
<p>This paragraph has an image
<a href=”http://www.lynda.com/”>
<img src=”images/lynda-24.png” alt=”lynda.com logo” width=”24″ height=”24″ /></a>
that is also a link.</p>;
6: CSS: <link rel=”STYLESHEET” type=”text/css” href=”02-tables.css” />;
7: Metadata is data (information) about data.
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The <meta> tag always goes inside the <head> element.
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.

PS: this note services as a quick reminder for basic elements in html. The best way to comprehend it would be try to write down some code and see it in your  browser.

Leave a Reply

Your email address will not be published. Required fields are marked *