Web Design & Development

Slides:



Advertisements
Similar presentations
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Advertisements

A guide to HTML. Slide 1 HTML: Hypertext Markup Language Pull down View, then Source, to see the HTML code. Slide 1.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
HTML BASIC
Computer Sciences Department
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Structure Content Presentation Semantics.
Creating a Basic Web Page
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML TAGS I Basic Tags. North Lake College 2 by Sean Griffin Sample XHTML Code.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
INT222 – Internet Fundamentals
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Structure & syntax
HTML Structure & syntax
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Lab 3 Html basics.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
HTML Basics.
Introduction to HTML:.
CIS 228 The Internet 9/20/11 XHTML 1.0.
Internet Technology and Website Design
Introduction to HTML.
Building Blocks of a Web Page HTML, HTML 5, CSS & XHTML
HTML5 – Heading, Paragraph
Coding, Testing and Valdating a Web Page
INTRODUCTION TO HTML AND CSS
XHTML Basics.
Programming the Web using XHTML and JavaScript
What is XHTML?.
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
WEBSITE DESIGN Chp 1
XHTML Basics.
XHTML
XHTML Basics.
XHTML Review Anita Philipp Updated Spring 2016.
Instructor: Charles Moen
Introduction to Web & HTML
INTRODUCTION TO HTML AND CSS
LESSON 1 Module 2: XHTML Basics Basic XHTML.
XHTML Basics.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Web Application Development
HyperText Markup Language
Creating a Basic Web Page
XHTML Basics.
XHTML 7-May-19.
AN INTRODUCTION BY FAITH BRENNER
HTML Structure & syntax
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Web Design & Development Creating a Basic Web Page

When you connect to a web page by entering its URL into the browser HTML Source Document When you connect to a web page by entering its URL into the browser Browser instructs your computer to send a message out over the Internet to the computer specified by that URL requests that it sends back a certain document (HTML source doc) HTML source doc describes the content and layout of the web page After your computer receives the html, your browser interprets the html and displays the resulting web page.

XHTML is a simple, more standardized version of HTML HTML Source Document HTML source document A text-only document Consists of (1) actual text, and (2) tags A tag is an html code that is enclosed in angel brackets <>; used to lay out the web page. XHTML is a simple, more standardized version of HTML XHTML/HTML can be created using a simple text editor like notepad File extension must be .html or .htm

Sample HTML HTML Source Firefox display of the html source

XML (eXtensible Markup Language): HTML, XML, XHTML XML (eXtensible Markup Language): is a set of rules that lets web designers classify their data in a way customized to their needs. Extendable by creating new types of tags. XHTML (eXtensible HyperText Markup Language): A new version of HTML based on XML Inherits strict syntax rules of XML

Composition of a XHTML Document An XHTML document consists of three main parts: the DOCTYPE the Head the Body

Composition of a XHTML Document <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> ... <title>…</title> </head> <body> … </body> </html>

Creating XHTML The code inside red rectangle (<!DOCTYPE … dtd”>) is a Document Type Definition (DTD), it specifies what type of document this is – in this case an XHTML document. The code inside green rectangle, xmlns specifies the namespace, it tells the browser that all tags contained within the <html> tag belong to the XHTML namespace as defined by the W3C and located at the given URL.

Tags are also called elements XHTML Tags/Elements Tags are also called elements An attribute is a special code that can enhance or modify a tag. They are generally located in the starting tag after the tag name. Basic syntax for xhtml tags and attributes <tag attribute="value">   </tag> All tags must be lower case all values of attributes need to surrounded by quotes

Example <strong>This is bold text…</strong> XHTML Tags/Elements Example <strong>This is bold text…</strong> <p style =“text-align:center">This text will appear aligned to the center…</p>

Two necessary attributes – "name" & "content" <meta> tag <meta> tag is used to specify keywords that describe a document’s contents as well as a short description. Two necessary attributes – "name" & "content" <meta name="keywords" content="baseball, soccer, tennis"/> <meta name="description" content="Sports information page"/>

<p> paragraph tag <p> tag The paragraph tag. Used so separate text within a web page. Container type Will provide line breaks Optional attribute : align (not allowed in XHTML 1.0 Strict though) <p align="center">

<br/> tag Example Is used for line break Example <p> Contact<br /> 6150 Sennott Square<br /> University of Pittsburgh<br /> Pittsburgh, PA 15260 </p>

<h1> to <h6> Headings <h1> to <h6> Define headers. <h1> defines the largest header. <h6> defines the smallest header. Example <h1>This is header 1</h1> <h2>This is header 2</h2> <h3>This is header 3</h3> <h4>This is header 4</h4> <h5>This is header 5</h5> <h6>This is header 6</h6>

<em> & <strong> tags <em> tag Renders text as emphasized text <strong> tag Renders text as strong emphasized text Example <em>Emphasized text</em><br /> <strong>Strong text</strong><br />

Commenting Source Code Comments are inclosed in <!-- and --> Example <!--This comment will not be displayed--> <p>This is a regular paragraph</p>

<blockquote> tag tag defines the start of a long quotation. To validate the page as strict XHTML, you must add a block-level element around the text within the <blockquote> tag, like this: <blockquote> <p>here is a long quotation here is a long quotation</p> </blockquote>