Introduction to HTML Today we will look at:

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
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
CSS Digital Media: Communication and design 2007.
Today CSS HTML A project.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
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.
CSS CSS stands for Cascading Style Sheets Styles define how to display HTML elements External Style Sheets can save a lot of work External Style Sheets.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
กระบวนวิชา 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.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
4.01 Cascading Style Sheets
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
 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.
Introduction to HTML Today we will look at: Separating style and content The purpose of a text editor such as Notepad How web-pages are made Creating a.
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.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
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.
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Introduction to HTML Hypertext Mark-up Language. HTML HTML = Hypertext Mark-up Language Is just plain simple text marked up by “tags” You can create a.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
CSS.
CSS for Styling Text.
INTRO TO WEB DEVELOPMENT html
The Box Model in CSS Web Design – Sec 4-8
LAB Work 01 MBA 61062: E-Commerce
4.01 Cascading Style Sheets
An Introduction to Cascading Style Sheets
>> Introduction to CSS
CSS.
Cascading Style Sheets (CSS)
Cascading Style Sheets for layout
Introduction to Web programming
The Box Model in CSS Web Design – Sec 4-8
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
The Internet 10/13/11 The Box Model
Stylin’ with CSS.
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets
Training & Development
Johan Ng and Muhammad Hazzry
Stylin’ with CSS.
Stylin’ with CSS.
Web Programming and Design
Introduction to Cascading Style Sheets (CSS)
Introduction to Styling
Presentation transcript:

Introduction to HTML Today we will look at: Separating style and content The purpose of a text editor such as Notepad How web-pages are made Creating a web-page!

Style and Content Documents have content and style The content is the words on the page – what the document actually says The style is how it looks: Font – including bold, italic, etc. Colours – text and background Alignment – paragraphs, justification, etc. Inside the document, style and content are often stored separately, and in old word processors you could see the styles, e.g. <b>bold text<b>

Text Editor A text editor is a programming for writing text Unlike a word processor, such as Word, it only saves the content – there is no style information Because only the words are saved, the files tend to be much smaller than Word files There is a text editor in Windows called Notepad Files created in Notepad are very portable because they work on any computer regardless of what fonts are installed on it

How Web-Pages are Made Web-pages are just text files and can be created in Notepad The content and the styles are both typed in The content is just entered in the form of words The style is entered in things called tags, which are in triangular brackets, e.g. <p> for paragraph or <strong> for bold. Most tags come in pairs – one to turn the style on, and one to turn it off again, so you can have One <strong>bold</strong> word in the middle of a sentence.

Example Web-Page <html> <head> <title>My web page</title> </head> <body> <h1>This is a heading in heading style 1</h1> <p>This is my <strong>first</strong> web page!</p> </body> </html> Note that spaces in the HTML code don’t matter

The Order of Tags in HTML Styles are built up in layers around the text, like an onion! The styles must be turned off in the opposite order in which they were turned on. For example, if you wanted a paragraph with some bold, italic text in it, you would have <p><b><i>A bold, italic paragraph</i></b></p> <p> </p> <b> </b> <i> </i> Text

The Order of Tags If you use two styles at once it doesn’t matter what order they’re in <strong><em>text</em> </strong> is the same as <em><strong>text </strong></em>… Unless it doesn’t make sense, e.g. You can have a bold word in the middle of a paragraph: <p>A <strong>bold</strong> word</p>… But you can’t have a paragraph in the middle of a bold word!

Common HTML Elements <h1>Heading</h1> (there are also h2-h6) <p>paragraph</p> <img> (notice that there is no </img>) <div>A logical division, a bit like a textbox</div> Elements can be given: A unique id, e.g. <div id=“header”>...</div> A class, e.g. <p class=“warning”>...</p>

Cascading Style Sheets (CSS) CSS is used to style the content on your page Styles can be applied to: Element types, e.g. p {text-align: justify} IDs, e.g. #header {font-family: Arial, Helvetica, sans-serif; font-size: 24px} Classes, e.g. .warning {color: red} Styles can be added to the HTML tags, or separated into the header or even a separate file.

Margin or Padding? For example, if you were styling this heading... My Web Page padding The margin is outside the object – top, right, bottom and left can all be set separately The padding is the gap between the container and the contents – again, top, right, bottom and left can all be set separately Most properties have intuitive names and Expression Web suggests values for them