CSE 3. Marking Up with HTML. Tags for Bold, Italic, and underline. Structuring Documents. An HTML Web Page File



Similar documents
Introduction to XHTML. 2010, Robert K. Moniot 1

ICT 6012: Web Programming

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

So we're set? Have your text-editor ready. Be sure you use NotePad, NOT Word or even WordPad. Great, let's get going.

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

HTML, CSS, XML, and XSL

Creating HTML authored webpages using a text editor

Advanced Drupal Features and Techniques

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.

Website Planning Checklist

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Introduction to Web Design Curriculum Sample

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

HTML. A computer network is a collection of computers linked through cables or wireless means.

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

CS412 Interactive Lab Creating a Simple Web Form

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Caldes CM12: Content Management Software Introduction v1.9

HTML & XHTML Tag Quick Reference

Accessibility in e-learning. Accessible Content Authoring Practices

About webpage creation

Urban Planet Website Content Management System. Step-by-Step Instructions

How to Manage Your Eservice Center Knowledge Base

With tags you can create italic or bold characters, and can control the color and size of the lettering.

Using Adobe Dreamweaver CS4 (10.0)

Web Design with Dreamweaver Lesson 4 Handout

QUESTION BANK COMPUTER SCIENCE. Class VIII LESSON-1 INTRODUCTION TO MS ACCESS

ICE: HTML, CSS, and Validation

Creating a Resume Webpage with

7 th Grade Web Design Name: Project 1 Rubric Personal Web Page

04 Links & Images. 1 The Anchor Tag. 1.1 Hyperlinks

WebCT 4.x: HTML Editor

Lesson Review Answers

Creating Web Pages with Microsoft FrontPage

How to Edit Your Website

Basic Website Maintenance Tutorial*

Lab 1.3 Basic HTML. Vocabulary. Discussion and Procedure

The Web Web page Links 16-3

HTML TIPS FOR DESIGNING

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

BLACKBOARD 9.1: Text Editor

HTML Tables. IT 3203 Introduction to Web Development

The McGill Knowledge Base. Last Updated: August 19, 2014

Formatting Text in Blackboard

WYSIWYG Editor in Detail

Contents. Downloading the Data Files Centering Page Elements... 6

HTML Forms and CONTROLS

Campaign Guidelines and Best Practices

Creating your personal website. Installing necessary programs Creating a website Publishing a website

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

HTML Basics(w3schools.com, 2013)

Using Style Sheets for Consistency

COMMON CUSTOMIZATIONS

Interaction between browser and server. HTML (Hyper Text Markup Language)

Introduction to Web Design Final Review - Farris

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Web Development 1 A4 Project Description Web Architecture

General Electric Foundation Computer Center. FrontPage 2003: The Basics

Web Design Module Outline

Short notes on webpage programming languages

IAS Web Development using Dreamweaver CS4

Getting Started with KompoZer

Cisco Adaptive Security Appliance (ASA) Web VPN Portal Customization: Solution Brief

Creating an HTML Document Using Macromedia Dreamweaver

Basic tutorial for Dreamweaver CS5

Tagging an Existing PDF in Adobe Acrobat 8

MS Word 2007 practical notes

CIS 467/602-01: Data Visualization

Introduction to HTML

Mastering the JangoMail EditLive HTML Editor

Cut-to-the-Chase Series Web Foundations. HTML Assignment. By Eric Matthews Visit us at:

