HTML5 – Heading, Paragraph

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

Web Development & Design Foundations with XHTML
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Tutorial 1 Getting Started with HTML5
XP Tutorial 1 New Perspectives on HTML and XHTML, Brief 1 Developing a Basic Web Page Creating a Web Page for Stephen Dubé’s Chemistry Classes Tutorial.
Developing a Basic Web Page Go see -- look around HTML Tutorial 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Tutorial 1 Developing a Basic Web Page
Tutorial 1 Developing a Basic Web Page. XP Objectives Learn the history of the Web and HTML Describe HTML standards and specifications Understand HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 1: Developing a Basic Web Page.
Developing a Basic Web Page
Objectives Learn the history of the Web and HTML
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Developing a Basic Web Page with HTML
Developing a Basic Web Page Posting Files on UMBC
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
CNIT 133 Interactive Web Pags – JavaScript and AJAX Review HTML5.
Developing a Basic Web Page
1 Networks and the Internet A network is a structure linking computers together for the purpose of sharing resources such as printers and files Users typically.
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
XP 1 HTML: The Language of the Web A Web page is a text file written in a language called Hypertext Markup Language. A markup language is a language that.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML (HyperText Markup Language)
HTML Structure & syntax
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
CNIT 132 – Week 2 HTML (1). Introducing the World Wide Web A network is a structure linking computers together for the purpose of sharing resources such.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 1: Developing a Basic Web Page.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
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.
Introducing HTML 5 Creating Web Pages with HTML 5 1.
Tutorial 1 Developing a Basic Web Page. Objectives Learn the history of the Web and HTML Describe HTML standards and specifications Understand HTML elements.
CHAPTER 1: INTRODUCTION. CONTENTS  Networks  World Wide Web  Hypertext Documents  Web pages - Web site  Web Servers and Web Browsers  HTML: The.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
HTML Introduction. Lecture 7 What we will cover…  Understanding the first html code…  Tags o two-sided tags o one-sided tags  Block level elements.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Developing a Basic Web Page
Creating a Web Page CSC 121.
Web Development & Design Foundations with HTML5 8th Edition
Lecturer (Dept. of Computer Science)
Introducing XHTML: Module A: Web Design Basics
Introducing XHTML: Module A: Web Design Basics
Elements of HTML Web Design – Sec 3-2
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
HTML Intro.
Tutorial Developing a Basic Web Page
Introduction to HTML- Basics
HyperText Markup Language
An Introduction to HTML Pages
AN INTRODUCTION BY FAITH BRENNER
Lesson 2: HTML5 Coding.
Presentation transcript:

HTML5 – Heading, Paragraph CNIT 131 HTML5 – Heading, Paragraph

Understanding Markup Languages A Web page is simply a text file written in a language called Hypertext Markup Language (HTML). Hypertext: is a method of organizing information that gives the reader control over the order in which the information is presented. The key to use Hypertext is the use of Hyperlinks/links, which are the elements in a hypertext document that allow you to jump from one topic to another.

Understanding Markup Languages Markup Language: is a language that describes a document’s structure and content. Web Site: an entire collection of linked documents. The hypertext documents within a Web Site are known as Web Pages. Styles: are format descriptions written in a separate language from HTML that tell browsers how to render each element.

History of HTML Hypertext Markup Language (HTML): a nonproprietary markup language that a Web browser interprets and uses to display the content as a Web page. The first version of HTML was created using the Standard Generalized Markup Language (SGML) in 1989 by Tim Berners-Lee and Robert Calliau. SGML is a strong and highly flexible metalanguage (language used to create other languages).

History of HTML In the early years after HTML was created, no one organization was responsible for the language. Browsers (Netscape and IE) introduced some differences in the language. Such changes to the language were called extensions. These extensions were providing Web page authors with more options. Web designers faced the challenge of determining which browser or browser version supported a particular extension, and creating a workaround for browsers that did not.

