Web Structure and Style. MB2030 Section 2 Class 4

Similar documents
Cascading Style Sheets Level 2

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

CSS Cascading Style Sheets

Appendix D CSS Properties and Values

HTML/XML. HTML Continued Introduction to CSS

ICT IGCSE Practical Revision Presentation Web Authoring

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

ITNP43: HTML Lecture 4

Creating and Building Websites

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Reading 2.2 Cascading Style Sheets

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

CSS: The Basics CISC 282 September 20, 2014

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

Cascading Style Sheets (CSS)

CSS Cascading Style Sheets

Stamp Builder. Documentation. v1.0.0

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

CSS Selectors. element selectors. .class selectors. #id selectors

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

CSS worksheet. JMC 105 Drake University

CSS. Lecture 16 COMPSCI 111/111G SS 2018

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

Assignments (4) Assessment as per Schedule (2)

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

McMaster Brand Standard for Websites

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

CSS Lecture 16 COMPSCI 111/111G SS 2018

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

CSS. Shan-Hung Wu CS, NTHU

Deccansoft Software Services

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Web Development & Design Foundations with HTML5

Controlling Appearance the Old Way

2005 WebGUI Users Conference

Web Development & Design Foundations with HTML5

Introduction to WEB PROGRAMMING

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Web Site Design and Development Lecture 6

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Zen Garden. CSS Zen Garden

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Adding CSS to your HTML

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Web Recruitment Module Customisation

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Taking Fireworks Template and Applying it to Dreamweaver


To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

HTML and CSS: An Introduction

COMS 359: Interactive Media

CSS.

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

ACSC 231 Internet Technologies

Cascading Style Sheets. Overview and Basic use of CSS

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 3 Introduction to CSS

The Benefits of CSS. Less work: Change look of the whole site with one edit

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2

ENGINEERING DATA HUB VISUAL DESIGN SPECIFICATIONS VERSION 3. Created: 2/10/2017

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Introduction to using HTML to design webpages

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

ICT IGCSE Practical Revision Presentation Web Authoring

CSS: Cascading Style Sheets

CSS Styles Quick Reference Guide

Using CSS in Web Site Design

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Web Design and Development Tutorial 03

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

Using Dreamweaver CS6

HTML and CSS COURSE SYLLABUS

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

To link to an external stylesheet, the link element is placed within the head of the html page:

Create a Web Page with Spry Navigation Bar. March 30, 2010

AGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css

COMP519 Web Programming Autumn Cascading Style Sheets

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Web Engineering CSS. By Assistant Prof Malik M Ali

Chapter 4 CSS basics

Creating Forms. Starting the Page. another way of applying a template to a page.

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

Fundamentals of Web Programming a

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

In the early days of the Web, designers just had the original 91 HTML tags to work with.

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

Styles, Style Sheets, the Box Model and Liquid Layout

Certified CSS Designer VS-1028

APPLIED COMPUTING 1P01 Fluency with Technology

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

Transcription:

Web Structure and Style MB2030 Section 2 Class 4

Web Site Hierarchies The Structure of the Web

How the Internet Works Computers connected to the Web are called clients and servers. A simplified diagram of how they interact might look like this LAN -Local Area Network - A localized internal collection of devices all connected together inside one home or one building of an organization. Internet - or World Wide Web - The collection and connection of all internal networks together to form one huge world wide network for sharing information across all homes and organizations connected. Switches/Routers/Modems/Wireless Access Points - Devices on a computer network that perform various functions related to physically connecting computers together and routing traffic in between one computer and another. IP Address - Internet Protocol Address - A unique set of numbers assigned to every single device on a network that functions much like a street address on a house. It lets every other device on the network know where to find the device assigned that number. Server - A powerful computer that is used to serve some function on a computer network. Servers perform various functions, such as hosting web pages, hosting network printers, hosting file shares, handing out IP address, and much more. Clients are the typical Web user's Internet-connected devices (for example, your computer connected to your Wi-Fi, or your phone connected to your mobile network) and Web-accessing software available on those devices (usually a web browser like Firefox or Chrome). Servers are computers that store webpages, sites, or apps. When a client device wants to access a webpage, a copy of the webpage is downloaded from the server onto the client machine to be displayed in the user's web browser. https://developer.mozilla.org/en-us/docs/learn/getting_started_with_the_web/how_the_web_works DNS - Domain Name Service - A service, typically running from a server that matches and translates names to IP addresses. DHCP - Dynamic Host Configuration Protocol - A service, typically running from a server that assigns each network device its own unique IP address. Web Browser - A piece of software used to access websites. The most common browsers include IE (Internet Explorer), Chrome, Firefox, and Safari. URL - Uniform Resource Locator - Name used to point to a website. This is what you type in to get to a website or what pops up when you search for a website. A URL looks something like "www.website.com". https://turbofuture.com/internet/how-the-internet-works-in-a-nutshell

How the Internet Works You (the Client ) request a web page Signal travels through router to DNS (Domain Name System) server DNS server looks up name, translates name into IP address numbers IPv4 Older system approximately 4.3 billion unique addresses IPv6 Newer system - approximately 3.4 10 38 addresses (340 undecillion) A Server responds and retrieves requested info (a page, a graphic, a search result, media file, etc.) and returns result to Client

How the Internet Works

4,294,967,296 or (2 32 )

