<!DOCTYPE html> <html> <head> <!-- New Perspectives on HTML and CSS Tutorial 5 Case Problem 1 Sudoku Puzzle Author: Mario Lara Date: 10/10/2021 Filename: sudoku.htm Supporting files: gold.jpg, green.jpg, jpf.css, jpf.jpg, modernizr-1.5.js, stable.css, --> <meta charset="UTF-8" /> <title>Daily Sudoku Puzzle</title> <script src="modernizr-1.5.js"></script> <link rel="stylesheet" href="jpf.css"> <link rel="stylesheet" href="stable.css"> </head> <body> <header> <img src="jpf.jpg" alt="The Japanese Puzzle Factory" /> </header> <nav class="horizontal"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Online Puzzles</a></li> <li><a href="#">Store</a></li> <li><a href="#">Tips and Hints</a></li> <li><a href="#">Forum</a></li> <li><a href="#">Competitions</a></li> <li><a href="#">Site Map</a></li> </ul> </nav> <nav class="vertical"> <ul> <li><a href="#">Akari</a></li> <li><a href="#">Divide by Box</a></li> <li><a href="#">Fillomino</a></li> <li><a href="#">Hashiwokakero</a></li> <li><a href="#">Heyawake</a></li> <li><a href="#">Hitori</a></li> <li><a href="#">Kakuro</a></li> <li><a href="#">Katagaku</a></li> <li><a href="#">Masugo</a></li> <li><a href="#">Masyu</a></li> <li><a href="#">Nonogram</a></li> <li><a href="#">Oekaki Logic</a></li> <li><a href="#">Shikaku</a></li> <li><a href="#">Sudoku</a></li> <li><a href="#">Suhai</a></li> <li><a href="#">Super Sudoku</a></li> <li><a href="#">Tenketsu</a></li> <li><a href="#">Tentai Show</a></li> <li><a href="#">Wordoku</a></li> <li><a href="#">Yajilin</a></li> </ul> </nav> <section id="main"> <table class="spuzzle"> <caption>Sudoku</caption> <thead> <tr> <th></th> <th>1</th> <th>2</th> <th>3</th> <th>4</th> <th>5</th> <th>6</th> <th>7</th> <th>8</th> <th>9</th> </tr> </thead> <tbody> <tr> <th>A</th><colgroup> <col class="greenBox" span="3"> </colgroup> </tr> <tr> <th>B</th> <td class="greenBox"> 1 </td> <td class="greenBox"> 2 </td> <td class="greenBox"> 3 </td> <td> 4 </td> <td> 5 </td> <td> 6 </td> <td class="greenBox"> 7 </td> <td class="greenBox"> 8 </td> <td class="greenBox"> 9 </td> </tr> <tr> <th>C</th> <td class="greenBox"> 1 </td> <td class="greenBox"> 2 </td> <td class="greenBox"> 3 </td> <td> 4 </td> <td> 5 </td> <td> 6 </td> <td class="greenBox"> 7 </td> <td class="greenBox"> 8 </td> <td class="greenBox"> 9 </td> </tr> <tr> <th>D</th> <td> 1 </td> <td> 2 </td> <td> 3 </td> <td class="greenBox"> 4 </td> <td class="greenBox"> 5 </td> <td class="greenBox"> 6 </td> <td> 7 </td> <td> 8 </td> <td> 9 </td> </tr> <tr> <th>E</th> <td> 1 </td> <td> 2 </td> <td> 3 </td> <td class="greenBox"> 4 </td> <td class="greenBox"> 5 </td> <td class="greenBox"> 6 </td> <td> 7 </td> <td> 8 </td> <td> 9 </td> </tr> <tr> <th>F</th> <td> 1 </td> <td> 2 </td> <td> 3 </td> <td class="greenBox"> 4 </td> <td class="greenBox"> 5 </td> <td class="greenBox"> 6 </td> <td> 7 </td> <td> 8 </td> <td> 9 </td> </tr> <tr> <th>G</th> <td class="greenBox"> 1 </td> <td class="greenBox"> 2 </td> <td class="greenBox"> 3 </td> <td> 4 </td> <td> 5 </td> <td> 6 </td> <td class="greenBox"> 7 </td> <td class="greenBox"> 8 </td> <td class="greenBox"> 9 </td> </tr> <tr> <th>H</th> <td class="greenBox"> 1 </td> <td class="greenBox"> 2 </td> <td class="greenBox"> 3 </td> <td> 4 </td> <td> 5 </td> <td> 6 </td> <td class="greenBox"> 7 </td> <td class="greenBox"> 8 </td> <td class="greenBox"> 9 </td> </tr> <tr> <th>I</th> <td> 1 </td> <td> 2 </td> <td> 3 </td> <td> 4 </td> <td> 5 </td> <td> 6 </td> <td> 7 </td> <td> 8 </td> <td> 9 </td> </tr> </tbody> </table> <article> <h1>To Play</h1> <p>Sudoku is played on a 9x9 grid with nine 3x3 boxes placed within the grid. Enter a digit from 1 to 9 in each table cell. A few starting numbers have been supplied for you. The digits from 1 to 9 can appear only once each in every row, column, and box in the table (diagonals don't count). Every Sudoku puzzle has a unique solution. </p> <p>Good luck!</p> </article> </section> </body> </html>
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.
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.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
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;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>