Skip to content

Improve readability with meta tag. #11

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 3 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
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A simple HTML page with JavaScript functionality.">
<meta name="keywords" content="HTML, CSS, JavaScript, web development">
<!-- Text that appears in the browser tab -->
<title>DPI-691M</title>
<title>Simple Website Example</title>
<meta name="description" content="A basic example website for Git practice">
<!-- Link stylesheet -->
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!-- Head and subhead -->
<h1>Programming and Data for Policymakers [DPI-691M]</h1>
<h2>Welcome to shopping days!</h2>
<h1>Welcome to My Enhanced Website</h1>
<h2>This Website is being enhanced with new features</h2>

<button id ="myButton">Click Me!</button>

<!-- Image -->
<img src="https://www.hks.harvard.edu/sites/default/files/images/paragraph_footer/harvard-kennedy-school-logo_1.png"/>

<!-- Paragraphs of text -->
<p>You should take this course whether or not you plan to code for a living.</p>
<p>It will help you:</p>
<p>The new generation is technology so taking this course is very benefical!</p>

<!-- Unordered List (bullet points) -->
<ul>
Expand Down
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ var logo = document.querySelector('img');

// Assign the function to the onclick event on that element
logo.onclick = sayOuch;

console.log('Website enhancement script loaded!');
document.getElementById('myButton').addEventListener('click', function() {
alert('Button clicked!');
});
20 changes: 17 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* Set background */
html {
background-color: maroon;
background-color: beige;
font-family: 'Courier New', Courier, monospace;
}

/* styles for the body of the site */
body {
width: 60%;
background-color: orange;
background-color: lightblue;
border: 5px solid black;
padding: 0 20px 20px 20px;
margin-top: 25px;
Expand All @@ -33,7 +34,20 @@ p {
img {
margin-left: auto;
margin-right: auto;
max-width: 100%;
max-width: 50%;
height: auto;

}

#myButton {
background-color: rgb(14, 92, 160); /* Green */
border: none;
color: black;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}