Skip to content
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

Final #4

Open
wants to merge 1 commit into
base: master
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
Binary file added .DS_Store
Binary file not shown.
Binary file added Make a Web Page/.DS_Store
Binary file not shown.
164 changes: 164 additions & 0 deletions Make a Web Page/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<!DOCTYPE html>
<html>
<head>
<title>HTML Structure</title>
<!-- CSS file-->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="image2"><img src="http://ayudawordpress.com/wp-content/uploads/2012/08/aprender-html.jpg" alt="notes"></div>

<!-- Content 1-->
<div class="title">
<h1 id="lesson-1">Introduction to Programming: Lesson 1</h1>
</div>
<div class="stage">
<h2 id=Stage1-1>Stage 1.1: Basics of Web and HTML</h2>
<div class="concept" id="Stage1-1-a">
<div class="concept-title">
<p>How does the web work</p>
</div>
</div>
<div class="concept-description">
<p>
The user sends the data to the Internet and makes contact with a server via HTML. The server sends back the appropriate HTML to the user where the browser decodes the information and projects it to the screen.
</p>
</div>


<div class="concept" id="Stage1-1-b">
<div class="concept-title">
<p>HTML</p>
</div>
</div>
<div class="concept-description">
<p>
Stands for <em>Hypertext Markup Language</em>, which is basically based on <em>text</em> (what you see) and <em>Markup</em> (how it looks). HTML classifies page content, tells a browser what's text and image and so on. HTML controls structure by following certain syntax and rules.
</p>
</div>


<div class="concept" id="Stage1-1-c">
<div class="concept-title">
<p>Computers are Stupid!</p>
</div>
</div>
<div class="concept-description">
<p>
It means that computers have a specific language and understanding for things which sometimes makes it frustrating for programmers commit silly mistakes could make it more difficult to program an application.
</p>
</div>


<div class="concept" id="Stage1-1-d">
<div class="concept-title">
<p>Tags and Elements</p>
</div>
</div>
<div class="concept-description">
<p>
HTML is made of <b>elements</b> which help to give plain text more texture and structure with the help of <b>tags</b>, which consist of a wide variety of choices from making text <b>bold</b>, <em>italic</em>, or refer to a website like <a href="www.google.com">Google</a>. We can &lt;br&gt;eak long lines and create more structure by tagging &lt;p&gt;aragraphs and &lt;h&gt;eadlines. Some elements are invisible, but the visible elements form rectangular boxes.
</p>
</div>


<div class="concept" id="Stage1-1-e">
<div class="concept-title">
<p>Inline and Block</p>
</div>
</div>
<div class="concept-description">
<p>
<em>Inline</em> is mostly for elements that work within a line like "break," "bold," and "italic." <em>Block</em> are mostly within several lines like "paragraph" and "division" where they form an <em>invisible box</em> around their content.
</p>
</div>


<div class="concept" id="Stage1-1-f">
<div class="concept-title">
<p>Don't Memorize Everything!</p>
</div>
</div>
<div class="concept-description">
<p>
There are a lot of references on the web that programmers could use to write code instead of trying to memorize every single element and attribute. It is important for a programmer to familiarize him/herself with those references and resources so he/she could be more effective and fluent writing code.
</p>
</div>
</div>


<!-- Content 2-->
<div class="title">
<h1 id="lesson-1">Introduction to Programming: Lesson 2</h1>
</div>

<div class="stage">
<h2 id=Stage1-2>Stage 1.2: Creating a Structured Document with HTML</h2>
<div class="concept" id="Stage1-2-a">
<div class="concept-title">
<p>Structured like tree</p>
</div>
</div>
<div class="concept-description">
<p>
According to <a href="https://en.wikipedia.org/wiki/Tree_structure">Wikipedia</a>, a <b>tree structure</b> is "a way of representing the hierarchical nature of a structure in a graphical form." HTML includes a lot of elements inside other elements which create relationships between them. Defining those relations will help to build a structure that will bring order to HTML coding.
</p>
</div>

<div class="concept" id="Stage1-2-b">
<div class="concept-title">
<p>Boxes within Boxes within...</p>
</div>
</div>
<div class="concept-description">
<p>
Elements are contained within boxes and because elements could exist withing each other, there could be two or more boxes inside each box. It's important to keep track of their attributes so there won't be any unnecessary overlapping and conflict.
</p>
</div>


<div class="concept" id="Stage1-2-c">
<div class="concept-title">
<p>Tools</p>
</div>
</div>
<div class="concept-description">
<p>
Programmers use tools to write code which are called <b>text editors</b>. There are many different text editors like <em>Sublime Text</em> and <em>Scratchpad</em> which make programmer's life a lot easier. They specially help with elements and tags where programmer wouldn't have to worry memorizing or writing the whole tag, the text editor will view suggestions and even complete the tag with one click.
</p>
</div>
</div>


<!-- Content 3-->
<div class="title">
<h1 id="lesson-1">Introduction to Programming: Lesson 3</h1>
</div>

<div class="stage">
<h2 id=Stage1-3>Stage 1.3: Adding CSS to HTML</h2>
<div class="concept" id="Stage1-3-a">
<div class="concept-title">
<p>Stay away from repetitions</p>
</div>
</div>
<div class="concept-description">
<p>
There are a lot of similar lines within an HTML code and copy/pasting those lines helps a programmer to save some time, but it may cause a lot of mistakes. It's important to define and structure those lines so it wouldn't create unwanted repetitions. By creating <b><em>class</em></b> and <b><em>div</em></b> within a code could help avoiding those mistakes and repetitions.
</p>
</div>


<div class="concept" id="Stage1-3-b">
<div class="concept-title">
<p>CSS</p>
</div>
</div>
<div class="concept-description">
<p>
CSS stands for Cascading Style Sheets, and it basically gives a programmer to control the style of an HTML element. An important part of CSS is <b>"Inheritance"</b> which is part of an ancestor-descendant relationship. By using <b>class</b> in a code we are taking advantage of the inheritance property in an HTML. It helps to style a class and its descendants rather than styling it line by line.
</p>
</div>
</div>
</body>
</html>
82 changes: 82 additions & 0 deletions Make a Web Page/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/* Body */
body {
padding: 30px;
font-family: "Times New Roman";
max-width: 85%;
margin: 0 auto;
font-size: 20px;
background: url("http://www.webdevsnippets.com/wp-content/uploads/2013/07/sublime_text.png") no-repeat fixed;
}


/* Content of document */
.content {
text-align: center;
list-style-position: inside;
background-color: #CCCC00;
border-radius: 10%;
max-width: 40%;
margin: auto;
}


/* HTML Image */
.image2 {

text-align: center;
padding-top: 50px;
padding-bottom: 30px;
}

.title {
color: white;
border: solid;
border-color: #0099CC;
border-style: outset;
background-image: url('http://fishpondusa.com/img/pattern_blue60.png');
border-radius: 20px;
text-align: center;
}

p {
margin: 30px;
font-family: "broadway";
}

.stage {
text-align: center;
background-color: #7cfc00;
border-radius: 10%;
color: #280000;
padding: 15px;
margin: 30px;
}

h2 {
margin: 20px;
font-size: 35px;

}


/* HTML and CSS Content */
.concept {
background-color: #00bfff;
padding: 8px;
margin: 15px;
border-radius: 20%;
color: black;
}

.concept-title {
font-size: 30px;
margin: auto;
text-align: center;
color: #522900;
text-decoration: underline;
}

.concept-description {
font-weight: normal;
margin: auto;
}