Beginning HTML. A tag is a command written between angle brackets (the less than and greater than symbols). Ex. <html>

Similar documents
Web Recruitment Module Customisation

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

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

CSS: The Basics CISC 282 September 20, 2014

CSS exercise - Part 1

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

CSS means Cascading Style Sheets. It is used to style HTML documents.

CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS

c122jan2714.notebook January 27, 2014

Reading 2.2 Cascading Style Sheets

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

1 Creating a simple HTML page

A Balanced Introduction to Computer Science, 3/E

Html basics Course Outline

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

Lab 4 CSS CISC1600, Spring 2012

ITNP43: HTML Lecture 4

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

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

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

CSC 121 Computers and Scientific Thinking

HTML and CSS: An Introduction

Programmazione Web a.a. 2017/2018 HTML5

Three Ways to Use CSS:

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

WEBSI TE DESIGNING TRAINING

Fundamentals of Website Development

Web Publishing Basics I

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Using Dreamweaver CS6

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

HTMLnotesS15.notebook. January 25, 2015

DAY 4. Coding External Style Sheets

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

HTML/XML. HTML Continued Introduction to CSS

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

HTML & CSS for Library Professionals

In the early days of the Web, designers just had the original 91 HTML tags to work with.

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

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

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

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

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

How the Internet Works

> > > > Cascading Style Sheets basics

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

Activity 4.1: Creating a new Cascading Style Sheet

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

Introduction to CSS. Part 1: Simple Text Formatting. Source Files for this Exercise are available on the Course Website DW_CSS intro

CSS BASICS. selector { property: value; }

Basic HTML Handout & Exercise Web Technology

Introduction to WEB PROGRAMMING

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Using Advanced Cascading Style Sheets

Introduction to HTML and CSS. Arts and Humanities in the Digital Age 2018 CHASE DTP Dr. Paul Gooding

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Introduction to Web Tech and Programming

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

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

To link to an external stylesheet, the link element is placed within the head of the html page:

Cascading Style Sheets. Overview and Basic use of CSS

CSS: formatting webpages

Step 1- Creating a new XHTML Website (2points)

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

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

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

Web Design and Development Tutorial 03

Building Your Website

Introduction to Cascading Style Sheets

Using CSS in Web Site Design

Announcements. Paper due this Wednesday

Cascading Style Sheets (CSS)

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

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

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Fundamentals: Client/Server

CSS: Cascading Style Sheets

Introduction to CSS. Fijihosting.com Introduction to CSS page 1. What are style sheets? Lovely! How do I use them?

HTML & CSS November 19, 2014

Table of Contents Chapter 9. Working with Cascading Style Sheets ... 1

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

Web Development & Design Foundations with HTML5

HTML TUTORIAL ONE. Understanding What XHTML is Not

By completing this practical, the students will learn how to accomplish the following tasks:

Introduction to Web Technologies

Web Development & Design Foundations with HTML5

HTML Hyper Text Markup Language

INTRODUCTION TO WEB USING HTML What is HTML?

This booklet is knowledge of. a web page. of a web page find what you. you want to. SiteSell offers. Introduction

ACSC 231 Internet Technologies

Transcription:

Beginning HTML HTML Hypertext Markup Language is the language of the Web. HTML files are text files that include tags that indicate the content and structure of a Web page. A Web browser reads the HTML file and interprets the tags, thus presenting the information in the way the designer intended. An HTML file can be developed in a simple text editor like TextEdit or Notepad (there are others, just don't use Word and don't choose Save as a Web page in Word). You simply save the file with the.html extension. Have a browser open while you work so you can test the file. In the browser, simply use File, Open on the file, and refresh any time you save and change. A Note about TextEdit: You must use a text editor using Plain Text to create and edit HTML files. The default with TextEdit is probably rich text. When you open a new TextEdit document, and you see something that looks like a ruler at the top of the page, you know you are in rich text format. This must be changed. Choose TextEdit, Preferences. Under New Document, select Plain Text (instead of Rich Text). Under Open and Save, click the top two boxes that deal with ignoring Rich Text. Close the preferences (using the red x in the top left of the window) and also close the document with the ruler. When you open a new document, you should not see the ruler and you will now be working in Plain Text. A tag is a command written between angle brackets (the less than and greater than symbols). Ex. <html>

Some tags have attributes that provide a variety of options within the tag. The attributes have associated values deemed by the designer. <tag attribute= value > Values are surrounded by quotation marks. Tags must also be closed properly. Ex. <strong>jon s Page</strong> Tags, attributes and values must be in lowercase. When you save your file (or any folders), they should also be lowercase with no spaces. Basic Tags <html> - the opening tag on every html page. It tells the browser that this is an HTML file. <head> - indicates the heading of the document. Nothing within the head tag actually shows up on page, but this is where designers can store information about the title or special search terms associated with the page. <title> - indicates the title of the page. This title does not show up on the page itself, but in the top title bar of the browser. <body> - indicates the beginning of the section with content in it. The attribute bgcolor can be used to change the background color. You can use the 6 character hexidecimal code (there are many places on the Web to find HTML color codes) or you can use a limited number of words to describe color, i.e. red, blue, lightblue, orange, etc. Example: <body bgcolor="#aa11cc"> or <body bgcolor="red"> <strong> - bold (replaced <b> in XHTML)

<em> - italic (replaced <i> in XHTML) <h1>, <h2>, <h3>...<h6> etc. indicates a level of heading size. You can use the different headings to set up the format of your page and indicate different sections. <p> - indicates the opening of a paragraph, puts space between it and the previous content. <br> - provides a line break without the spacing of a paragraph. You can add images to a page with the following code: <img src="filename.jpg" /> This is the special way you close a standalone tag. You must also upload the image file to your Web server. You can add links to a page with the following code: <a href="http://www.google.com">google</a> is my favorite search engine. Colors when you use a color value, you can provide a color name or a color code preceded by the # sign. Go to http://www.w3schools.com/html/html_colornames.asp for a list of some names and codes to try. Lists nested tags. You pick ordered or unordered and then provide the list items, nesting the tags appropriately. Here's an unordered list of my favorite bands/musicians. <ul> <li>gary Clark, Jr.</li> <li>justin Timberlake</li> <li>bombay Bicycle Club</li> </ul> This will show each item with a bullet. If I want them to be numbered, then I use an ordered list. <ol> <li>gary Clark, Jr.</li> <li>justin Timberlake</li> <li>bombay Bicycle Club</li> </ol>

Format of an HTML file <html> <head> <title>your Name Here</title> </head> <body bgcolor="red"> <h1>welcome to "Your Name Here's" Web Site</h1> <img src="filename.jpg" /> <p><strong>welcome to my first Web site!</strong> - continue writing more content here</p> <h2>links</h2> <p><a href="http://www.google.com">google</a> is my favorite search engine.</p> <p><a href="http://www.wired.com">wired Magazine</a> is the only magazine to which I subscribe.</p> <p><a href="http://www.nytimes.com">the New York Times</a> is my favorite newspaper.</p> <h2>my Favorite Bands/Musicians</h2> <ul> <li>gary Clark, Jr.</li> <li>justin Timberlake</li> <li>bombay Bicycle Club</li> </ul> <h2>contact Information</h2> <p>for more information, you can email me at blasingame@txstate.edu</p> </body> </html>

Part I: HTML Assignment You'll get a little experience making an HTML page. Your page should be formatted as above, but customize with your own content and colors. Open any text editor, like TextEdit or Notepad. Note: If you are using TextEdit on a Mac, please make the changes in the Preferences to create the file as Plain Text (TextEdit, Preferences Under New Document, choose Plain Text; Under Open and Save, select the first two boxes to ignore Rich Text). Your page must include: Opening and closing html tag Head and body sections An appropriate title in the head section <h1> and <h2> - you can use more headings if you want. At least three paragraphs One list Three external links with description One image Save this file with your last name and an html extension (i.e. blasingame.html) Once you are finished with this, upload it to the TRACS Drop Box. Part II: A Brief Intro to CSS You can add CSS (cascading stylesheets) to a separate page or in the head of a document (as well as in the lines of code, but that is least efficient). Normally, you have a global stylesheet to control an entire site, the typography, colors, layout, etc. The combination of HTML/CSS allows you to separate the structure from the style (design) on your site. But for this exercise, you will just put some basic code in the head of the document, like this. Add code to the head of your

HTML page to more globally control how things look. Make changes to reflect the colors, fonts and sizes you would like to use. <style type="text/css"> body { color: black; background-color: beige; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;} h1 { font-size: 16px; font-style: normal; font-weight: bold; textdecoration: none; } p { font-size: 12px; font-style: normal; font-weight: normal; textdecoration: none; } a {color: red; text-decoration: none} a:visited {color: darkred; textdecoration: none} a:active {color: #666666; text-decoration: none} a:hover {color: gray; text-decoration: underline} </style> When you are finished adding your styles to the page, save this page with a different file name (blasingame2.html - using your name, of course), and upload it as well to the TRACS Drop Box. *Your file must work properly when I open it. Your image must show and your external links must work. Make sure you test the files yourself. You will not be given a chance to resubmit this assignment.