ANNOUNCEMENTS
Announcements
Professor Ellen Baryshev    ellenbaryshev@gmail.com.
Professor Ellen Baryshev     ellenbaryshev@gmail.com
CLASS / HOMEWORK

 

WEEK 3
1. HTML/CSS learning – continuation
- Display elements: inline vs. block
An inline element does not start on a new line and it only takes up as much width as necessary.
Examples: <a>, <span>, <img>, <small>, etc.
The easiest way to put an inline element on the next line is to use <br>
A block element always starts on a new line, and the browsers automatically add some space (a margin) before and after the element.
Examples: <div>, <p>, <h1> - <h6>, <hr>, <header>, <main>, <nav>, <ul>, <ol>, <article>, <section>, <aside>, <table>, etc.

- CSS Selectors: Element, Class, ID
    
- Element selector examples: p, body, head, main, footer, a:link, a:active, a:visited, etc.
     
More HTML 5 tags (in alphabetical order), which do not require Class or ID names
    
- Class selector: .name {....}
    
- Id selector: #name {....}
Notes:
1. You can use class selector in the same html document many times. The class selector starts with a dot (class name cannot start with a number).
2. You should use id selector in an html document just once; usually it is used for any kind of box except for HTML5 semantic elements.

3. You can apply the id and the class to the same element, for example:
In CSS:
#wrapper {
width: 960px;
height:800px;
margin: auto;
}
.red {color:right;}

In HTML:
<div id="wrapper" class="red">
Content of this box
</div>

- * (asterisk) - selects all elements in CSS
Example: *{box-sizing: border-box;}
- , (comma) serves to list the elements, which will be selected together
Example: body, div, span and iframe will have margin 0, padding 20 pixels and border 0
body, div, span, iframe {
margin: 0;
padding: 20px;
border: 0;
}


- HTML5, very basic structure
<!DOCTYPE html>
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Here goes title</title> 
<style> (for internal CSS)
</style>   
</head>

<body>
<header>
<nav>
<ul>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
</ul>
</nav>
</header>

<main>
<h1>Welcome to My Webpage</h1> 
<section>
</section>

<section>
</section>

<article> (to define an independent content such as articles, blog posts,etc.)
</article>
</main>

<footer>
<small>Company © The name. All rights reserved.</small>
</footer>

</body>
</html>


- Typical HTML5 page

- HTML5 deprecated elements (in your handout)

2. Understanding directories
Practice:

REMEMBER:
- Always (!) keep HTML files and all images in THE SAME folder!!!
- Always (!) name the home page index.html with all lower-case letters in this folder.


3. Project 1 - webpage "About Me".
Part 2 - independent version:
Due 90% - next class
Start with the pencil sketch of a layout

The page will have:
- Your name
- Your portrait
- Several paragraphs of relevant information
- Several links
- Additional items of your choice
Examples:

Example 1
Example 2
Example 3
Find more layout ideas on the Internet

Remember:
- Use HTML5 syntax
- Use internal or inline CSS
- The page name is index.html
- Make the page width around 800px
- All files have to be in one folder
- All paths have to be correct


1. Study:

- Learn to Code HTML and CSS, Lesson 2 Getting to Know HTML
- HTML5 Syntax (start with HTML5 Elements part)
- HTML handouts (corresponding pages)
- CSS handouts (corresponding pages)
- HTML Block and Inline Elements
- HTML class selector (attribute)
- HTML ID selector (attribute)
- The Difference Between ID and Class

2. Work on the About Me project, Part 2 - independent version:

1. First, study all the assigned materials
2. Make a pencil sketch of the page layout
3. Finish 80-90% of coding
4. Save the page and the corresponding files in the dropbox folder - AboutMe folder (and USB if needed)
WEEK 2
1. Hyperlinks (with text and image)
Video Hyperlinks (2:40)
Practice working with Hyperlinks

2. CSS - Cascading Style Sheet (just the beginning)
CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.
Note to remember: HTML always works, but CSS does not work without HTML in the body
Demo: One HTML Page - Multiple Styles!



3 types of CSS: inline, internal, external
There are 3 types of CSS IN_LINE, INTERNAL and EXTERNAL
- Inline styles are inserted directly into an HTML tag to style an element that is inside that tag.
Example:
<span style="color: #cccccc;">Some text</span>
Note: the element <span> is used to style text (size, family, color, etc.).

- Internal styles are used for one page; they are located in the <style> tags inside the head section of this
page. These styles are referred and applied to the elements that are inside the body of the page.
For example, if you want a paragraph text to be red and its font size 20 pixels, the code should be:
<html>
<head>
<title>Page Name</title>
<style>
p {
color: red;
font-size:20px;
}
</style>

</head>
<body>
<p>This paragraph text will be red with the font size 20 pixels </p>
<p>This paragraph text will also be red with the font size 20 pixels </p>
</body>
</html>

- External - With an external style sheet, you can change the look of an entire website by changing just one file!
We will speak about it later on

3. Project 1- mini webpage "About Me".
Due - next class

The page will have:
- Your name
- Your portrait (file should be high quality, with width no bigger than 375-380 pixels)
- A short paragraph about yourself
- Several social media icons linked to the corresponding sites
Example: Ellen Baryshev
Students examples: click on the Students' Examples link, Fall 2023 Semester, About Me project
Hint: to see the code, right mouse click on the page, View Page Source (works on Firefox and Chrome browsers, not on Safari)

