![]() |
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||
|
HTML Basics What is HTML? HTML stands for Hypertext Markup Language, it is the language that makes up the World Wide Web. This page will show
you the Basics of HTML. Examples of the 6 heading sizesThis would show heading size 1This would show heading size 2This would show heading size 3 This would show heading size 4This would show heading size 5This would show heading size 6Alignment: Text can be aligned to the RIGHT, LEFT or CENTER of the screen:<p align=left> This paragraph will be aligned left</p> <p align=center> This paragraph will be aligned center</p> <p align=right> This paragraph will be aligned right</p> Note the p tag <p> which indicates a paragraph and the </p> which indicates the end of the paragraph. Examples of the 3 paragraph alignmentsThis paragraph will be aligned left. This paragraph will be aligned left This paragraph will be aligned left. This paragraph will be aligned left This paragraph will be aligned left. This paragraph will be aligned left This paragraph will be aligned left. This paragraph will be aligned left This paragraph will be aligned center. This paragraph will be aligned center This paragraph will be aligned center. This paragraph will be aligned center This paragraph will be aligned center. This paragraph will be aligned center This paragraph will be aligned center. This paragraph will be aligned center This paragraph will be aligned right. This paragraph will be aligned right.
This paragraph will be aligned right. This paragraph will be aligned
This paragraph will be aligned right. This paragraph will be aligned
This paragraph will be aligned right. This paragraph will be aligned
The break tag looks like this <br> and performs the following function: <p> This line could be a <br> very very very very very <br> long line but we can break it <br> up with the break tag.</p> would display the following:This line could be a The non breaking space looks like this: The non breaking space performs the following: <p> These words would have exactly 1 space between them.</p> <p> These words would have exactly 3 space between them.</p> <p> These words would have exactly 10 space between them.</p> These words would have exactly 1 space between them These words would have exactly 3 space between them These words would have exactly 10 space between them Lists
There are 3 types of lists in html Orderd List Example This is an example of an ordered list code: <ol> <li> Add Sugar </li> <li> Add Water </li> <li> Add Eggs </li> </ol> Will Display the following:
Unorderd List Example This is an example of an unordered list code: <ul> <li> High Speed </li> <li> Efficent </li> <li> Great Sound </li> </ul> Will Display the following:
Definition List Example This is an example of a definition list code: <dl> <dt> Albacore </dt> <dd> A large pelagic tuna (Thunnus alalunga) with long pectoral fins that is a source of canned tuna; broadly : any of various tunas (as a bonito) </dd> <dt> Yellowtail </dt> <dd> A sport fish (S. lalandei) of the California coast and southward that reaches a length of about three feet (one meter) </dd> </dl> Will Display the following:
Horizontal Rule <hr> This tag draws a line across the screen, you can control the lines, length, thickness shading and colors. These are some examples of a Horizontal Rule code: Size of 25 pixles thick < hr size="25" > Will Display the following: Length of 50% of the screen, 3 pixles thick and no shading < hr width="50%" size="3" "noshade" > Length of 250 pixles, Thickness of 10 pixles, and no shading < hr width="250" size="10" "noshade" > Length of 150 pixles, aligned left < hr align=left width="150" > Length of 150, aligned center < hr align=center width="150" > Width of 150, aligned right < hr align=right width="150" > Creating Links You can create links using the anchor tag < a > There are 3 main links you can create: Internal Link (from one page of your website to another page on your site) External Link (from your website to a page on another site) Mailto: link (this will launch your default email application) Internal Link Example <a href=about.html> About Us </a> This line of code will create a link to a file called about.html as long as you have a file with that name in your site folder it will load. Be aware that these files are CAPS sensitive. Here is the output: About Us External Link Example <a href=http://www.host45.com> Host45.com, Inc. Home of the $5 Domain and Email Host </a> This line of code will create a link to the web site of http://www.host45.com with the description of Host45.com, Inc. Home of the $5 Domain Hosting as long as the web site is up it will load. Here is the output: Host45.com, Inc. Home of the $5 Domain and Email Host Email Link Example <a href=mailto:info@host45.com> Contact Host45.com, Inc. </a> This line of code will create an email link, when clicked your default email application will open up. Here is the output: Contact Host45.com, Inc. |
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||