HTML Character Entities. Character Entities Some characters have a special meaning in HTML, like the less than sign (<) that defines the start of an HTML.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
Basic HTML Tags.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
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.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
HTML Primer Basics of HTML for those who haven’t used it before.
Marking Up With Html: A Hypertext Markup Language Primer
Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University.
Week 1 8/10/2015iSTTS, Agenda Introduction to HTML Creating and publishing a Web page Validating a document Main HTML elements Block-level HTML.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
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.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Week 1.  Phillip Chee   Ext.1214 
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language)  XML is a markup language for creating documents containing structured information.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
Chapter 2 Introduction to HTML. Learning Outcomes Describe Hypertext Markup Language (HTML). Introduce HTML syntax. Recognize basic structure of HTML:
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
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.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
Web Design (3) HTML tags. Back to your web design ! Open Brackets Click on the drop down box on the left. Last time, you clicked on ‘Open Folder’ but.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  A markup language designed for the creation of web pages and other information viewable.
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
HTML Darby Tien-Hao Chang Department of Electrical Engineering National Cheng Kung University.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
XML 2 Prepared by / Nael Alian Uinverity of Palestine Re. 1.
HTML— More Tags, Formatting, and Lists. Formatting Tags  Bold  Italics  Underline  Big text  Small text  Subscript (H 2 O)  Superscript (10 3 )
HTML Hyper Text Markup Language. Create TABLE in an HTML Tables are defined with the tag. A table is divided into rows (with the tag), and each row is.
HTML Basics. HTML Introduction Stands for HyperText Markup Language. HTML files are plain text files with mark ups. Some characteristics of HTML: –No.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
XML Basics A brief introduction to XML in general 1XML Basics.
Suzanne Sultan1 Line Breaks, Paragraphs, lists Lab3.
Introduction to XML February 07, From HTML to XML As mentioned in previous classes, if you know HTML, then you already know XML… really! In this.
IDK0040 Võrgurakendused I harjutus 01: Introduction Deniss Kumlander.
Special Characters. Special Characters in XHTML: Some common characters cannot be written directly into our code as the XHTML processor (browser) would.
Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters.
CSS with XHTML Please use speaker notes for additional information!
IDK0040 Võrgurakendused I harjutus 02: Formatting Deniss Kumlander.
Well Formed XML The basics. A Simple XML Document Smith Alice.
Week 7: HTML Basics HNDIT11062 – Web Development.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
COMP303 - Internet Based Programming
HTML tags and attributes By: Dennis Champagne. List of tags.
DESIGNING A WEB PAGE Introducing the… &TAGS.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Chapter 13 Security Methods Part 2. xss.php Script 13.4 on page 419 ss.php
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
CITE303 - Internet Based Programming Lecture notes: Week 1 Instructor:Dr. Tolgay KARANFİLLER.
XP Including Comments in an HTML Document On a new blank line in an HTML document, type the start code for a comment:
XML intro. What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display.
HTML TEXT.
N100 Building a Simple Web Page
Introduction to HTML.
Client-Side Internet and Web Programming
Signature: Microsoft Word 2003
Html.
Creating Web Documents
Presentation transcript:

HTML Character Entities

Character Entities Some characters have a special meaning in HTML, like the less than sign (<) that defines the start of an HTML tag. If we want the browser to actually display these characters we must insert character entities in the HTML source. Some characters have a special meaning in HTML, like the less than sign (<) that defines the start of an HTML tag. If we want the browser to actually display these characters we must insert character entities in the HTML source.

Parts of a Character Entity A character entity has three parts: an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;). A character entity has three parts: an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;). To display a less than sign in an HTML document we must write: < or < To display a less than sign in an HTML document we must write: < or <

Advantages vs. Disadvantages The advantage of using a name instead of a number is that a name is easier to remember. The disadvantage is that not all browsers support the newest entity names, while the support for entity numbers is very good in almost all browsers. The advantage of using a name instead of a number is that a name is easier to remember. The disadvantage is that not all browsers support the newest entity names, while the support for entity numbers is very good in almost all browsers. Note that the entities are case sensitive. Note that the entities are case sensitive.

Non-breaking Space The most common character entity in HTML is the non-breaking space. The most common character entity in HTML is the non-breaking space. Normally HTML will truncate spaces in your text. If you write 10 spaces in your text HTML will remove 9 of them. To add spaces to your text, use the character entity. Normally HTML will truncate spaces in your text. If you write 10 spaces in your text HTML will remove 9 of them. To add spaces to your text, use the character entity.

Common Character Entities ResultDescription Entity Name Entity Num non-breaking space &npsp;  < less than << > greater than >> &ampersand&& “ quotation mark "" ‘apostrophe&'