Tutorial - 1 : Introduction to HTML / UNCG Wrapper

gorilla Test page
Test page with styles-1
Test page with styles-2
Sample CSS stylesheet

Introduction to HTML

Exercise - Write a Simple HTML Page Using Notepad

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Welcome to my homepage</title>
</head>
<body>
<h1>Welcome to UNCG at Greensboro</h1>
<img width="182px" height="130px" src="http://wilbaer.uncg.edu/templates/tate.jpg" alt="tate street" />
<h2>Recommended Restaurants and Cafes on Tate Street</h2>
<p>Below is a list of restaurants and cafes close to UNCG</p>
<ul>
<li>BoBo House</li>
<li>Thai restaurant</li>
<li>Indian restaurant</li>
<li>Japanese Restaurant</li>
<li>Tate St. Coffee Shop</li>
</ul>
<p>For more info visit: <br />
<a href="http://www.downtowngreensboro.org/citylight/dining">Downtown Greensboro Dining</a></p>
<p>For more information, please visit <span>Thanks for visiting!</span></p>
</body>
</html>



CSS - Cascading Style Sheets

CSS is used to format HTML.
Add the following tag to the section of your document to add a CSS stylesheet

<link rel="stylesheet" type="text/css" href="http://wilbaer.uncg.edu/templates/department-tutorials/test.css" />

body {
background-color:#284B7E;
color:white;
font-family:Geneva, Arial, Helvetica, sans-serif;
}

h1 {
background-color:#052F6D;
color:white;
padding:10px;
}

h2 {
border-bottom:1px dashed #CCC;
}

ul {
border:1px solid black;
background-color:#F5F5F5;
color:#333333;
width:180px;
padding-top:10px;
padding-bottom:10px;
}

a {
color:white;
}

img {
padding:4px;
border:1px solid black;
background-color:white;
}


The UNCG Wrapper

Essentially the "UNCG wrapper" divides up the page into three parts. The head, the body, and the footer.
You will notice the following tags in each page, if you look at the page in "code view".
If you remove these elements, you will no longer see the UNCG header and colors and so on.


<!--#set var="UNIT_VARS" value="/hhp/inc_unit/unit_variables.html" -->
<!--#set var="PAGE_TITLE" value="The University of North Carolina at Greensboro, School of Health &amp; Human Performance" -->

<!--#include virtual="/inc_uncg/header.html" -->

<h2>School of Health and Human Performance 2003 - 2008 Goals for the <acronym title="The University of North Carolina at Greensboro">UNCG</acronym> Plan</h2><br />

<h3>Strategic Direction #1</h3>


<!--#include virtual="/inc_uncg/footer.html" -->
  1. <!--#set var="UNIT_VARS" value="/hhp/inc_unit/unit_variables.html" -->
    <!--#set var="PAGE_TITLE" value="The University of North Carolina at Greensboro, School of Health &amp; Human Performance" -->
  2. <!--#include virtual="/inc_uncg/header.html" -->
  3. <!--#include virtual="/inc_uncg/footer.html" -->

    The first - sets the text for the <title> tag, and also some other department specific information (phone numbers, address etc. )
    The second - includes the <html><header><title> <body> tags
    The third - includes the closing tags </body> </html>