Basic HTML. Why study HTML? HyperText Markup Language (HTML) Setting up your website HTML XHTML. W3C HTML home page

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

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

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

ICT 6012: Web Programming

HTML, CSS, XML, and XSL

Website 101. Yani Ivanov. Student Assistant / Web Administrator

Introduction to XHTML. 2010, Robert K. Moniot 1

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

HTML Basics(w3schools.com, 2013)

Web Design with Dreamweaver Lesson 4 Handout

CREATING WEB PAGES USING HTML INTRODUCTION

Advanced Drupal Features and Techniques

Creating HTML authored webpages using a text editor

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

Introduction to Web Design Curriculum Sample

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

Basic Website Maintenance Tutorial*

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

Building Your Website

How to Construct a Web Site: A Brief Introduction 1

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

Website Planning Checklist

Microsoft FrontPage 2003 Creating a Personal Web Page

How to Manage Your Eservice Center Knowledge Base

Formatting Text in Blackboard

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

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

ICE: HTML, CSS, and Validation

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

Short notes on webpage programming languages

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

Lab 1.3 Basic HTML. Vocabulary. Discussion and Procedure

Getting Started with KompoZer

HT H ML B as a ics c 1

Microsoft Word 2013 Creating a Personal Web Page (Level 2)

HTML Overview. With an emphasis on XHTML

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

Creating an HTML Document Using Macromedia Dreamweaver

Dreamweaver CS6 Basics

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

ebooks: Exporting EPUB files from Adobe InDesign

Using an external style sheet with Dreamweaver (CS6)

Caldes CM12: Content Management Software Introduction v1.9

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

HTML tutorial. Purpose: Importance: Very few people code HTML by hand anymore. There are a multiplicity

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

Lesson Review Answers

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

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

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

Web Publishing Basics 2

The Web Web page Links 16-3

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Surfing the Internet. Dodge County 4-H Tech Team January 22, 2004

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

Dreamweaver. Introduction to Editing Web Pages

How to code, test, and validate a web page

The following are some basic HTML Tags you can use within a Text Box on your site.

What is a Web Browser? Web Site Functionality. A client program that uses HTTP to communicate with web servers.

Educational Technology Department IT Master Plan Training Modules. Notes for Internet (Web Design & Publishing)

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Taking your HTML s to the Next Level. Presented by: Joey Trogdon, Asst. Director of Financial Aid & Veterans Affairs Randolph Community College

JISIS and Web Technologies

How to Use the Text Editor in Blackboard

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

Creating a Web Page Using HTML, XHTML, and CSS: The Basics

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

How to Edit Your Website

Madison Area Technical College. MATC Web Style Guide

Basic tutorial for Dreamweaver CS5

FETAC Certificate in Multimedia Production. IBaT College Swords. FETAC Certificate in Multimedia Production Web Authoring Dreamweaver 3

Microsoft Expression Web Quickstart Guide

Adobe Dreamweaver CC 14 Tutorial

AJAX The Future of Web Development?

Overview. Understanding Web Design. Big Ideas. Goals & Audience. Theme. Theme. Big ideas. Goals & Audience Theme Navigation

COMMON CUSTOMIZATIONS

HTML TIPS FOR DESIGNING

Website Development Komodo Editor and HTML Intro

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

XHTML vs. HTML - Which is the Best for You?

Dreamweaver Tutorial #1

U.S. Coast Guard Auxiliary Department of User Services Dynamic Web Template User Guide. Version:

Web Development 1 A4 Project Description Web Architecture

Personal Portfolios on Blackboard

Setting up Web Material. An introduction

To change title of module, click on settings

Action settings and interactivity

Web Design and Development ACS-1809

CSC 160 Introduction to Programming for Non-majors

Professional & Workgroup Editions

Selectors in Action LESSON 3

WORDPRESS MANUAL WEBSITEDESIGN.CO.ZA

Version 4.0. Unit 3: Web Design. Computer Science Equity Alliance, Exploring Computer Science Unit 3: Web Design 102

How to Create an HTML Page

User s Guide. Downloaded from -