Social media icons to use:


1. Study

Book: HTML and CSS: Design and Build Websites
(Study whatever we covered in class)
Chapter 2: Text
Chapter 4: Links
Chapter 5: Images

Or/and Book: Learn to Code HTML and CSS
Lessons 1 and 2

  - 
Hypelinks (till "HTML Links - Create a Bookmark" part for now)
  - 
Sequence of videos:
     
1. Hyperlinks (2:40)
     
2. Hyperlink Pages (2:30)
     
3. Hyperlink - image (6:05)
  - 
Images and Hyperlinks (5.5 minutes)
  - 
Textbook HTML and CSS: Chapter 4 - Links, pages 79-92; Chapter 5 - Images, pages 94-119;
  - 

From w3schools Hypelinks (till "HTML Links - Create a Bookmark" part for now)


 

2. CSS

1. CSS Handout Read the parts that we studied in class
Note: it is a good idea to print the whole handout and always keep it with you
2. Three Ways to Insert CSS
Internal CSS
Inline CSS
3. Textbook: HTML and CSS: Design and Build Websites
Start reading chapter 10, Introducing CSS (whatever we covered in class)

3. Continue and finish working on your Project 1, About Me

1. Put your name in big font size
2. Place your real photo instead of a placeholder image
3. Put several lines of text about yourself
4. Put several social media icons and link them to the corresponding sites to be opened in the external browsers
5. When finish, put all files in the folder "about" in the dropbox.
Codes to use: copy and modify

WEEK 1
1. Syllabus and Plan for the semester overview

2. "WWW" - World Wide Web
Short video: 550,000 miles of cable hidden under the ocean
Undersea internet cable


What is Starlink?
Starlink is a satellite internet service developed by SpaceX that offers high-speed broadband
to users in remote and rural areas by using a constellation of low Earth orbit satellites.


3. HTML - HyperText Markup Language.
This markup language supports plain text, images, embedded video and audio contents, hyperlinks (embedded URLs), and scripts (short programs) that implement complex user interaction.

- HTML Tags


- HTML Elements and Attributes


4. Basic structures of a web page and coding

- HTML5 Document
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
Body content goes here

</body>
</html>

- Headings
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>


- Paragraphs: <p>This is a paragraph.</p>
- Text Formatting

  • <b> - Bold text
  • <strong> - Important text
  • <i> - Italic text
  • <em> - Emphasized text
- Break: The <br> tag inserts a single line break.
- One letter space &nbsp;
- HTML Comments <!--...-->
     
<!--This is a comment. Comments are not displayed in the browser-->
- HTML Images
<img src="smiley.gif" alt="Smiley face" > (alt specifies an alternate text for an image)

5. Just a little CSS - Cascading Style Sheet
- CSS for font size, color, family, etc.
     
<span style="font-size:30px; font-family:verdana; color:red;">This is text</span>
     
<p style="font-size:30px; font-family:verdana; color:red;">This is text paragraph</p>

If we have time: Practice with coding



First, send me your email, so I could invite you to a drop-box: ellenbaryshev@gmail.com
Also, bring the file with your photo (or put it into your dropbox) for working on the project in class, preferably not less than 375 pixsel width.


1. FREE PROGRAMS FOR WORKING ON WEBSITES:

For working at home. You can download and use:
BBedit (for Mac)
Text Wrangler (for Mac)
Notrpad++ (for PC)
Sublime Text (for Mac and PC)
Brackets (for PC)
(my personal preference is Dreamweaver, but it is up to you. Besides, it is not free)

As a last resort you can use Notepad (PC) and TextEdit (Mac). They are available on all computers by default, but you have to type all codes manually; no help with colors or mistakes
Tutorial how to use Notepad (PC) and TextEdit (Mac)

Dreamweaver and Sublime text tutorials are on the RESOURCES page

Note:
It doesn’t matter with what program you code; you can start working using any program, then continue using another one, then another one, etc. The main part is the code itself, not a program


2. Study:

Important note:
We have too little time in class; therefore it is extremely important to study beyond the class time to know the material and practice.
1. Internet
How the Internet Works in 5 Minutes
If you want to know more: What is Elon Musk's Starlink?

2.Videos HTML5 Tutorial For Beginners:
    - 
Getting Started (7 minutes).
    - 
Text (6 minutes).
3.Video: Site structure, folders, files naming (7 minutes).
4. Textbook HTML and CSS: Design and Build Websites :
      - Intro to the web, pages 7-9
      - Chapter 1, Structure
      - Chapter 2. Text, pages 40-51
5. Corresponding information in your HTML Handouts (always keep it with you in class; you will refer to it when you forget cods)

3. Continue practicing with coding:

- HTML Basics From the beginning to "Posting the website" part
- HTML at w3schools.com with "Try It Yourself" options! (all links at the left)
Study parts:
HTML Introduction
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Text Formatting
HTML Comments
HTML Images

4. Practice creating a web page

- Think about a subject (whatever you want).
- Make a headline with <h1>.
- Write meaningful text, one paragraph.
- You can add some more elements, change colors, etc.
- Prepare your questions that could arise during your work

Put your page into your USB drive for now or dropbox