Tutorial 2 - HTML basics

Similar documents
COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Certified HTML Designer VS-1027

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Certified HTML5 Developer VS-1029

Inline Elements Karl Kasischke WCC INP 150 Winter

Web Designing HTML5 NOTES

INTRODUCTION TO HTML5! HTML5 Page Structure!

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Reading 2.2 Cascading Style Sheets

This document provides a concise, introductory lesson in HTML formatting.

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Very Basics of HTML. G day mates during this tutorial I will teach you the basics of HTML.

Unit 2 - HTML Formatting

HTML TUTORIAL ONE. Understanding What XHTML is Not

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Announcements. Paper due this Wednesday

HTML. Based mostly on

CMPT 165 Unit 2 Markup Part 2

Creating Web Pages with SeaMonkey Composer

Blackboard staff how to guide Accessible Course Design

1.264 Lecture 12. HTML Introduction to FrontPage

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett

Html basics Course Outline

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Web Development and Design Foundations with HTML5 8th Edition

Creating and Building Websites

Beginning Web Site Design

Management Information Systems

Web Engineering (Lecture 01)

UNIT II Dynamic HTML and web designing

HTML CS 4640 Programming Languages for Web Applications

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

HTML. Hypertext Markup Language. Code used to create web pages

ROLE OF WEB BROWSING LAYOUT ENGINE EVALUATION IN DEVELOPMENT

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Structuring Documents for the Web

HTML/XML. HTML Continued Introduction to CSS

HTML Text Formatting. HTML Session 2 2

Selected Sections of Applied Informatics

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

OU EDUCATE TRAINING MANUAL

Lava New Media s CMS. Documentation Page 1

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Chapter 4. Introduction to XHTML: Part 1

COMS 359: Interactive Media

It is possible to create webpages without knowing anything about the HTML source behind the page.

APPENDIX THE TOOLBAR. File Functions

Dreamweaver CS6. Level 1. Topics Workspaces Basic HTML Basic CSS

c122jan2714.notebook January 27, 2014

Class 7. Choose the correct answer:

Hypertext Markup Language, or HTML, is a markup

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

ATSC 212 html Day 1 Web Authoring

Comp-206 : Introduction to Software Systems Lecture 22. Alexandre Denault Computer Science McGill University Fall 2006

HTML Hyper Text Markup Language

Part 1: HTML Language HyperText Make-up Language

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

ATSC Week 2 Web Authoring

Desire2Learn: HTML Basics

CSS how to display to solve a problem External Style Sheets CSS files

Information Technology Web Services

A network is a group of two or more computers that are connected to share resources and information.

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

Developing a Basic Web Page

Objective % Select and utilize tools to design and develop websites.

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Eng 110, Spring Week 03 Lab02- Dreamwaver Session

Seema Sirpal Delhi University Computer Centre

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Web Publishing Basics I

Symbols INDEX. !important rule, rule, , 146, , rule,

HTML&CSS. design and build websites

PART COPYRIGHTED MATERIAL. Getting Started LEARN TO: Understand HTML, its uses, and related tools. Create HTML documents. Link HTML documents

Introduction to web development and HTML MGMT 230 LAB

Understanding structure Learning about markup Tags and elements. Structure COPYRIGHTED MATERIAL

FCKEditor v1.0 Basic Formatting Create Links Insert Tables

Lesson 1: Dreamweaver CS6 Jumpstart

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

SUB Gfittingen A nd Editi S«BEX- SAN FRANCISCO PARIS DUSSELDORF SOEST LONDON

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Introduction to FrontPage 2002

ICT IGCSE Practical Revision Presentation Web Authoring

WEB APPLICATION. XI, Code- 803

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

The Structure of the Web. Jim and Matthew

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

Web Site Design and Development Lecture 3. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Adobe Dreamweaver CS3 English 510 Fall 2007

BMS2062 Introduction to Bioinformatics. Lecture outline. What is multimedia? Use of information technology and telecommunications in bioinformatics

Transcription:

