HTML-CSS
HTML-CSS
Index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="This page contains all the things I am learning how to create as I
learn HTML.">
</head>
<body>
<header>
<nav aria-label="primary-navigation">
<ul>
<li>
</li>
<li>
</li>
</ul>
</nav>
</header>
<hr>
<main>
<article id="html">
<section>
<h3>HTML5</h3>
height="300">
<figure>
<p>
<code><h1>Hello World!</h1></code>
</p>
</figure>
</section>
<section>
<ol>
<a href="https://developer.mozilla.org/">MDN</a>
</abbr>.</li>
</ol>
<aside>
<details>
<p>I start at <time datetime="08:00">8 am</time> and I write code for <time
datetime="PT3H">3
</details>
</aside>
<br>
<table>
<thead>
<tr>
<th> </th>
<th scope="col">Time</th>
<th scope="col">Activity</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Morning</th>
<td>
</td>
<td>Write Code</td>
</tr>
<tr>
<th scope="row">Break</th>
<td>
<td>Eat Lunch</td>
</tr>
<tr>
<th scope="row">Afternoon</th>
<td>
</td>
</tr>
<tr>
<th scope="row">Evening</th>
<td>Free Time</td>
</tr>
<tr>
<th scope="row">Night</th>
<td>Sleep</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">And that's what I do every day, 5 days a week. Just eat, sleep,
code ..and
recharge!</td>
</tr>
</tfoot>
</table>
</section>
</article>
<hr>
<article id="vacation">
<section>
<ul>
<li>
<figure>
<figcaption>
</figcaption>
</figure>
</li>
<li>
<address>
</address>
<figure>
<figcaption>
</figcaption>
</figure>
</li>
</ul>
</section>
<section>
<dl>
<dt>North Pole</dt>
<dt>South Pole</dt>
<dt>Mountain Tops</dt>
</dl>
</section>
</article>
</main>
<hr>
<footer>
<p>
<<< © <a href="about.html">Dave Gray</a> >>>
</p>
<p>
</p>
</footer>
</body>
</html>
About.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Hi, I'm Dave Gray. This page is about me.">
<title>About Me</title>
</head>
<body>
<hr>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium, laborum. Eum iure, ea,
corporis odit
excepturi accusamus fugit blanditiis non ipsa, quae asperiores enim esse maiores ipsum illum?
Incidunt, ducimus!
</p>
<hr>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<hr>
<p>
</p>
</body>
</html>
Main.css:
html {
font-size: 22px;
body {
background-color: #333;
color: whitesmoke;
a{
color: aliceblue;
a:visited {
color: lightgray;
a:hover, a:active {
color: #eee;
border-collapse: collapse;
padding: 0.5rem;
}
Output:
9.
Index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="This page contains all the things I am learning how to create as I
learn HTML.">
</head>
<body>
<header>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</nav>
</header>
<hr>
<main>
<article id="html">
<section>
<h3>HTML5</h3>
height="300">
<figure>
<p>
<code><h1>Hello World!</h1></code>
</p>
</figure>
</section>
<section>
<ol>
<a href="https://developer.mozilla.org/">MDN</a>
</abbr>.</li>
</ol>
<aside>
<details>
<p>I start at <time datetime="08:00">8 am</time> and I write code for <time
datetime="PT3H">3
</details>
</aside>
<br>
<table>
<thead>
<tr>
<th> </th>
<th scope="col">Time</th>
<th scope="col">Activity</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Morning</th>
<td>
</td>
<td>Write Code</td>
</tr>
<tr>
<th scope="row">Break</th>
<td>
</td>
<td>Eat Lunch</td>
</tr>
<tr>
<th scope="row">Afternoon</th>
<td>
</td>
</tr>
<tr>
<th scope="row">Evening</th>
<td>Free Time</td>
</tr>
<tr>
<th scope="row">Night</th>
<td>Sleep</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">And that's what I do every day, 5 days a week. Just eat, sleep,
code ..and
recharge!</td>
</tr>
</tfoot>
</table>
</section>
</article>
<hr>
<article id="vacation">
<section>
<ul>
<li>
<figure>
<img src="img/caribbean.jpg" alt="Caribbean Beach"
<figcaption>
</figcaption>
</figure>
</li>
<li>
<address>
</address>
<figure>
<figcaption>
</figcaption>
</figure>
</li>
</ul>
</section>
<section>
<dl>
<dt>North Pole</dt>
<dd>I hear this is <strong>cold</strong>!</dd>
<dt>South Pole</dt>
<dt>Mountain Tops</dt>
</dl>
</section>
</article>
<hr>
<article id="contact">
<h2>Contact Me</h2>
<fieldset>
<legend>Personal Info</legend>
<p>
autofocus>
</p>
<p>
</p>
<p>
<label for="password">Password:</label>
</p>
<p>
<label for="phone">Phone:</label>
pattern="[0-9]{3}[0-9]{3}[0-9]{4}" required>
</p>
<p>
</p>
<p>
<optgroup label="Coffees">
</optgroup>
<option value="cappuccino">Cappuccino</option>
<option value="cortado">Cortado</option>
<option value="americano">Americano</option>
</optgroup>
<option value="other">Other</option>
</select>
</p>
<!-- <p>
<datalist id="coffee-list">
<option value="coffee">
<option value="latte">
<option value="espresso">
<option value="cortado">
<option value="americano">
<option value="other">
</datalist>
</p> -->
</fieldset>
<br>
<fieldset>
<p>
<label for="tacos">Tacos</label>
</p>
<p>
<label for="pizza">Pizza</label>
</p>
<p>
<input type="radio" name="food" id="other" value="other">
<label for="other">Other</label>
</p>
</fieldset>
<br>
<fieldset>
<p>
<label for="dog">Dog</label>
</p>
<p>
<label for="cat">Cat</label>
</p>
<p>
<label for="fish">Fish</label>
</p>
<p>
<label for="otherPet">Other</label>
</p>
</fieldset>
<br>
<fieldset>
<legend>Send Me A Note</legend>
<br>
<textarea name="message" id="message" cols="30" rows="10"
</fieldset>
<br>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
</article>
</main>
<hr>
<footer>
<p>
</p>
<p>
</p>
</footer>
</body>
</html>
About.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Dave Gray">
<meta name="description" content="Hi, I'm Dave Gray. This page is about me.">
<title>About Me</title>
</head>
<body>
<hr>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium, laborum. Eum iure, ea,
corporis odit
excepturi accusamus fugit blanditiis non ipsa, quae asperiores enim esse maiores ipsum illum?
Incidunt, ducimus!
</p>
<hr>
<ul>
<li>
</li>
<li>
</li>
<li>
Dial <a href="tel:+1234567890">my phone number</a>.
</li>
<li>
</li>
</ul>
<hr>
<p>
</p>
</body>
</html>
Main.css:
html {
font-size: 22px;
body {
background-color: #333;
color: whitesmoke;
a{
color: aliceblue;
}
a:visited {
color: lightgray;
a:hover, a:active {
color: #eee;
border-collapse: collapse;
padding: 0.5rem;
Output: