Web Design and Development ACS Chapter 3. Document Setup

Similar documents
c122jan2714.notebook January 27, 2014

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

Introduction to HTML5

introduction to XHTML

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

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

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

What is XHTML? XHTML is the language used to create and organize a web page:

Announcements. Paper due this Wednesday

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

INTRODUCTION TO WEB USING HTML What is HTML?

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

Html basics Course Outline

INTRODUCTION TO HTML5! HTML5 Page Structure!

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

CS134 Web Site Design & Development. Quiz1

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

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

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Understanding the Web Design Environment. Principles of Web Design, Third Edition

Title: Sep 12 10:58 AM (1 of 38)

HTML. Based mostly on

Web Publishing Basics I

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

A Brief Introduction to HTML

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

CSC 121 Computers and Scientific Thinking

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

HTML & XHTML Tag Quick Reference

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

Module 2 (III): XHTML

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

Hyper Text Markup Language

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

Web Development and Design Foundations with HTML5 8th Edition

Desire2Learn: HTML Basics

Introduction to WEB PROGRAMMING

How the Internet Works

HTML CS 4640 Programming Languages for Web Applications

HTML and CSS: An Introduction

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

Microsoft Expression Web Quickstart Guide

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

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

Hyper Text Markup Language

11. HTML5 and Future Web Application

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

Learning Basic HTML: Workshop Session One (Prepared by James F. Daugherty, The University of Kansas)

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

HTML Overview. With an emphasis on XHTML

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

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

Introduction to HTML

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

Introduction to Web Development

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

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

CS144 Notes: Web Standards

HTML/XML. HTML Continued Introduction to CSS

Programmazione Web a.a. 2017/2018 HTML5

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

c122sep2914.notebook September 29, 2014

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

ITNP43: HTML Lecture 4

XHTML. XHTML stands for EXtensible HyperText Markup Language. XHTML is the next generation of HTML. XHTML is almost identical to HTML 4.

XHTML & CSS CASCADING STYLE SHEETS

Unit 2 - HTML Formatting

HTML and CSS COURSE SYLLABUS

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

Lab 4 CSS CISC1600, Spring 2012

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

HTML+ CSS PRINCIPLES. Getting started with web design the right way

HTML/CSS Lesson Plans

Chapter 4. Introduction to XHTML: Part 1

FUNDAMENTALS OF WEB DESIGN (46)

A Balanced Introduction to Computer Science, 3/E

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

GSLIS Tech Lab Workshop: Mastering TOR Part 2 GSLIS Tech Lab Workshop: Mastering TOR Part 2 GSLIS Tech Lab Workshop: Mastering TOR Part 2

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

How to Edit Your Website

HTML TUTORIAL ONE. Understanding What XHTML is Not

Creating A Web Page. Computer Concepts I and II. Sue Norris

Geocaching HTML & BBCode FUNdamentals by Scott Aleckson (SSO JOAT)

Developing a Basic Web Page

Intro to XHTML A Tutorial for the Beginner

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

How to Edit Your Website

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

CMPT 165 Unit 2 Markup Part 2

AOS 452 Lab 4: HTML, CSS and Your Webpage

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Aleph - Web Opac Accessibility. Accessibility in Aleph500 Web OPAC

4 HTML Basics YOU WILL LEARN TO WHY IT MATTERS... CHAPTER

LAB 2 INTRODUCTION TO HTML

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

HTML & CSS Cheat Sheet

Fundamentals of Website Development

Tutorial 2 - HTML basics

Web Development IB PRECISION EXAMS

UNIT 2. Creating Web Pages with Links, Images, and Formatted Text

Transcription:

Web Design and Development ACS-1809 Chapter 3 Document Setup 1

Create an HTML file At their very core, HTML files are simply text files with two additional feature.htm or.html as file extension name They have tags. Tags are commands or code used to tell the web browser how to display the page content 2

3

Naming Conventions About the file name Be consistent about.htm or.html Case sensitivity Simple file names with only letters and numbers Don t use spaces, punctuation, or special characters (No -,_... ) Remember to save your file as a text file (on both PCs and Macs) 4

Preview of You HTML Work No need to upload the file to the web server in order to view the page in browser You are able to preview the page in the browser Use open from File menu in your browser. If the file is already opened in the web browse then just a refresh/reload is enough 5

HTML Document Format AN HTML element or tag is a command used to tell the browser how to display content on a page. <em> Reminder: </em> Tags are placed within brackets (< >). Example: <p> creates paragraphs, <li> creates list items, and <br> adds a line break. 6

Types of Tags Document Setup Elements in this category include those necessary to set up a basic HTML page html, head, title, Text-Level Semantics These elements help the browser understand the meaning behind bits of text content fonts, Sectioning Elements used to section large chunks of content and divide up the page belong in this category div, header, Grouping Elements used to section smaller chunks of content, like lists and paragraphs, fall into this category

