Math 10126 Further HTML and Web design Gavin Shaddick www.bath.ac.uk/~masgs.

Slides:



Advertisements
Similar presentations
HyperText Markup Language (HTML) – Part 2 Laboratory of Intelligent Networks KUT Youn-Hee Han from
Advertisements

MA10126 Further HTML and Web design Gavin Shaddick
HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Cascading Style Sheets
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
Tutorial 3 – Designing a Web Page Working with Color & Graphics Mrs. Wilson.
HTML IFRAMES, COLORS, ENTITIES, URL. HTML IFRAMES An iframe is used to display a web page within a web page. Apep Kamaludin, MT. |
HTML Computing Concepts HTML - An Introduction 1.
Tutorial 3 Designing a Web Page.
Workshop: CSS-Part I Cascading Style Sheets add style to your HTML web pages.
AdvWeb-1/9 DePaul University SNL 262 Web Page Design Chapt 11 - Custom Background And Colors Instructor: David A. Lash.
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.
HTML BASIC
Computer Science 101 Number Systems. Humans Decimal Numbers (base 10) Decimal Numbers (base 10) Sign-Magnitude (-324) Sign-Magnitude (-324) Decimal Fractions.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Colour & Image in HTML Wah Yan College (Hong Kong) Mr. Li C.P.
1 Introduction to HTML. 2  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language  of Web Pages on the World Wide Web. HTML is a.
WEB DESIGN 1 THEORY : 30 PRACTICE : 60 Lecturer : Phạm Sĩ Quan Phone : Blog:
Computer Sciences Department
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
CompSci Today’s topics Networks & the Internet Basic HTML ä The basis for web pages ä “Almost” programming Upcoming ä Connections ä Algorithms.
Creating Web Pages with Links, Images, and Formatted Text.
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
HTML H yper T ext M arkup L anguage. HTML HTML is NOT case sensitive However, proper coding etiquette if for all to be in ALL CAPS and for text to be.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
Kevin Murphy Web Color Basics Masters Project CS 490.
Unit 1 — HTML BASICS Lesson 2 — HTML Organization Techniques.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
Getting Started with HTML Please use speaker notes for additional information!
G053 Lecture 12 Introduction To HTML Mr C Johnston ICT Teacher
Applying Color in CSS Web Design – Sec 4-5 Part or all of this lesson was adapted from the University of Washington’s “ Web Design & Development I ” Course.
HTML Basic IST2101. Keep In Mind Programming can be time consuming. Plan ahead!
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
 To specify blue as the background color for a page, put bgcolor=“blue” inside the tag. Of course, you can use many colors other than blue. You can choose.
The Teacher Computing HTML HyperText Markup Language.
12/20/20151 Color Fall, 2010 Modified by Linda Kenney 10/26/10.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
HEXADECIMAL NUMBERS.
HTML & Color How to Use Color  Backgrounds-  Usually a light color is best  Should have a color based on a theme or plan  Can have a dark.
CS543: WEB APPLICATION PROGRAMMING Lab 1: HTML tags & SW installation Computer Science Department.
HTML BASIC IST 210: Organization of Data IST210 1.
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
G046 Lecture 03 Introduction To HTML Mr C Johnston ICT Teacher
CSS Cascading Style Sheets *referenced from
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML Basic IST 210: Organization of Data IST2101.
Basic Web Publishing M. Scott Gartner 7/15/98.
Basic HTML Tags Ryan Frazier April 30,2004 CSC113.
Chapter 13 Colors & backgrounds.
Introduction to HTML.
Cascading Style Sheets
Introduction to HTML II
15.2 More Basic HTML & CSS.
Stylin’ with CSS.
More Basic HTML 2 assignments: 1—complete the worksheet
Programming for webpages
Stylin’ with CSS.
Stylin’ with CSS.
Presentation transcript:

Math Further HTML and Web design Gavin Shaddick

Backgrounds Originally the BODY tag had no attributes Backgrounds were introduced While a good background can make a page look really great, there are few things worse than an obnoxious background You can specify two kinds of background using the BODY tag. The first kind is a solid color; the second, a tiled image.

BGCOLOR If all you want for a page's background is a solid colour, then you can specify it using the attribute BGCOLOR The value of bgcolor is a hexadecimal number that represents the color you want. –e.g. –where xxxxxx is a six-digit hexadecimal number such as C0A280. –e.g. gives a medium tan backgrounde.g. gives a medium tan background

