Skip to content

Changed some html and css #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dom_manipulation/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
<head><title>JavaScript Button Example</title></head>

<body>
<h1 id="heading">Hello</h1>
<button id='squeeze'>Squeeze me</button>

<script>
let button = document.getElementById("squeeze");
function shout(){
alert("... and I squeak");
const message = document.getElementById("heading")
message.innerHTML = message.textContent.toUpperCase()
}
button.addEventListener("click", shout);
</script>
Expand Down
29 changes: 16 additions & 13 deletions html_css/styling-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,24 @@
<meta name="viewport" content="width=device-width">
<title>Styling lists</title>
<style>

/* General styles */

html {
html{
font-family: Helvetica, Arial, sans-serif;
font-size: 10px;
color: #295539;
text-align: center;
}

h2 {
font-size: 2rem;
h1,h2 {
color: #9575cd;
font-family: sans-serif;
text-transform: uppercase;
letter-spacing: 0.3em;

font-size: 48px;
margin: 0;
}

ul,ol,dl,p {
Expand Down Expand Up @@ -58,22 +67,18 @@
</style>
</head>
<body>
<h2>Shopping (unordered) list</h2>

<p>Paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p>

<h1>Making a Meal</h1>
<h2>Shopping List</h2>
<ul>
<li>Humous</li>
<li>Pitta</li>
<li>Green salad</li>
<li>Halloumi</li>
</ul>

<h2>Recipe (ordered) list</h2>
<h2>Recipe List</h2>

<p>Paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p>

<ol start="4">
<ol>
<li>Toast pitta, leave to cool, then slice down the edge.</li>
<li>Fry the halloumi in a shallow, non-stick pan, until browned on both sides.</li>
<li>Wash and chop the salad.</li>
Expand All @@ -82,8 +87,6 @@ <h2>Recipe (ordered) list</h2>

<h2>Ingredient description list</h2>

<p>Paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p>

<dl>
<dt>Humous</dt>
<dd>A thick dip/sauce generally made from chick peas blended with tahini, lemon juice, salt, garlic, and other ingredients.</dd>
Expand Down