Types of Tags Embedding Often times, we need to embed content from other sources into a web page image, vidoe, audio, Tables The elements that are used for managing tabular data Forms Any element used in the development of a web form falls into this category

Types of Tags Opening and Closing tags. <p> as an opening tag: to signify where to start a paragraph Closing tag: to signify where the paragraph ends The same tag with a forward slash placed before it: </p> Not all tags in HTML5 are required to have both opening and closing tags. They are called empty if just one tag 9

Table 2-1: Basic HTML Page Opening Tag Closing Tag Tags Description!DOCTYPE n/a -Tells the browser about the standards used in your page. <html> </html> -Frames the entire HTML page. <head> </head> -Frames the identification information for the page, such as title, that is transferred to the browser and search engines. <body> </body> -Frames the content of the page. <title> </title> -Gives the name of the page that will appear at the top of browser window. - Is contained within <head> and </head>. 10

Attribute Many tags have additional aspects that you can customize. These options are called attributes Attributes are placed after the element name but before the final bracket <img src= mypicture.jpg width= 100 height= 100 alt= A photo of me > Base element is img : insert an image at this spot The attributes are: src, width, height, alt Each attribute has a value, which comes after = sign and is placed within quotation marks 11

Attributes Cont Multiple attributes can be included in a single tag Only add the attributes to the opening tag, and then close this opening tag (NO attributes in closing tag) img tag doesn t have a separate closing tag This is referred to as being empty In early version of HTML, to close tags without separate closing versions, simply place a forward slash(/) before the final bracket This is not required in HTML5, but good for stricter validation (like XML parser) 12

HTML Document HTML document is one big element <html>your html document</html> There is a head and a body Head: <head>the header</head> contains information about the document like title, keywords for search engine, etc Body: <body>the body</body> contains the content of the web page tells the browser how to display it Body is always placed after the head element

Required tags - Example <!DOCTYPE html PUBLIC -//w3c//dtd XHTML 1.0 Transitional//EN http://www.w3.org/tr/xhtml1/dtd/transitional.dtd > <html> <head> <title> My First HTML page</title> </head> <body> This is a very basic HTML page. </body> </html> 14

!DOCTYPE The!DOCTYPE tag: tells which version of HTML is used in the document In HTML 4.01 XHTML Transitional : for documents that combine old and new HTML code XHTML Strict : for documents that only use new code XHTML Frameset: for documents containing frames Now it s much simpler for HTML5 just use html for <!DOCTYPE> <!DOCTYPE html> 15

Required tags - Example So now the previous HTML code becomes: <!DOCTYPE html> <html> <head> <title> My First HTML page</title> </head> <body> This is a very basic HTML page. </body> </html> 16

About the Tag In earlier days HTML was case insensitive HTML4 became case sensitive and requires all tags to be lowercase All values for attributes must be placed within quotation marks <p style= font-family: verdana; > The value of the attribute Now in HTML5, it s case insensitive again To keep backward compatible it s still recommended to use lower case for all the tags as well as the quotation marks 17

Nesting Containing one HTML tag inside another <strong> This text is bold and <em>italic</em></strong> The em tag is nested within strong tag Proper way and improper way to nest tags: <strong> <em>these tags are nested properly.</em></strong> <strong> <em>these tags are not nested properly.</strong>.</em> 18

Spacing and Break Two places within an HTML file to add breaks: In between tags (as well as their components) -- to help you differentiate between sections of the page In between lines of text within the body of the page 19

Spacing and Breaks <html> <head> <title>my first web page</title> </head> The title tag is indented to show it is contained or nested within the head tag. 20

Spacing Between Lines of Text <!DOCTYPE html> <html> <head> <title> My first web page</title> </head> <body> Welcome. Thank you for visiting my first web page. I have several other pages that you might be interested in. </body> </html> 21

Spacing Between Lines of Text To make those line breaks appear, you have to use a tag to tell the browser to insert a line break. <br> : simple line break. <p></p>: paragraph break. 22

Spacing Between Lines of Text Cont So to display the blank line it should be in this way: <p>welcome.</p> <p>thank you for visiting my first web page. I have several other pages that you might be interested in.</p> HTML can not recognize extra space either To put more than one space between words, you must use style sheets or special characters 23

Special Characters Character Numbered Entity Named Entity &#34 " & &#38 & (nonbreaking space) &#160 &#169 &#174 é &#233 é < &#60 < > &#62 > Appendix D : full list 24

Comments To leave comments or notes that you don t want the visitors of your web site see (e.g. Reminders to yourself): Space <!-- Remember to update this page after the new product becomes available. --> Space 25