Making Content Editable. Create re-usable templates with total control over the sections you can (and more importantly can't) change.

How to code, test, and validate a web page

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

To change title of module, click on settings

ANATOMY OF A WEB PAGE...

BlueHornet Whitepaper

Website Development Komodo Editor and HTML Intro

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

Transcription:

CSE 3 Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer Fluency with Information Technology Third Edition by Lawrence Snyder 1-1 4-1 Marking Up with HTML Tags for Bold, Italic, and underline Tags describe how a web page should look Formatting with Tags: Words or abbreviations enclosed in angle brackets < > Come in pairs (beginning and end): <title> </title> Tags are not case-sensitive, but the actual text between the tags is 1-3 Bold: <b> </b> Italic: <i> </i> Underline: <u> </u> Tag pair surrounds the text to be formatted You can apply more than one kind of formatting at a time <b><i>veni, Vidi, Vici!</i></b> produces: Veni, Vidi, Vici! Tags can be in any order, but have to be nested correctly Some tags do not surround anything, so they don't have an ending form. Closing angle bracket is replaced by /> <hr /> inserts a horizontal rule (line) <br /> inserts a line break 1-4 4-3 4-4 An HTML Web Page File Structuring Documents Begins with <html> and ends with </html> <html> <head> Preliminary material goes here, including <title> </title> </head> <body> Main content of the page goes here </body> </html> Markup language describes how a document's parts fit together Headings: Choice of eight levels of heading tags to produce headings, subheadings, etc. Headings display material in large font on a new line <h1>pope</h1> <h2>cardinal</h2> <h3>archbishop</h3> produces: Pope Cardinal Archbishop 1-5 1-6 4-5 4-6 1

HTML Format vs. Display Format 1-7 HTML text was run together on one line, but displayed formatted on separate lines HTML source tells the browser how to produce the formatted image based on the meaning of the tags, not on how the source instructions look But HTML is usually written in a structured (indented) form to make it easier for people to understand <h1>pope</h1> <h2>cardinal</h2> <h3>archbishop</h3> 1-8 4-7 4-8 White Space White space that has been inserted for readability Spaces Tabs New lines Browser turns any sequence of white space characters into a single space before processing HTML Exception: Preformatted information between <pre> and </pre> tags is displayed as it appears 1-9 1-10 4-9 4-10 Brackets in HTML: The Escape Symbol What if our web page needed to show a math relationship like 0 < p > r The browser would interpret < p > as a paragraph tag, and would not display it 1-11 To show angle brackets, use escape symbol ampersand (&) then an abbreviation, then a semicolon (;) < displays as < > displays as > & displays as & 1-12 4-11 4-12 2

Special Characters Accent Marks in HTML < < > > & & (non-breaking space) (em dash) Full list at http://www.w3.org/tr/rec-html40/sgml/entities.html Letters with accent marks use the escape symbol Ampersand, then letter, then the name of the accent mark, then semicolon é displays as é ñ displays as ñ Full list at http://www.w3.org/tr/rec-html40/sgml/entities.html 1-13 1-14 4-13 4-14 Attributes in HTML Properties such as text alignment require more information For justification, we need to specify left, right, or center Attributes appear inside the angle brackets of start tag, after tag word, with equal sign, value in double quotes. Do not use fancy/smart quotes!!! <p align = "center"> (default justification is left) Horizontal rule attributes: width and size (thickness) can be specified or left to default <hr width="50%" size="3" /> 1-15 1-16 4-15 4-16 Marking Links With Anchor Tags Anchor Tags (cont'd) There are two sides of a hyperlink: 1. Anchor text (the text in the current document that is highlighted) 2. Hyperlink reference (the address of a Web page / target of the link) Begin with <a followed by a space Give the link reference using href="filename" Close the start anchor tag with > Text to be displayed for this link End anchor tag with </a> <a href="target_of_the_hyperlink">anchor Text Seen</a> Anchor Text Seen Absolute pathnames: Reference pages at other web sites using complete URLs http://server/directory_path/filename <a href="http://www.aw.com/snyder/index.html">fit</a> 1-17 1-18 4-17 4-18 3

Anchor Tags (cont'd) Relative pathnames: Reference pages stored in the same directory (give only the name of the file) Read <a href="./filename">this file</a>. Relative pathnames are more flexible we can move web files around as a group Relative pathnames can also specify a path deeper or higher in the directory structure./directory/filename. Current directory.. Parent directory (one level up)../directory/filename 1-19 1-20 4-19 4-20 Including Pictures With Image Tags Including Pictures With Image Tags Image Tag Format: <img src="filename" /> GIF and JPEG Images GIF: Graphic Interchange Format src short for source 8 bits (256 colors or levels of gray) Absolute and relative pathname rules apply Pictures can be used as links using anchor tag <a href="fullsize.jpg"><img src="thumbnail.jpg" /></a> JPEG: Joint Photographic Experts Group 24 bits (millions of colors full color; levels of compression) Tell browser which format image is in using filename extension (.gif,.jpg or.jpeg) 1-21 1-22 4-21 4-22 Positioning the Image in the Document Handling Color By default, images are inserted in the page at the point where the tag is specified in the HTML, and the text lines up with the bottom of the image Align attribute can line up image with top of line of text, middle, or bottom Align left, center, or right attribute puts the image on the side of the browser window text flows around it To put image on separate line, enclose within paragraph tags Can specify how large the image should be displayed (in pixels or % of window) with height and width attributes 1-23 Color is used for both background and text bgcolor attribute of body tag gives solid background color Use hexadecimal color numbers (0-9 A-F) <body bgcolor="#ff00ff"> (magenta) Or use predefined color terms <body bgcolor="magenta"> color attribute can be used with body text, link, or font tags <font color="red">text</font> 1-24 4-23 4-24 4

http://www.w3schools.com/ Learn HTML HTML Colors / Colorvalues / Colornames 1-25 1-26 4-25 4-26 Handling Lists Unordered (bulleted) list: <ul> and </ul> tags begin and end the list <li> and </il> tags begin and end the items within the list Ordered (numbered) list: <ol> and </ol> tags begin and end the list Uses the same <li> tags Sublists: Insert lists within lists (between <li> </li> tags) 1-27 Definitional list: <dl> and </dl> tags begin and end the list <dt> and </dt> surround the terms to be defined <dd> and </dd> surround the definitions (indented) 1-28 4-27 4-28 Handling Tables Controlling Text with Tables Tables begin and end with <table> and </table> tags Rows are enclosed in table row tags, <tr> and </tr> Cells of each row are surrounded by table data tags, <td> and </td> Create a caption centered at the top of the table with <caption> and </caption> tags Column headings are created as first row of table by using <th> and </th> tags instead of table data tags See examples in textbook Tables can control arrangement of information on a page e.g., a series of links listed across the top of the page could be placed in a one-row table to keep them together If the window is too small to display all the links, table keeps them in a row and a scroll bar is added If the tags are not in a table, the links will wrap to the next line instead 1-29 1-30 4-29 4-30 5

1-31 1-32 4-31 4-32 1-33 1-34 4-33 4-34 1-35 1-36 4-35 4-36 6