<header>
<h1>Web Browsers</h1>
<p>A Brief description of most popular web browsers</p>
</header>
<nav>
<ul>
<li>
<a href="#googlechrome">Google Chrome</a>
</li>
<li>
<a href="#mozillafirefox">Mozilla Firefox</a>
</li>
<li>
<a href="#microsoftedge">Microsoft Edge</a>
</li>
</ul>
</nav>
<form>
<label>
Search: <input type="text">
<button>Go</button>
</label>
</form>
<main>
<article id="googlechrome">
<h2>Google Chrome</h2>
<p>Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!</p>
</article>
<article id="mozillafirefox">
<h2>Mozilla Firefox</h2>
<p>Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.</p>
</article>
<article id="microsoftedge">
<h2>Microsoft Edge</h2>
<p>Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.</p>
</article>
</main>
CSS
body {
margin: 20px;
font-family: sans-serif;
font-size: 10pt;
color: #111;
}
header > h1 {
margin: 0 auto;
font-weight: normal;
font-size: 22pt;
}
header > p {
font-style: italic;
color: #666;
font-size: 11pt;
margin: 0 auto;
}
nav ul {
display: flex;
list-style-type: none;
align-items: center;
justify-content: left;
background: #ccc;
border-radius: 3px;
padding: 2px;
font-size: 12pt;
margin: 10px auto;
}
nav ul li a, nav ul li a:visited {
color: #00f;
text-decoration: none;
display: block;
line-height: 24pt;
padding: 5px 10px;
}
nav ul li a:hover {
color: #fff;
background: #999;
border-radius: 3px;
}
form {
margin: 10px auto;
text-align: right;
}
article {
border: solid 1px #eee;
border-radius: 6px;
box-shadow: 1px 1px 3px #666;
padding: 5px 10px;
margin: 0 auto 10px;
}
article h2 {
margin: 5px auto;
font-weight: normal;
font-style: italic;
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.