16 values > 16x16x16x16 or 16 4 65,536 numbers 65,536 8 = 3.4028236692093846346337460743177 x 10 38 8 groups @ 16-bit/group = 128-bit 2 128 or approximately 3.4 10 38 addresses (340 undecillion) The total number of atoms on the surface of Earth is estimated to be 1.26 10 34, which is much less than the total number of IPv6 addresses. So, we can easily assign an IPv6 address to every atom on the surface of the earth. Even then we would be left with enough to addresses to do more than another 100 Earths!

How the Internet Works Web domains File space on a server with a name Name is a set IP address, listed with DNS Can be sub-addressed to a particular directory Can have sub-domains E.g. : http://forums.mysite.com Actual address: http://www.mysite.com/forums Domain name companies do the setups with the DNS when you buy a domain name Buying a domain name requires you register the name, then point it somewhere Either a host space on a file server Or, a parking space (temp space provided by reg. co.)

Web Space Allocated area of a file server Linux, Unix, Windows, etc. Pre-set amount of space Designated by web server application Apache, Internet Info Services (IIS), etc. Access via TCP (Transmission Control Protocol) port Port 80 (also 81, 8080, and others) Can be controlled in various ways Server-side functions CGI, ASP Scripting (and many others) Support databases, languages, templates SQL, PHP Special Functions include web functions Photo gallery, forums, e-commerce, etc.

Cascading Style Sheets Put some style into your site

Cascading Style Sheets A set of rules that control how elements display Similar to Styles found in applications like InDesign Font parameters color, face, alignment, etc. Division parameters boarders, padding, internal space, etc. Link behaviours Colors, fonts, decorations, background, etc. Can also control certain behaviours CSS are THE principle manner of page control in Web 2.0! CSS is why CMS (Content Management Systems) can have THEMES that can be easily switched very quickly. CSS help designers rapidly develop the User Experience (UX) so that less time can be spent on strict coding. CSS properly done can also help increase SEO (Search Engine Optimization) rankings

Basic Style Sheets Cascading Style Sheets (CSS) Three ways of use: In-line : applied to a single item/section Internal : established in Head of document External : references separate style sheet Many properties and very powerful Used for consistent style of site Used for effects and controls Mouse-overs, etc. Used for integrated interactive features Form controls

Cascading Style Sheets Found IN HTML code two ways: Embedded (internal) <STYLE> </STYLE> tag in HEAD Referenced by using Class attribute <p class= copy >text</p> <p class= quote >text<p> Styles cascade; all <P> content would follow initial P style (sans-serif) Only those with class designation would use the other appearance attributes <style> p { font-family: sans-serif; p.copy { color: blueviolet; background-color: coral; p.quote { color: darkblue; background-color: #00336F; margin-left: 20px; margin-right: 20px; </style> Formatting [selector] { [property]: [value]; Note: curly braces! Note: colon Note: semi-colon

Cascading Style Sheets Found IN HTML code two ways: Embedded (in-line, within tags) style= PROPERTY: VALUE;" attribute within tag Formatted as <p style= PROPERTY: VALUE;">text</p> Example: <p style= color: blueviolet; >text</p> Note: style attribute Note: equals + quote Note: colon Note: end quote Note: semi-colon when a property:value is complete <h1 style= PROPERTY: VALUE;">text</h1> <span style= PROPERTY: VALUE;">text</span> <div style= PROPERTY: VALUE;">text</div> <body style= PROPERTY: VALUE;">text</span>

In-Line CSS Affects only the one line item But, can be used with most HTML tags Often used with <SPAN> or <DIV> tags SPAN/DIV are non-functioning (undesignated) container tags They do not do anything until affected by a class/style SPAN is an in-line container (one code item only) that is useful for adding special looks to unique items DIV is a block level container (whole sections) that designates an area of code for various styles, functions and actions.

CSS Example <HTML> <HEAD> <TITLE>My First CSS Page</TITLE> </HEAD> <BODY> <span style= font-family: san-serif; font-weight: bold; color: yellow; background-color: red; text-decoration: underline; >Hello world!</span> </BODY> </HTML> Hello World!

CSS for Fonts font-family font-size font-weight font-style font-variant line-height letter-spacing word-spacing text-align text-decoration text-indent text-transform vertical-align white-space Colours and Backgrounds color background-color background-image background-repeat background-position background-attachment

CSS Externally Linked A CSS file can be created as a text file with a.css extension MyStyle.css Formatted as an EMBEDDED style sheet, only it does NOT use the <STYLE> tags Contains content as styles that one or many web pages can reference When updating the CSS, all pages, when loaded in a browser, check and apply the latest version of the active style sheet The Format for linking a style sheet:

mystyle.css html { background: #e6e9e9; background-image: linear-gradient(270deg, rgb(230, 233, 233) 0%, rgb(216, 221, 221) 100%); body { background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.06); color: #545454; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; margin: 0 auto; max-width: 800px; padding: 2em 2em 4em; h1, h2, h3, h4, h5, h6 { color: #222; font-weight: 600; line-height: 1.3; h2 { margin-top: 1.3em; a { color: #0083e8; b, strong { font-weight: 600; samp { display: none; p.bodytext { color: blue;.mycontent { color: red; background-color: yellow;

Additional CSS usage tips Multiple Selectors using the same style can be separated by commas H1, p, span { Color: red; A named style (.something ) can apply to multiple selectors that reference that name when calling a class style.thisgreatstyle { Color: blue; Background-color: red; <p class= thisgreatstyle >text</p> <span class= thisgreatstyle >text</span>