ITP 104.  Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Basic Principles for Web Design Source:
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
HTML popo.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Introduction to HTML Lists, Images, and Links. Before We Begin Save another file in Notepad Save another file in Notepad Open your HTML, then do File>Save.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Marking Up With Html: A Hypertext Markup Language Primer
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
4.01 Cascading Style Sheets
Using color and fonts in HTML and XHTML Please use speaker notes for additional information!
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
Images in HTML PowerPoint How images are used in HTML.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
CSS: Cascading Style Sheets. 2 What are Style Sheets A style sheet is a mechanism that allows to specify how HTML (/XHTML/XML) pages should look The style.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Using Cascading Style Sheet As you create more web pages, you may wish to impose a consistent look for all of your web pages or for group of related pages.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 7.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
More CSS.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
CSS with XHTML Please use speaker notes for additional information!
1 Working with Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size,
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Cascading Style Sheets Web Design Fairport High School.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CSS Cascading Style Sheets *referenced from
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Cascading Style Sheets
HTML Basics.
Cascading Style Sheets Color and Font Properties
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

ITP 104

 Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html inside the itp104 directory

 Tags  Lowercase  First is name of the tag ▪ If there are attributes, place a space after the name ▪ Have = sign encased in “” ▪ i.e attribute=“value” ▪ i.e. width=“90%”  Mostly has start/end tag ▪ Some cases only have start with a /> at the end.

 Styles  Generally used to control/modify the appreance of text and objects  The syntax is: ▪ property: value; ▪ i.e. width: 200px;  Can place styles in most html tags  We’ll get into more styles later on

 Always close your tags  in the case of non-closing tags like img, hr and br give them internal closes. ▪ for non-closing tags make sure you give them internal closes, so you type not  i.e. if you open a tag, make sure at some point you have closed it with...  Don't violate the "nest order" of tags.  If you open up four tags, make sure you close them in the opposite order you opened them.  i.e. if put a b then i then u... then you would need to first close /u then /i then /b

 Required attributes:  While most attributes are optional on html tags, some are not.  For instance, on the anchor (a) tag, you MUST have at least one attribute (generally href).  On the img tag, there is not an image without at least a src attribute. Etc.  Recommended attributes:  Some tags have attributes that should always be scoped out for good practice.  The most prominent example of this is the img tag, which should always have its width, height and alt attributes specified.

 Attribute values in quotes:  when you set attributes of tags (such as bgcolor="blue" or src="dent.jpg"), it is safest to ALWAYS surround the value for the attribute in quotes.  While there are some attribute values that do not require quotes, it is safest to just put them all inside the marks.  In html you can use single or double quotes  We will learn other "good practices" as the semester goes on.

 The img tag displays an image file on a web page. It's core properties are:  src html attribute: ▪ the filename or path + filename for the image (such as src="mypic.gif")  alt html attribute: ▪ the "alternate" text for the image  width style property: ▪ how wide (in pixels) the image should be displayed  height style property: ▪ how tall (in pixels) the image should be displayed  border-width style property: ▪ the width (in pixels) of the border around the image, with "0" being "no border”  So typical image tag might be

 HTML/CSS Styles have many components to them, including stylesheets, which we will get into later.  For now, think of styles as formatting attributes that you can "turn on" for an object or section of the page.

 text properties such as its color, font face, size, etc., as well as to special formatting such as transforming text to ALL CAPS or setting the leading or line spacing for a block are  margin and spacing properties of blocks  background color and image properties of blocks  other, specialized properties such as the bullet styles of lists

 For now we are only going to explore setting style properties inside an html tag.  Later in the semester we will get into stylesheets and named styles, and redefing style properties of an html object type.

 For formatting sections of text, you will generally put style blocks into paragraph (p) or span (span) tag.  Paragraph tags are used to defined a paragraph of text, span tags are used to format any amount of text  from one letter or word to multiple paragraphs.  The main difference for now is the paragraphs space themselves out, and that you can use the align attribute of a p tag to make the paragraph right or center aligned.

 To define one or more styles you open up a "style" attribute of an html tag, then set the property to one or more style:value settings.  For instance, would start a block where all of the text is red.  If you want to include more than one setting at a time, you separate them with semi-colons.  So would start a block of text that is purple and 24 point in size.

 Some common style properties you will use a lot are:  font-size ▪ typically in measurements such as 18pt or 3in  color ▪ text color  background-color ▪ of an object, from the body to a paragraph to a span tag, ▪ named colors like green or hex ones like #4499aa  text-decoration ▪ underline or none -- often used to REMOVE lines from hyperlinks/a  line-height ▪ height of a line, plain number like 2 is line spacing, or measurements such as 18pt  text-alignment ▪ right, left, center  background-image ▪ format uses a url object, such as background-image:url(mypic.gif)

 Some basic tips about assigning style properties:  Whereas in html we set values with equal signs, like border="0", in styles you assign values with colons, such as font-size:24pt  Whereas in html we "quote" attribute values, in styles you (usually) do not put quotes around the "value" for an attribute.

 Some basic tips about assigning style properties:  When you close the tag that has the style settings, all of the styles on that tag are cancelled. So for instance, &tl;span style="color:blue;font-weight:bold"> create blue and bold text... and closing turns off both the blue text switch and the boldness.  You can nest style commands. ▪ So, for instance, maybe you start your page with a so that all text on the page is in the Verdana font. ▪ But then later you start a to create a short block where the background color behind the text is yellow. ▪ The first instruction (font-family) is still active when the background- color is on. And when you just close that turns off the most RECENT block (the background-color). It will take a second to turn off that first instruction (font-family).

 There are a LOT of style properties you can play with.  Some effect text, some will only effect images, and some will effect objects we have not gotten to yet.  To start out, take a look a the "Styles Resource" page and try playing around with setting some of them through span tag.  tml tml 