Hexidecimal (colours) The hexadecimal number breaks down into three pairs –the first pair of digits give the red value –the second pair the green value –the last pair the blue value Each pair can go from 00 to FF, which in regular base-ten numbering works out to the range

More on hexidecimal (colours) C0--> 75% red A2--> 63% green 80--> 50% blue How do you get the percentages ? –Red: C0 hex --> 192 decimal 192/256 = 0.75 (in other words, 75%) In order to figure out the hexadecimal value of a given percentage, simply divide it by 100, multiply that by 256, and convert the result to hexadecimal notation. As an example: –55% red would be 55/100 = * 256 = (round to 141) 141 decimal --> 8D hex

Different colours Different computers/browsers can display a given color code differently. This is true for all graphics, but it can be more noticeable with a solid-color background. –the code representing brown on a Macintosh will show PC users a color other than brown, and vice versa Keep in mind is that what you see on your screen won't necessarily be what others see on theirs.

Thankfully - an easier way Sixteen colors can be named, rather than using hexadecimal numbers. – Black = "#000000" Maroon = "#800000" –Green = "#008000" »Navy = "#000080" »Silver = "#C0C0C0" »Red = "#FF0000" »Lime = "#00FF00" »Blue = "#0000FF" »Gray = "#808080" »Purple = "#800080" »Olive = "#808000" »Teal = "#008080" »White = "#FFFFFF" »Fuchsia = "#FF00FF" »Yellow = "#FFFF00" »Aqua = "#00FFFF"

The easier way Therefore, to set the background colour of a document to white, you would use the BODY tag: – You do not preface a named colour with a pound- sign. Why even bother with the hexadecimal notation? –not every browser will recognize the same named colors as every other browser –you can directly specify the exact colour you want

Background What if you want something fancier than a solid colour ? This can be accomplished using an image of a single tile, which the browser will repeat indefinitely

Zen like background For example, this image could be used as a background Inserting the location of the file containing the figure into the BODY tag – Other examples,

Colouring your text Using BODY attributes, it is possible to set –the color values of ordinary text (using text) – the text of hyperlinks (link) – the text of already visited links (vlink) –the color which the browser uses to highlight a link when it's selected by the user (alink, which stands for "activated link").

A world with lots of nice colours To set up a page with a black background, white text, and light blue links, the markup would be: – or <BODY bgcolor="#000000" text="#FFFFFF" link="#90C8DB"> or <BODY bgcolor="black" text="white" link="cyan">

Or is it ? Truly ugly pages are now within anyone's reach.Truly ugly pages are now within anyone's reach. Suppose you set a page up so that all the links, both active and visited, are colored black, the same as the normal text. –Therefore, when a user reads the page, they have no way of seeing at a glance where the links are.

Nice colour scheme mate! Colours should make the page more appealing and easier to read, not the opposite It is best to pick an image which is either mostly light, or mostly dark, and set the text colour accordinglyIt is best to pick an image which is either mostly light, or mostly dark, and set the text colour accordingly Remember that some users may have their browsers set to use their own colours and ignore yours.

Font tags Using the FONT tag, one can alter the colour of text, or the size, or both at once. This tag could also be used to change the actual font The BODY attributes work on the whole page, this is used for individual words / sentences Use the... and the colour attribute

Colours in font tags If we want word "maroon" to be colored maroon in the following sentence: –“References to Silsby&Clarke are in maroon. “ –References to Silsby&Clarke are in maroon. Colours may also be specified using the triple-hex notation The colour you specify in a FONT tag overrides any colours you may have set in the BODY tag of the document

Size isn’t everything You can also change the size of the text using the FONT tag. This is done using the size attribute. The values of size are the numbers 1 through 7, and also relative values such as +2 or -1. The default size is 3 – Small – Bigger - Wahoo! –You may notice that the scale for FONT sizes is exactly backwards from headings, where the most important (and, therefore, usually the largest) heading is H1

Sub and superscripts You may want to use sub and superscripts This is achieved using the SUB and SUP tags –Markup: H 2 SO 4 + CO 2 = ? –Result: H 2 SO 4 + CO 2 = ?

More information on HTML See the BUCS web information webpage – An introduction to HTML (with many of the examples seen here) – Very comprehensive site with a great name

Easy loading Remember that the more images and fancy backgrounds you use, the longer it will take your pages to load Not everybody is logging on from a network, can be very slow Try not to use browser specific ‘plug-ins’ –Extra pieces of software required to perform animation, effects etc….Extra pieces of software required to perform animation, effects etc….