MA10126 Introduction to HTML

Slides:



Advertisements
Similar presentations
Math Introduction to HTML Gavin Shaddick
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
MA10126 Introduction to HTML Gavin Shaddick
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
HTML Introduction HTML
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
Basic HTML Workshop Session 1: Introduction to HTML Fall 2006.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
Basic HTML The Magic Of Web Pages. Create an HTML folder  Make a folder in your H drive and name it “HTML”. We will save EVERYTHING for this unit here.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
HTML INTRODUCTION. What is HTML?  HTML stands for Hypertext Markup Language  Developed in 1990  Hidden code that helps us communicate with others on.
Introduction to HTML. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
1 Week 1 l HTML l Applets Applets and HTML. 2 Overview l Applets: Java programs designed to run from a document on the Internet l HTML: Hypertext Markup.
1 Labels and Tags October 14, Grammar A set of components and rules that define a method/means of communication among objects. Components are.
Chapter 13. Applets and HTML HTML Applets Computer Programming with JAVA.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
Introduction lab1. Suzanne J. Sultan 2 What is HTML? The definition of HTML is Hyper Text Markup Language. HTML is a computer language devised to allow.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML Hyper Text Markup Language. What is HTML HTML stands for the Hyper Text Markup Language. HTML stands for the Hyper Text Markup Language. HTML is.
Online PD Basic HTML The Magic Of Web Pages
Introduction to HTML.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
CS7026: Authoring for Digital Media HTML Authoring
Marking Up with XHTML Tags describe how a web page should look
Elements of HTML Web Design – Sec 3-2
CSCI-235 Micro-Computers in Science
Uppingham Community College
3.00cs HTML Overview 3.00cs Develop webpages.
Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
A guide to HTML.
COMS 161 Introduction to Computing
3.02D HTML Overview 3.02 Develop webpages.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Chapter 16 The World Wide Web.
Introduction to HTML.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Document Structure & HTML
Marking Up with XHTML Tags describe how a web page should look
The Most Basic HTML Page
HTML Basics Mr. Fazzalari.
Marking Up with XHTML Tags describe how a web page should look
3.02D HTML Overview 3.02 Develop webpages.
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

MA10126 Introduction to HTML Gavin Shaddick www.bath.ac.uk/~masgs/ma10126.html

Web addresses URL - Uniform Resource Locator "protocol://address" protocol is something like http, gopher, FTP, telnet address is merely the server and pathname (if any) of a given resource or page For example, http://www.bath.ac.uk

What is HTML? HTML – “hypertext mark up language” a format that tells a computer how to display a web page in a browser, e.g Explorer, Netscape. The documents themselves are plain text files with special "tags" or codes that a web browser knows how to interpret and display on your screen.

Where do you create HTML files ? Any text editor program capable of creating plain text files e.g. emacs, pico or even notepad in windows. Dedicated HTML editor or generator, e.g. Frontpage You cannot guarantee that your document will appear to other people exactly as it does to you.

Tags HTML is composed of tags. HTML tags are always enclosed in angle-brackets, < > Tags typically occur in begin-end pairs. These pairs are in the form <tag> ... </tag>

Begin-end tags

Document tags The first and last tags in a document should always be the HTML tags <html> </html> If you were to load such a page into a Web browser, it wouldn't do anything except give you a blank screen

Heads and titles HEAD TITLE contain all of the document's header information, e.g. title <head> </head> TITLE This will appear at the top of the browser's title bar, and also appears in the history list. Will also go into a bookmark list <title> Document Title </title>

Body BODY comes after the HEAD structure. Between the BODY tags, you find most of the content that gets displayed in the browser window. <body> This appears in the browser window </body>

First web page <html> <head> <title>MA10126 - HTML</title> </head> <body> This appears in the browser window </body> </html>

Putting it all together

Comment Tags If you want to leave yourself notes in an HTML document, but don't want those notes to show up in the browser window <!-- Hi, I'm a comment. --> you do need an exclamation point after the opening bracket, but not before the closing bracket. there is no end tag, i.e. </!-- text --> This is an empty tag

Headings Used to set apart document or section titles. There are six levels of headings, from Heading 1 through Heading 6. Heading 1 (h1) is "most important" and Heading 6 (h6) is "least important." <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6>

Paragraphs The beginning of a paragraph is marked by <p>, and the end by </p>. <p> Paragraphs can often be far too long, wandering on with no clear sense of direction or purpose, boring the reader to sleep and obscuring the point of the message contained within the text. </p> <p> On the other hand, they can be pretty short. </p> <p> Really short. </p>

Line break If you want to end a line after a certain word, but don't want to start a new paragraph Use the <br> tag There is no </br> tag – another empty tag <p> If you want to force a line break for some reason, but it doesn't make sense to start a new paragraph, then you can use the line break tag just as I will do at the end of this sentence.<br> See the forced display on the next line?<br> How about there?<br> Or there? </p>

Hyperlinks HREF stands for "Hypertext REFerence” Have you seen the <a href="http://www.bath.ac.uk/"> Bath home page </a> <a href=“c:\web\example1”> Click here to see this example </a>

Images Images are placed in Web documents using the IMG tag, <img> Kept in separate files Use a SRC attribute - "source" Can be a web address or a file <img src="URL of graphic"> <img src=“c:\web\figures\boatseattle.jpg">

Creating your own home page on BUCS Run the mkhome command on UNIX server Creates a basic home page (ie name, postal address, phone & fax numbers and e-mail address). Home page is called index.html Created in a directory called public_html in your UNIX home directory Also accessible on H drive under public_html

Your homepage on the web Once you've created your personal home page it will be added to the list of all personal home pages at Bath URL: http://www.bath.ac.uk/~username/ index.html will be the first page that opens This facility is provided as a personal privilege and should not be abused