Designing HTML s for Use in the Advanced Editor

ITP 101 Project 3 - Dreamweaver

Transcription:

HyperText Markup Language (HTML) Basic HTML Specifications, guidelines, etc. Creating your website Access modes Creating HTML pages Coding HTML page with graphics HTML A markup language for publishing on the Web Having hyperlinks Specification maintained by the W3C W3C HTML home page Specifications Guidelines Activities Related work http://www.w3.org/markup/ Study the textbook for more details on HTML. XHTML extensible Hypertext Markup Language XHTML is the successor to HTML A more strict version of HTML To allow delivery of web pages to devices (like mobile devices) that lack adequate resources as a computer Reference: http://www.w3.org/tr/2004/wdxhtml2-20040722/ Why study HTML? We have HTML composers, why study HTML? There are pretty good GUI for creating web pages. Setting up your website Depending on the configuration of the WWW server used Different WWW servers and versions 1

Features of a server are set by default or customized by the webmaster We shall follow the configuration of the current CS web server: www.cs.odu.edu Where to store HTML files Go to the root directory of your CS Unix account Make a subdirectory as below (mandatory name) ra:/home/shen> mkdir public_html Set its access mod as follows ra:/home/shen> chmod 705 public_html Make additional subdirectories under public_html as needed ra:/home/shen> cd public_html ra:/home/shen> mkdir cs312 ra:/home/shen> chmod 705 cs312 Directory Structure classes index.html shen public_html cs312 cgi-bin Normally, one can set directories with access mode 705 and files with 704 smallpage.html Access modes: directories: 705 or 701 readable files: 704 executable programs: 705 A very small HTML page A minimal HTML page File name: smallpage.html A very small page. Assume that the file smallpage.html is stored under /home/shen/public_html/cs312/htmldir/ and it has mode 704. The the URL to access it is: /htmldir/smallpage. html Open vs. closing tags Create a source HTML code only with a text editor, not a word processor. Note that public_html is not part of the URL. 2

The basic skeleton of an HTML page An HTML page should have a HEAD and a BODY /htmldir/skeletonpage.html <HEAD> <TITLE>Skeleton page</title> </HEAD> <BODY> <h1>another</h1> <h2> very small page</h2> <p>a paragraph.</p> <p> Another paragraph.</p> </BODY> Suggestions for a HTML page Start with giving a title, in the HEAD section <title>my HTML Document</title> Not displayed in browser, may appear at top of the window caption area Default name for bookmark or favorite Many other things for HEAD /htmldir/firsthtmlpage.html Work on the BODY section, to be displayed Headings <h1>my first page</h1> <h2>first section</h2> No indentation, not centered Relative in sizes /htmldir/firsthtmlpage.html Paragraphs <p>this is my first paragraph, any number of lines, smaller font size.</p> <p>following a blank line, this is my second paragraph, more lines.</p> Following a blank line Starting from left side </p> is optional /htmldir/firsthtmlpage.html New lines <br>start a new line, not a new paragraph, no closing tag. Breaking from previous text Start a new line without a blank line in front Fancier formatting Remember: Multiple spaces are displayed as one space, even in a pair of double quotes. Automatic text wrapping Text is generally displayed as long as possible with automatic wrapping To force a non-breaking phrase, use between the words of the phrase 3

Emphasizing Italicized: put in between the pair <em> and </em> Bold: use <strong> and </strong>, or <b> and </b> Centered, on a new line Use <center> and </center> to enclose anything to be centered Example simple textual page <center><h2>simple Textual Page</h2></center> <p>this is the <strong>first paragraph</strong>. <p>another <b>paragraph</b>, after a blank line. / htmldir/simpletext.html <br>starting a new line. This line can be arbitrarily lone, and will continue to be wrapped, until the starting of another new line. The term <b><em>internet Concepts </em></b> should never be displayed in <b>two separate lines</b>. <center>a centered new line, starts like a new paragraph.</center> Still another new line. See how spaces appear. / htmldir/simpletext.html Some special symbols Symbol & > < Numeric Coding & > < Symbolic Coding & > < /ht mldir/specialsymbols.html References: http://wdvl.internet.com/ Authoring/HTML/Entitie s/common.html http://www.utoronto.ca/ webdocs/htmldocs/ne whtml/iso_table.html Hyperlinks The syntax for a text hyperlink <a href = the target URL title= link title > phrase for the label </a> Example: <a href = http://www.cs.odu.edu:80/~shen/cs312/cs312_anno uncements.html > CS312 Course Announcements </a> The text hyperlink can be used anywhere in a text Its appearance is typically as: CS312 Course Announcements When clicked on, the target page is retrieved and displayed Note: title= link title is optional. It shows up when cursor is placed on the hyperlink 4

