<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
  border: 1px solid black;
}
table {
  margin-left: auto;
  margin-right: auto;
}
h1{text-align: center};
h2{text-align: center};
</style>
</head>
<body>

<h2>Spare Parts</h2>


<table style="width:50%">
  <tr>
    <th>Stock Number</th>
    <th>Description</th>
    <th>List Price</th>
  </tr>
  <tr>
    <td bgcolor="red">3476-AB</td>
    <td>76mm Socket</td>
    <td>45.00</td>
  </tr>
  <tr>
    <td>3478-AB</td>
    <td><font color="blue">78mm Socket</td>
    <td>47.50</td>
  </tr>
  <tr>
    <td>3480-AB</td>
    <td>80mm Socket</td>
    <td>50.00</td>
  </tr>
</table>
<h1>Assignment</h1>
<p >question 1: </p>
    <pre>
      <center>
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      </center>
  </pre>
<hr>
<p >question 2: </p>
  <pre>
    <center>
      1<sup>2</sup>=1
      2<sup>2</sup>=4
      3<sup>2</sup>=9
      4<sup>2</sup>=16
      5<sup>2</sup>=25
      6<sup>2</sup>=36
      7<sup>2</sup>=49
      8<sup>2</sup>=64
      9<sup>2</sup>=81
      10<sup>2</sup>=100
      11<sup>2</sup>=121
      12<sup>2</sup>=144
      13<sup>2</sup>=169
      14<sup>2</sup>=196
      15<sup>2</sup>=225
      16<sup>2</sup>=256
      17<sup>2</sup>=289
      18<sup>2</sup>=324
      19<sup>2</sup>=361
      20<sup>2</sup>=400
      </center>
  </pre>
  <hr>
  <p>question 3: </p>
  <h1>Google</h1>
  <p>Google LLC is an American multinational technology company that specializes in Internet-related services and products, which include a search engine, online advertising technologies, cloud computing, software, and hardware. It is considered one of the Big Five American information technology companies, alongside Amazon, Apple, Meta and Microsoft.<br>
<br>
Google was founded on September 4, 1998, by Larry Page and Sergey Brin while they were PhD students at Stanford University in California. Together they own about 14% of its publicly listed shares and control 56% of the stockholder voting power through super-voting stock. The company went public via an initial public offering (IPO) in 2004. In 2015, Google was reorganized as a wholly-owned subsidiary of Alphabet Inc.. Google is Alphabet's largest subsidiary and is a holding company for Alphabet's Internet properties and interests. Sundar Pichai was appointed CEO of Google on October 24, 2015, replacing Larry Page, who became the CEO of Alphabet. On December 3, 2019, Pichai also became the CEO of Alphabet.[10]</p>
<hr>
<p>question 4: </p>
<h2>Seasons</h2>

<ul>
  <li>Spring</li>
  <li>Summer</li>
  <li>fall</li>
  <li>winter</li>
</ul>

<h2>Oceans</h2>

<ol>
<li>Indian Ocean</li>
<li>Arctic ocean</li>
<li>Southern ocean</li>
<li>Atlantic ocean</li>
<li>Pacific ocean</li>
</ol>
<hr>

<h1>Movies</h1>
<table bgcolor="#c9e4f9" style="width:100%">
  <tr>
    <th>Title</th>
    <th>Summary</th>
    <th>Rating</th>
  </tr>
  <tr>
    <td>Bheja Fry</td>
    <td>Ranjeet invites trouble when he welcomes Bharat, an aspiring singer, to his house. However, Bharat realises the mess he has created and tries to amend things for Ranjeet, but causes more damage.</td>
    <td>4.5</td>
  </tr>
  <tr>
    <td>ZNMD</td>
    <td>Friends Kabir, Imran and Arjun take a vacation in Spain before Kabir's marriage. The trip turns into an opportunity to mend fences, heal wounds, fall in love with life and combat their worst fears.</td>
    <td>9.5</td>
  </tr>
  <tr>
    <td>Dark Knight</td>
    <td>With the help of allies Lt. Jim Gordon (Gary Oldman) and DA Harvey Dent (Aaron Eckhart), Batman (Christian Bale) has been able to keep a tight lid on crime in Gotham City. But when a vile young criminal calling himself the Joker (Heath Ledger) suddenly throws the town into chaos, the caped Crusader begins to tread a fine line between heroism and vigilantism.</td>
    <td>9</td>
  </tr>
  <tr>
    <td>3 Idiots</td>
    <td>In college, Farhan and Raju form a great bond with Rancho due to his positive and refreshing outlook to life. Years later, a bet gives them a chance to look for their long-lost friend whose existence seems rather elusive.</td>
    <td>10</td>
  </tr>
</table>

</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>