_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.

Slides:



Advertisements
Similar presentations
Introduction to HTML
Advertisements

Introduction to HTML & CSS
Dr. Alexandra I. Cristea XHTML.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
WeB application development
Website Design.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
ICS-FORTH 1 May 22, 2001 Christos Georgis The extensible markup language: An introduction to XML What is a XML document ? How do we check its validity.
MR.Mohammed Sharaf al Shareef
XHTML 16-Apr-17.
HTML Computing Concepts HTML - An Introduction 1.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
HTML BASIC
Week 1 8/10/2015iSTTS, Agenda Introduction to HTML Creating and publishing a Web page Validating a document Main HTML elements Block-level HTML.
Computer Sciences Department
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,
Basics of HTML.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Creating a Simple Page: HTML Overview
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Chapter 4 HTML. Objectives Explain how HTML/XHTML are used and describe the difference between them Interpret HTML code Explain how HTML Forms are used.
Creating a Basic Web Page
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
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 (HyperText Markup Language)
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
3 XHTML.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Chapter 4 (through page 110) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
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.
CSS Basic (cascading style sheets)
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
WEB APPLICATION DEVELOPMENT For More visit:
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
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.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
Introduction to HTML Year 8. What is HTML O Hyper Text Mark-up Language O The language that all the elements of a web page are written in. O It describes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
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.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
INT222 – Internet Fundamentals
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
Introduction to HTML.
Introduction to XHTML.
WEBSITE DESIGN Chp 1
XHTML
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
XHTML 7-May-19.
XHTML 29-May-19.
Presentation transcript:

_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02

What is HTML? HTML stands for Hyper Text Markup Language An HTML file is a text file containing small markup tags The markup tags tell the Web browser how to display the page An HTML file must have an.htm or.html file extension. An HTML file can be created using a simple text editor Module 1: Introduction to digital media: Day 02 Sami Niemelä |

Basic html file structure Title of page Hello world! This text is bold Module 1: Introduction to digital media: Sami Niemelä |

Tags + elements HTML tags are used to mark-up HTML elements HTML tags are surrounded by the angle brackets HTML tags come in pairs like and The first tag in a pair is the start tag, the second tag is the end tag. These have to be nested properly. The text between the start and end tags is the element content HTML tags are in general not case sensitive, but HTML 4.01 & XHTML specs require writing lowercase tags. Module 1: Introduction to digital media: Sami Niemelä |

Tags & attributes HTML tags can have attributes that display aditional information foo bar Attributes can for example define a value to an element, identify it Module 1: Introduction to digital media: Sami Niemelä |

Basic HTML elements Required document elements:,, Headings:... Paragraph: Line break Comment: HTML 4.01 Spec at Module 1: Introduction to digital media: Sami Niemelä |

Text formatting Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text Module 1: Introduction to digital media: Sami Niemelä |

Hyperlinking Click ”target” - attribute defines where the link points target=”_blank” target=”_top” target=”_self” target=”frameName” etc Module 1: Introduction to digital media: Sami Niemelä |

Hyperlinking cont’d Linking an image: Anchor tag... Go to the top Module 1: Introduction to digital media: Sami Niemelä |

Frames Can be used to display more than one page at the time Can cause usability & accesibility issues Always remember -content Module 1: Introduction to digital media: Sami Niemelä |

Frames Your browser does not handle frames! Enter the content here Module 1: Introduction to digital media: Sami Niemelä |

Tables Designed to diplay tabular data but are commonly used also as a layout tool Module 1: Introduction to digital media: Sami Niemelä |

Tables cont’d Problem: table cells with no content are not displayed very well in most browsers. Solution: pixel.gif or Useful attributes: cellpadding cellspacing border, width, height Module 1: Introduction to digital media: Sami Niemelä |

Cascading Style Sheets Styles define how to display HTML elements Styles are normally stored in Style Sheets Styles were added to HTML 4.0 to solve a problem; separating the diplay from the content itself External Style Sheets can save you a lot of work External Style Sheets are stored in CSS files Module 1: Introduction to digital media: Sami Niemelä |

CSS Cont’d Styles define how to display HTML elements Styles are normally stored in Style Sheets Styles were added to HTML 4.0 to solve a problem; separating the display from the content itself Usign CSS will save you a lot of work External Style Sheets are stored in CSS files Module 1: Introduction to digital media: Sami Niemelä |

CSS Syntax The CSS syntax is made up of three parts: a selector, a property and a value: selector {property: value} p { text-align:center; color:red } Module 1: Introduction to digital media: Sami Niemelä |

CSS Syntax Grouping: selector1, selector2, selector3 {property: value} h1,h2,h3,h4,h5,h6 { color: green } Module 1: Introduction to digital media: Sami Niemelä |

CSS Syntax Class selector selector class {property: value}.class {property: value} p.right {text-align: right} p.center {text-align: center}... foo! bar! Module 1: Introduction to digital media: Sami Niemelä |

What is XHTML? EXtensible HyperText Markup Language is aimed to replace HTML almost identical to HTML 4.01, exceptis a stricter and cleaner version of HTML XHTML is HTML defined as an XML application XHTML 1.0 became an official W3C Recommendation January 26, Module 1: Introduction to digital media: Sami Niemelä |

XHTML vs HTML? XML is a markup language where everything has to be marked up correctly, which results in "well-formed" documents. XML was designed to describe data where HTML was designed to display data. XHTML combines the strenghts of XML & HTML while staying accesibl to current browsers Module 1: Introduction to digital media: Sami Niemelä |

XHTML vs HTML? The Most Important Differences: XHTML elements must be properly nested XHTML documents must be well-formed Tag names must be in lowercase All XHTML elements must be closed, including the empty elements like Module 1: Introduction to digital media: Sami Niemelä |

XHTML vs HTML? Attribute names must be in lower case Attribute values must be quoted Attribute minimization is forbidden The id attribute replaces the name attribute The XHTML DTD defines mandatory elements Module 1: Introduction to digital media: Sami Niemelä |