Adding lists in a page Unordered (bulleted) list <h2>some wonderful persons:</h2> <ul> <li>john Smith</li> <li>mary Jones</li> <li>larry Benson</li> </ul> http://www.cs.odu.edu/~shen/cs 312/htmldir/bullets.html Ordered (numbered) list <h2>three top students:</h2> <ol> <li>john Smith</li> <li>mary Jones</li> <li>larry Benson</li> </ol> http://www.cs.odu.edu/~shen/ cs312/htmldir/numbered.html Definition list <h2>three top young alumni of ODU:</h2> <dl> <dt>john Smith</dt> <dd>he recieved the 2004 Junior Nobel Prize in World Citizenship.</dd> A list with indented descriptions http://www.cs.odu.edu/~shen/c s312/htmldir/deflist.html <dt>mary Jones</dt> <dd>she had 4.0 GPA at graduation and was voted the most successful Student Association President.</dd> <dt>larry Benson</dt> <dd>he won an Olympics gold medal in swimming in 2004 and graduated with high honor in 2003.</dd> </dl> http://www.cs.odu.edu/~shen/c s312/htmldir/deflist.html Nesting of lists <h2>my favorite sports:</h2> <ol> <li>mountain climbing</li> <li>ball games <ul> <li>foot ball</li> <li>basket ball</li> </ul> </li> <li>jogging</li> </ol> http://www.cs.odu.edu/~shen/cs 312/htmldir/nestedList.html Adding images A photo image in right size: <p><img src="../tpersonh.jpg" width="382" height="458" alt="a Tibetan person"> <p>same image in different size: <p><img src="../tpersonh.jpg" width="191" height="229" alt="a Tibetan person"> Partil/Relative Link: relative to current page http://www.cs.odu.edu/~shen/ cs312/htmldir/withimage.html 5

<p>same image in wrong proportion: <p><img src="../tpersonh.jpg" width="682" height="458" alt="a Tibetan person"> Positioning image around text An image placed together with a text is basically displayed in a continuous manner, often not neat. http://www.cs.odu.edu/~shen/ cs312/htmldir/withimage.html / htmldir/images.html An image can be aligned either to the left or to the right of a page margin. Texts will warp around them. to the left margin: <img src="../tpersonh.jpg" alt="a Tibetan"width="382" height="458" align="left"> to the right margin: <img src="../tpersonh.jpg" alt="a Tibetan" width="382" height="458" align="right"> How to start a paragraph after the previous left/right aligned picture image? Use <br clear="all"> to start the following text from a new line. http://www.cs.odu.edu/~shen/cs3 12/htmldir/ImageAlignLR.html http://www.cs.odu.edu/~shen/cs3 12/htmldir/ImageAlignClear.html An image can also be centered in a page. <center><img src="../tpersonh.jpg" alt="a Tibetan "width="382" height="458" ></center> /htmldir/imagecentered.html Using an image for hyperlink You most likely have clicked on a graphic image and then got a new web page Photo, icon, or any graphic image may be used as a hyperlink Just code it properly 6

Coding a image for hyperlink Recall the hyperlink syntax: <a href= " target URL" title="link title">link label</a> Just use an image file for the link label, e.g. <a href= " http://www.cs.odu.edu/~shen "> <img src="../tpersonh.jpg" alt="a Tibetan" width="382" height="458"> </a> http://www.cs.odu.edu/~shen/cs 312/htmldir/ImageHyperlink.html 7