<!DOCTYPE html>
<html>
  <head>
    <!--
   New Perspectives on HTML5 and CSS3, 7th Edition
   Tutorial 3
   Case Problem 1
   
   Slate & Pencil Home Page
   Author: Steven Tran
   Date:   3/10/2020
   
   Filename: sp_home.html
   -->
    <meta charset="utf-8" />
    <title>Slate &amp; Pencil Tutoring</title>
    <link href="sp_base.css" rel="stylesheet" />
    <link href="sp_styles.css" rel="stylesheet" />
    <link href="sp_layout.css" rel="stylesheet" />
  </head>

  <body>
    <header class="row">
      <img src="sp_logo.png" alt="Slate & Pencil Tutoring" />
      <nav>
        <ul>
          <li><a href="#">Home</a></li>
          <li><a href="#">Our Tutors</a></li>
          <li><a href="#">Pricing</a></li>
          <li><a href="#">Testimonials</a></li>
          <li><a href="#">Your Account</a></li>
          <li><a href="#">Chat Online</a></li>
        </ul>
      </nav>
    </header>
    <nav class="horizontal">
      <ul class="row">
        <li><a href="#">Math</a></li>
        <li><a href="#">Science</a></li>
        <li><a href="#">English</a></li>
        <li><a href="#">Languages</a></li>
        <li><a href="#">History</a></li>
        <li><a href="#">Sociology</a></li>
        <li><a href="#">Art</a></li>
        <li><a href="#">Other</a></li>
      </ul>
    </nav>
    <ul id="topics" class="row">
      <li>
        <img src="sp_topic1.png" alt="" />
        <p>
          Our tutors have advanced degrees, supplemented with real-world
          experience to help you meet your education goals.
        </p>
      </li>
      <li>
        <img src="sp_topic2.png" alt="" />
        <p>
          Every session is just you and your instructor and there is always
          someone online to help you. 24/7.
        </p>
      </li>
      <li>
        <img src="sp_topic3.png" alt="" />
        <p>
          We cover it all: From from Biochemistry to Beethoven. We can also help
          you prep for the ACT, SAT, and AP exams.
        </p>
      </li>
      <li>
        <img src="sp_topic4.png" alt="" />
        <p>
          We keep our prices low. Sign up for one-time assistance or enroll for
          a full semester at greatly reduced rates.
        </p>
      </li>
    </ul>
    <hr />
    <ul id="comments">
      <li>
        <img src="sp_student1.png" alt="" />
        <p>
          &ldquo;Thanks to <em>Slate &amp; Pencil</em> I passed AP Calculus with
          a 5.&rdquo;<br />
          <br />
          &mdash; Kevin, 12th Grade, Utah
        </p>
      </li>
      <li>
        <img src="sp_student2.png" alt="" />
        <p>
          &ldquo;I use <em>Slate &amp; Pencil</em> all of the time to supplement
          my lectures and course notes.&rdquo;<br />
          <br />
          &mdash; Paul, 12th Grade, Texas
        </p>
      </li>
      <li>
        <img src="sp_student3.png" alt="" />
        <p>
          &ldquo;I'm making the honor roll for the first time thanks to your
          wonderful service and help!&rdquo;<br />
          <br />
          &mdash; Lisa, 11th Grade, Florida
        </p>
      </li>
      <li>
        <img src="sp_student4.png" alt="" />
        <p>
          &ldquo;Geometry is a breeze after working online with your great
          tutors and review materials.&rdquo;<br />
          <br />
          &mdash; Karen, 9th Grade, Nebraska
        </p>
      </li>
      <li>
        <img src="sp_student5.png" alt="" />
        <p>
          &ldquo;I've seen a great improvement in my use of study time and I
          retain more than ever before.&rdquo;<br />
          <br />
          &mdash; Gianna, 10th Grade, Vermont
        </p>
      </li>
      <li>
        <img src="sp_student6.png" alt="" />
        <p>
          &ldquo;After using <em>Slate &amp; Pencil</em>, my SAT and ACT scores
          went through the roof!!!&rdquo;<br />
          <br />
          &mdash; Todd, 11th Grade, Illinois
        </p>
      </li>
    </ul>
    <footer>
      Slate &amp; Pencil Tutoring; &copy; 2017 All Rights Reserved
    </footer>
  </body>
</html>
 

HTML Online Editor & Compiler

Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML. You can also specify the stylesheet information in styles.css tab and scripts information in scripts.js tab and start coding.

About HTML

HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.

Syntax help

Fundamentals

  • Any HTML document must start with document declaration <!DOCTYPE html>
  • HTML documents begin with <html> and ends with </html>
  • Headings are defined with <h1> to <h6> where <h1> is the highest important heading and <h6> is the least important sub-heading.
  • Paragrahs are defined in <p>..</p> tag.
  • Links are defined in <a> tag.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    
  • Images are defined in <img> tag, where src attribute consists of image name.
  • Buttons are defined in <button>..</button> tag
  • Lists are defined in <ul> for unordered/bullet list and <ol> for ordered/number list, and the list items are defined in <li>.

HTML Elements and Attributes

  • HTML element is everything present from start tag to end tag.
  • The text present between start and end tag is called HTML element content.
  • Anything can be a tagname but it's preferred to put the meaningful title to the content present as tag name.
  • Do not forget the end tag.
  • Elements with no content are called empty elements.
  • Elements can have attributes which provides additional information about the element.
  • In the below example, href is an attribute and a is the tag name.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    

CSS

CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.

Example:

Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.

body{
  padding: 25px;
}
.title {
	color: #228B22;
	font-family: Candara;
}

HTML Tables

  • HTML Tables are defined in <table> tag.
  • Table row should be defined in <tr> tag
  • Table header should be defined in <th> tag
  • Table data should be defined in <td> tag
  • Table caption should be defined in <caption> tag

HTML-Javascript

  • Javascript is used in HTML pages to make them more interactive.
  • <script> is the tag used to write scripts in HTML
  • You can either reference a external script or write script code in this tag.

Example

<script src="script.js"></script>