Tutorial 2 - HTML basics Developing a Web Site The first phase in creating a new web site is planning. This involves determining the site s navigation structure, content, and page layout. It is only after this has been accomplished that HTML coding or authoring tools like FrontPage can be used effectively to actually create the site. The planning process involves: Define site purpose o What are the web site s objectives? o Who is the target audience? o What is their connectivity (dial up, broadband, network, etc.)? o What computers (PC/Mac) and browsers (IE, Netscape, Opera, etc.) do they use? Define content o What you have and what you need. o How it will be organized. Categorize information rather than defining categories and filling them. Build the site structure around content organization. o What graphics are required and how many? Remember, the larger the number of graphics, the longer the page will take to download. The Five Golden Rules Create a clear visual hierarchy on each page. Take advantage of conventions. Break pages into clearly defined areas. Make it obvious what s clickable. Minimize noise. Web files and folders should not have any spaces and be in lowercase. Use the underscore (_) to connect words in file names. File names cannot contain colons (:), asterisks (*), questions marks (?), or other special characters. Determine site architecture and navigation. A simple flowchart-style sketch usually works best. Hierarchical models are best suited to the web. Page Design With web pages, the layout design process accounts for the arrangement of text and graphics elements on the page. These elements can be broadly divided into: Page Header: Located at the top of the page, it includes the page banner or title and the navigation bars. Semester 1 2016 Website Development Page 1 of 6

Page Footer: Located at the bottom of the page, this is where you insert copyright and authoring information, the date of the most recent update, institutional affiliation. Side Navigation: This is usually a rail along the side of the page that displays the global or local navigation. HTML Documents HTML documents are made up of tags or angled brackets (<>) that contain an element within them to determine the layout and formatting of the web page. For example, <B> is the tag used to define text in bold where B is the element contained within the tag. Elements can also include attributes, or additional information for that element. Attributes are included inside the start tag. For example, you can specify the alignment of images (top, middle, or bottom) by including the appropriate attribute with the image source HTML code. Structure The basic HTML document is contained within the tags and comprises two sections: Head and Body. The Head contains the page title and meta-tags within the tags. Any JavaScript code that is used, as well as Cascading Style Sheet information is also contained within the Head. This section will not be displayed on the web page. The Body holds the actual content of the page (text, graphics, lists, etc.) contained within the <BODY> </BODY> tags. The,, <TITLE>, and <BODY> tags are also referred to as document tags. A basic HTML document would look something like this: <TITLE>A Simple HTML Example</TITLE> <BODY> Welcome to the world of HTML. This is the first paragraph. </BODY> Tags are case insensitive, i.e. <B> will work as well as <b>. Not all tags work with all web browsers. If a browser does not recognize a tag, it simply ignores it. It will display the information contained within the tags however. Creating an HTML Document Since HTML documents are essentially text files with the extension.htm or.html, any basic text editor like Notepad WordPad can be used to create one. You can also the HTML view in authoring systems like FrontPage or Dreamweaver, or HTML hand coding applications like Home Site. Semester 1 2016 Website Development Page 2 of 6

HTML documents do not recognize white spaces created by formatting tools such as spaces, linefeeds, and carriage returns. These are automatically compressed into a single space when the page is displayed in the browser. For instance, the HTML code in the example above can also be written out as <TITLE>A Simple HTML Example</TITLE> <BODY>Welcome to the world of HTML. This is the first paragraph.</body> and it would still display in exactly the same manner in the browser. However, it is harder to read and edit in this format. Consequently, for clarity in reading and editing HTML, it is best to structure the document using carriage returns and indents. Markup Tags The information contained in the Body section of an HTML document is formatted using markup tags. These tags allow us to create paragraphs, line breaks, headings, lists, etc. They can also be used to set the position of the content using alignment attributes. The most common markup tags are: Heading These tags are used to highlight text by making them bigger and bolder than normal text. There are six levels of headings numbered 1 through 6, where 1 is the biggest and 6 is the smallest heading. Headings are specified as <Hy> </Hy> where H stands for heading and y is the level number (1 to 6). E.g.: <TITLE> Headings</TITLE <BODY> <H1>Level 1 heading</h1> <H2>Level 2 heading</h2> </BODY> Paragraph These tags, denoted by <P> </P>, are used to define paragraphs. Since HTML does not recognize carriage returns, it is especially important to use these tags to indicate paragraphs, or you will end up with as one long block of text. E.g.: Semester 1 2016 Website Development Page 3 of 6

