Skip to content
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
10 changes: 10 additions & 0 deletions solutions/0.5 first web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> index</title>
<link rel="stylesheet" href = "style.css">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of href = "style.css", do href="style.css" (remove spaces before and after =)

</head>
<body>
<p> index </p>
</body>
</html>
10 changes: 10 additions & 0 deletions solutions/0.5 first web/page1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> page1 </title>
<link rel="stylesheet" href = "style.css">
</head>
<body>
<p> page 1</p>
</body>
</html>
10 changes: 10 additions & 0 deletions solutions/0.5 first web/page2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> page2 </title>
<link rel="stylesheet" href = "style.css">
</head>
<body>
<p> page 2 </p>
</body>
</html>
10 changes: 10 additions & 0 deletions solutions/0.5 first web/page3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> page 3</title>
<link rel="stylesheet" href = "style.css">
</head>
<body>
<p> page 3 </p>
</body>
</html>
3 changes: 3 additions & 0 deletions solutions/0.5 first web/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
p {
text-align:center;
}
10 changes: 10 additions & 0 deletions solutions/09a_length/length.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
<script src = "length.js"></script>
</head>
<body>

</body>
</html>
5 changes: 5 additions & 0 deletions solutions/09a_length/length.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


var string = "This is a string";

console.log(string.length);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

1 change: 1 addition & 0 deletions solutions/javascript/myname.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello, World!");
14 changes: 14 additions & 0 deletions solutions/mysite/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title> Mysite</title>
<link rel="stylesheet" href = "style.css">
</head>
<body>
<img src = "https://upload.wikimedia.org/wikipedia/commons/5/5b/Ultraviolet_image_of_the_Cygnus_Loop_Nebula_crop.jpg"></img>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<img> tags are self-closing. Since they don't have content (anything between opening and closing tag), they don't have a closing tag.

so instead of: <img src="..."></img> do <img src="..." />

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, remind me to talk about hot-linking (look it up if you're curious) next class. There is a better way to link images in your web pages.

<p>Blah</p>
<a href = "http://www.w3schools.com/html/html_links.asp">w3</a>
<a href = "https://codehs.com/core/user/188215/53/">Blah</a>
<a href = "https://github.com/ScriptEdcurriculum/curriculum2015/blob/master/unitsYear2/1-JShunt/clues/README.md">Blah</a>
</body>
</html>
3 changes: 3 additions & 0 deletions solutions/mysite/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
p{
color:red;
}
Empty file added solutions/name/helloname.js
Empty file.