Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,

Slides:



Advertisements
Similar presentations
Farhan Nisar University of Peshawar
Advertisements

Introduction to HTML & CSS
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Computer Applications II.  A Style Sheet is a web page development tool that allows the developer to make global changes to a web page (or web site)
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
WeB application development
Website Design.
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.
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
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.
กระบวนวิชา 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.
MR.Mohammed Sharaf al Shareef
1 Creating Web Pages Part 3. 2 CASCADING STYLE SHEETS (CSS): What exactly are they? Set of rules that define how a web browser should display an HTML.
4.01 Cascading Style Sheets
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
HTML BASIC
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Computer Sciences Department
Basics of HTML.
IT Introduction to Website Development Welcome!
CSS Style Rules Guang Tong, Zhan L;lo’p[ Css Style Rule Guang Tong Zhan Three ways to insert CSS 1 External style sheet 2 Internal style sheet 3 Inline.
DAT602 Database Application Development Lecture 14 HTML.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
CS 299 – Web Programming and Design Introduction to HTML.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
HTML Structure & syntax
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
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.
To Proudly supported by ferrycake.com. We will be printing Cash for your Community tokens every week in the Carmarthen Journal and Llanelli Star. The.
CSS Netcentric. What is CSS O CSS stands for Cascading Style Sheets O Styles define how to display HTML elements O Styles were added to HTML 4.0 to solve.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
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.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
INTRODUCTION TO CSS. OBJECTIVES: D EFINE WHAT CSS IS. K NOW THE HISTORY OF CSS. K NOW THE REASON WHY CSS IS USED. CSS SYNTAX. CSS ID AND CLASS.
CSS Basic (cascading style sheets)
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
IS1825: Developing Multimedia Applications for Business Lecture 1: Introduction to CSS Rob Gleasure
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
DIV, Span, CSS.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
Cascading Style Sheets CSS. Source W3Schools
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Introduction To CSS by: Alexandra Vlachakis Sandy Creek High School, Fayette County Schools Content and Resources Used With Permission: Interact With Web.
CSS Syntax. Syntax The CSS syntax is made up of three parts: a selector, a property and a value: selector {property: value}
1 CSS محمد احمدی نیا 2 Of 21 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements 
objectives Learning WEB TECHNOLOGIES. Understanding Salient features of WEB TECHNOLOGIES. Designing of WEB PAGES on your own. Development of WEB APPLICATIONS.
CSS DHS Web Design. Location Between the & Start with – End with –
Css lectures. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
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.
Fall 2016 CSULA Saloni Chacha
Cascading Style Sheet.
Cascading Style Sheets (CSS)
CASCADING STYLE SHEET CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets - Building a stylesheet
What are Cascading Stylesheets (CSS)?
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Cascading Style Sheets - Building a stylesheet
Presentation transcript:

Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it is a markup language  A markup language is a set of markup tags  HTML uses markup tags to describe web pages

Review HTML  HTML Tags HTML markup tags are usually called HTML tags  HTML tags are keywords surrounded by angle brackets like  HTML tags normally come in pairs like and  The first tag in a pair is the start tag, the second tag is the end tag  Start and end tags are also called opening tags and closing tags

Review HTML  HTML Documents = Web Pages  HTML documents describe web pages  HTML documents contain HTML tags and plain text  HTML documents are also called web pages  The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page:

Review HTML  My First Heading My first paragraph  Example Explained  The text between and describes the web page  The text between and is the visible page content  The text between and is displayed as a heading  The text between and is displayed as a paragraph

Basic HTML  HTML Headings HTML headings are defined with the to tags. This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6

Basic HTML  HTML Paragraphs HTML paragraphs are defined with the tag. This is a paragraph.

Basic HTML  HTML Links HTML links are defined with the tag. This is a link This is a link

HTML ELEMENTS  An HTML element is everything from the start tag to the end tag:  An HTML element starts with a start tag / opening tag  An HTML element ends with an end tag / closing tag  The element content is everything between the start and the end tag  Some HTML elements have empty content  Empty elements are closed in the start tag  Most HTML elements can have attributes Start tagContentEnd tag This is a paragraph This is a link

HTML Attributes  HTML elements can have attributes  Attributes provide additional information about the element  Attributes are always specified in the start tag  Attributes come in name/value pairs like: name="value“  Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.  Attribute Example  HTML links are defined with the tag. The link address is provided as an attribute:  This is a link

HTML layouts  Table: One very common practice with HTML, is to use HTML tables to format the layout of an HTML page. This is some text. This is some text. This is some text. This is some text. This is some text. Another text. Another text. Another text. Another text. Another text. Another text. Another text.

HTML layouts  Frame: you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.  The disadvantages of using frames are:  The web developer must keep track of more HTML documents  It is difficult to print the entire page

HTML layouts

HTML layouts  The Frameset Tag  The tag defines how to divide the window into frames  Each frameset defines a set of rows or columns  The values of the rows/columns indicate the amount of screen area each row/column will occupy

HTML layouts  The Frame Tag  The tag defines what HTML document to put into each frame   The first column is set to 25% of the width of the browser window. The HTML document "frame_a.htm" is put into the first column.  The second column is set to 75% of the width of the browser window. the HTML document "frame_b.htm" is put into the second column.

HTML layouts  Font: you can specify both the size and the type of the browser output. This is a paragraph. This is another paragraph.

HTML layouts  Font Attributes AttributeExamplePurpose size="number"size="2"Defines the font size size="+number"size="+1"Increases the font size size="-number"size="-1"Decreases the font size face="face-name"face="Times"Defines the font-name color="color-value"color="#eeff00"Defines the font color color="color-name"color="red"Defines the font color

HTML layouts  The Tag Should NOT be Used  The tag is deprecated in the latest versions of HTML (HTML 4 and XHTML).  The World Wide Web Consortium (W3C) has removed the tag from its recommendations.  In future versions of HTML, style sheets (CSS) will be used to define the layout and display properties of HTML elements.

HTML 4.0  HTML 3.2 Was Very Wrong !  The original HTML was never intended to contain tags for formatting a document. HTML tags were intended to define the content of the document like:  This is a paragraph  This is a heading  When tags like and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large web sites where fonts and color information had to be added to every single Web page, became a long, expensive and unduly painful process.

HTML 4.0  In HTML 4.0 all formatting can be removed from the HTML document and stored in a separate style sheet.  Because HTML 4.0 separates the presentation from the document structure, we have what we always needed: Total control of presentation layout without messing up the document content.

HTML 4.0  What Should You do About it ?  Do not use presentation attributes inside your HTML tags if you can avoid it. Start using styles!  Do not use deprecated tags. Visit our complete HTML 4.01 Reference to see which tags and attributes that are deprecated.

CSS  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added to HTML 4.0 to solve a problem  External Style Sheets can save a lot of work  External Style Sheets are stored in CSS files  With HTML 4.0 all formatting can be moved out of the HTML document and into a separate style sheet.

CSS  CSS syntax is made up of three parts: a selector, a property and a value  The selector is normally the HTML element/tag you wish to define  the property is the attribute you wish to change, and each property can take a value.  The property and value are separated by a colon, and surrounded by curly braces  Ex.body {color:black} p {font-family:"sans serif"} p {text-align:center;color:red} selector {property:value}

CSS  Grouping  You can group selectors. Separate each selector with a comma. In the example below we have grouped all the header elements. All header elements will be displayed in green text color: h1,h2,h3,h4,h5,h6 { color:green }

CSS  Class selector: you can define different styles for the same type of HTML element.  You have to use the class attribute in your HTML document:  You can also omit the tag name in the selector to define a style that will be used by all HTML elements that have a certain class. In the example below, all HTML elements with class="center" will be center-aligned: p.right {text-align:right} p.center {text-align:center} This paragraph will be right-aligned. This paragraph will be center-aligned..center {text-align:center} This heading will be center- aligned This paragraph will also be center-aligned.

CSS  Add Styles to Elements with Particular Attributes  You can also apply styles to HTML elements with particular attributes.  The style rule below will match all input elements that have a type attribute with a value of "text" input[type="text"] {background-color:blue}

CSS  The id Selector  You can also define styles for HTML elements with the id selector. The id selector is defined as a #.  The style rule below will match the element that has an id attribute with a value of "green"  The style rule below will match the p element that has an id with a value of "para1" #green {color:green} p#para1 { text-align:center; color:red }

CSS #para1 { text-align:center; color:red } Hello World! This paragraph is not affected by the style.

CSS  CSS Comments  Comments are used to explain your code, and may help you when you edit the source code at a later date. A comment will be ignored by browsers. A CSS comment begins with "/*", and ends with "*/", like this: /*This is a comment*/ p { text-align:center; /*This is another comment*/ color:black; font-family:arial }

CSS  External Style sheet  An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file.  Each page must link to the style sheet using the tag. The tag goes inside the head section

CSS  An external style sheet can be written in any text editor. The file should not contain any html tags.  Your style sheet should be saved with a.css extension.  An example of a style sheet file is shown below: hr {color:sienna} p {margin-left:20px} body {background- image:url("images/back40.gif")}

CSS  Inline Styles  An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section of an HTML page, by using the tag, like this: hr {color:sienna} p {margin-left:20px} body {background- image:url("images/back40.gif")}

Exercise: Design your web with CSS  Study CSS from web page:  Study the CSS for different style related to each component of the web page. You can use Firebug as a tool to explore the website.