<TITLE> Working with Paragraphs </TITLE <BODY> <P>This is the opening paragraph for this page. It does not have much information at the moment, but it indicates how a paragraph is constructed in HTML. </P> <P>This is the second paragraph on this page. </P> </BODY> Paragraphs can be positioned or aligned relative to the sides of the page by using the ALIGN= alignment attribute within the opening tag where the value for alignment is left, right, center, or justified. The default alignment for a paragraph tag is left. E.g. <TITLE> Working with Paragraphs </TITLE Line Breaks The <br> tag is used when you want to start a new line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it. It is similar to single spacing in a document. This Code <p>this <br> is a para<br> graph with line breaks</p> This is a para graph with line breaks Would Display The <br> tag has no closing tag. Horizontal Rule The <hr> element is used for horizontal rules that act as dividers between sections, like this: The horizontal rule does not have a closing tag. It takes attributes such as align and width. For instance: Semester 1 2016 Website Development Page 4 of 6

This Code <hr width="50%" align="center"> Would Display Comments in the HTML The comment tag is used to insert a comment in the HTML source code. A comment can be placed anywhere in the document and the browser will ignore everything inside the brackets. You can use comments to write notes to yourself, or write a helpful message to someone looking at your source code. This Code <p> This html comment would <!-- This is a comment --> be displayed like this.</p> Would Display This HTML comment would be displayed like this. Notice you don't see the text between the tags <!-- and -->. If you look at the source code, you would see the comment. To view the source code for this page, in your browser window, select View and then select Source. Other HTML Tags As mentioned before, there are logical styles that describe what the text should be and physical styles which actually provide physical formatting. It is recommended to use the logical tags and use style sheets to style the text in those tags. Logical Tags Tag Description <abbr> Defines an abbreviation <acronym> Defines an acronym <address> Defines an address element <cite> Defines a citation <code> Defines computer code text <blockquote> Defines a long quotation <del> Defines text <dfn> Defines a definition term <em> Defines emphasized text <ins> Defines inserted text <kbd> Defines keyboard text <pre> Defines preformatted text <q> Defines a short quotation <samp> Defines sample computer code <strong> Defines strong text <var> Defines a variable Physical Tags Tag Description <b> Defines bold text <big> Defines big text <i> Defines italic text <small> Defines small text <sup> Defines superscripted text <sub> Defines subscripted text <tt> Defines teletype text <u> Deprecated. Use styles instead Character tags like <strong> and <em> produce the same physical display as <b> and <i> but are more Semester 1 2016 Website Development Page 5 of 6

uniformly supported across different browsers. HTML Fonts The <font> tag in HTML is deprecated. The World Wide Web Consortium (W3C) has removed the <font> tag from its recommendations. In future versions of HTML, style sheets (CSS) will be used to define the layout and display properties of HTML elements. The <font> Tag Should NOT be used. Backgrounds The <body> tag has two attributes where you can specify backgrounds. The background can be a color or an image. Bgcolor The bgcolor attribute specifies a background-color for an HTML page. The value of this attribute can be a hexadecimal number, an RGB value, or a color name: <body bgcolor="#000000"> <body bgcolor="rgb(0,0,0)"> <body bgcolor="black"> The lines above all set the background-color to black. Background The background attribute can also specify a background-image for an HTML page. The value of this attribute is the URL of the image you want to use. If the image is smaller than the browser window, the image will repeat itself until it fills the entire browser window. <body background="clouds.gif"> <body background="http://profdevtrain.austincc.edu/html/graphics/clouds.gif"> The URL can be relative (as in the first line above) or absolute (as in the second line above). If you want to use a background image, you should keep in mind: Will the background image increase the loading time too much? Will the background image look good with other images on the page? Will the background image look good with the text colors on the page? Will the background image look good when it is repeated on the page? Will the background image take away the focus from the text? TASK 1 Download.Zip file and create a html file using the image and the text. Semester 1 2016 Website Development Page 6 of 6