History of HTML A group of Web developers, programmers, and authors formed the World Wide Web Consortium or the W3C. (http://www.w3c.org) The World Wide Web Consortium (W3C) developed specifications, or sets of standards, that identify how a browser interprets the HTML code. The specifications are voluntary, but most organizations follow the specifications as much as possible. The current specification for HTML is HTML5.

Versions of HTML

History of HTML Extensible Markup Language (XML): a popular markup language that began in 1998 to describe the format and structure of data. Extensible Hypertext Markup Language (XHTML) or XHTML 1.1: combines the formatting features of HTML with a stricter syntax that works to combine HTML and XML so that Web content is more readily and easily delivered to all devices that are connected to the Internet is compatible with the HTML 4.01 specification Hypertext Markup Language 5 (HTML5) is the current version of HTML.

Understanding Tags and Attributes Older features of HTML are often deprecated or phased out by the W3C. Elements: distinct object in the document, like a paragraph, a heading, or the page’s title. Even the whole document can be considered an element. Tags: codes that indicate different elements on a Web page such as headings, paragraphs, and bulleted lists. Nested tags: tags that are included within other tags. Tags are either two-sided and require a a tag at the beginning and the end of the element, or they are one-sided. A two-sided tag: <element>content</element> <p>A new paragraph here</p> A one-sided tag (also called empty elements since they contain no content): <element > <br>

Understanding Tags and Attributes A third type of tag is the comment tag. They are not displayed or used by the Web browser. <!-- This is a comment line --> <!– this is a multiple comment lines --> White space: the blank spaces, tabs, and line breaks. When a browser encounters consecutive occurrences of white space, it collapses them into a single occurrence. Some tags include attributes that specify additional information about the content to be formatted by the tag. <element attribute1=“value1” attribute2=“value2”…>content</element> <p id=“new_para” name=“new_para”>This is a new paragraph</p> NOTE: “element” refers to an object in a Web page, and “tag” refers to the HTML code that creates the object. We can create a “p” (paragraph) element in a Web page by using a <p> tag.

Creating an HTML Document It is a good idea to plan out a Web page before you start coding. Draw a planning sketch or create a sample document using a word processor. Preparatory work can weed out errors or point to potential problems. In planning, identify a document’s different elements. An element is a distinct object in the document, like a paragraph, a heading, or a page’s title. Formatting features such as boldfaced font, and italicized text may be used.

The Structure of an HTML File The opening <html> tag marks the start of an HTML document, and the closing </html> tag tells a browser when it has reached the end of that HTML document. Anything between these two tags makes up the content of the document, including all other elements, text, and comments.

The Structure of an HTML File An HTML document is divided into two parts: the head and the body. The head element contains information about the document, for example the document title or the keywords. The content of the head element is not displayed within the Web page. The title element contains the page’s title. A document’s title is usually displayed in the title bar.

The Structure of an HTML File The body element contains all of the content to be displayed in the Web page. The body element can contain code that tells the browser how to render the content.

Sample HTML Code

Displaying an HTML File As you work on a Web page, you should occasionally view it with your Web browser to verify that the file contains no syntax errors or other problems. You may want to view the results using different browsers to check for compatibility.

Initial Web page viewed in Internet Explorer

Block-Level Elements and Inline Elements In a Web page, most content is marked as either a block-level element or an inline element. A block-level element contains content displayed in a separate section within the page, setting it off from other blocks. For example, Paragraph <p> </p>, Heading <h1..6> </h1..6>, Ordered List <ol> </ol>, Unordered List <ul> </ul> An inline element is part of the same block as its surrounding content—for example individual words or phrases within a paragraph. Such as, Bold text <b> </b>, Citation text <cite> </cite>, Deleted text <del> </del>, Italic text <i> </i>, Subscript text <sub> </sub>, Superscript text <sup> </sup>

Block-Level Elements - Heading HTML supports six heading elements.

Block-Level Element - Paragraph A paragraph element is using the <p> tag. <p>content</p> Where content is the content of the paragraph. When a browser encounters the opening <p> tag, it starts a new line with a blank space above it.