Introduction to HTML

Similar documents
INTRODUCTION TO WEB USING HTML What is HTML?

Desire2Learn: HTML Basics

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

o Line Breaks </body> </html> This is heading 1 This is some text. This is heading 2 This is some other text. This is heading 2

Introduction to Computer Science (I1100) Internet. Chapter 7

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

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

c122jan2714.notebook January 27, 2014

Hyper Text Markup Language

Programmazione Web a.a. 2017/2018 HTML5

Introduction to Computer Science (I1100) Internet. Chapter 7

Hyper Text Markup Language

CSC 121 Computers and Scientific Thinking

HTML. Based mostly on

Management Information Systems

11. HTML5 and Future Web Application

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

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

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

HTML & CSS November 19, 2014

Unit 2 - HTML Formatting

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

introduction to XHTML

MPT Web Design. Week 1: Introduction to HTML and Web Design

A Balanced Introduction to Computer Science, 3/E

HTML and CSS: An Introduction

Web Engineering (Lecture 01)

HTML Hyper Text Markup Language

Web Programming Week 2 Semester Byron Fisher 2018

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

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

The Structural Layer (Hypertext Markup Language) Webpage Design

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

Web Designing HTML5 NOTES

Bridges To Computing

HTML (Hypertext Mark-up language) Basic Coding

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

By Ryan Stevenson. Guidebook #2 HTML

Certified HTML5 Developer VS-1029

Creating Web Pages Using HTML

HTML, CSS, JavaScript

Html basics Course Outline

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

A Brief Introduction to HTML

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

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

CMPT 165 Unit 2 Markup Part 2

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

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

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

INTRODUCTION TO HTML5! HTML5 Page Structure!

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

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

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

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

ITNP43: HTML Lecture 4

How the Internet Works

Introduction to Multimedia. MMP100 Spring 2017 thiserichagan.com/mmp100

CSC Web Programming. Introduction to HTML

(1) I (2) S (3) P allow subscribers to connect to the (4) often provide basic services such as (5) (6)

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

Hyper Text Markup Language HTML: A Tutorial

Web Development and HTML. Shan-Hung Wu CS, NTHU

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

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

Web Publishing Basics I

E , Fall 2007 More with stylesheets

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison

Introduction to Computers and Their Applications

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

Building Your Website

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Introduction to using HTML to design webpages

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

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

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

Introduction to WEB PROGRAMMING

HTMLnotesS15.notebook. January 25, 2015

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

TEST NAME: MMWD 4.01 TEST ID: GRADE:09 - Ninth Grade Twelfth Grade SUBJECT:Computer and Information Sciences TEST CATEGORY: My Classroom

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

Data Visualization (DSC 530/CIS )

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

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

Data Visualization (CIS/DSC 468)

Cadbury World Themed Web Page

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

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

CSCB20 Week 6. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2016

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

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

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Web Design and Development ACS Chapter 3. Document Setup

On a blog, code can mean many things. It can refer to the complicated

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

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Markup Language. Made up of elements Elements create a document tree

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

Transcription:

Introduction to HTML

What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages using markup HTML elements are the building blocks of HTML pages HTML elements are represented by tags HTML tags label pieces of content such as "heading", "paragraph", "table",... Browsers do not display the HTML tags, but use them to render the content of the page

An Example A paragraph is your content Putting your content into an HTML tag to make it look like a paragraph is structure <p>this is the content</p>

HTML Elements and Tags An element is an individual component of HTML - paragraph, image, header,... - an element name indicates its purpose: p for paragraph A tag marks the beginning and the end of an HTML element - Opening tag and Closing Tag <tagname>stuff in the middle</tagname>

HTML Tag Breakdown Taken from http://girldevelopit.github.io/gdi-featured-html-css-intro/class1.html#/16

Anatomy of an HTML element Container Element - An element that can contain other elements or content - A paragraph (<p>content</p>) contains text Stand Alone Element - An element that cannot contain anything else - <br/>, <img/>

Anatomy of an HTML element Attribute - Provides additional information about the HTML element - Class, ID, language, style, identity, source - Placed inside an opening tag, before the right angle bracket. Value - Value is the value assigned to a given attribute. - Values must be contained inside quotation marks. <img src="my_picture.jpg" />

HTML Page Structure <!DOCTYPE html> <html> <head> </head> <title>my title</title> <body> <h1>my heading</h1> <p>my paragraph</p> </html> </body> <img src="my_src"\>my image

<!DOCTYPE> The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly. It must only appear once, at the top of the page (before any HTML tags). The <!DoCtYpE> declaration is not case sensitive. The <!DOCTYPE> declaration for HTML5 is <!DOCTYPE html>

<html>,<head>,<body> After <!doctype>, the page content must be contained between <html> tags. The head contains the title of the page & meta information about the page. Meta information is not visible to the user, but has many purposes, like providing information to search engines. The body contains the actual content of the page. Everything that is contained in the body is visible to the user. (Some Exceptions!)

Let's create our first HTML page open a new file in your text editor and copy this code in it: <!DOCTYPE html> <html> <head> <title>title of the page </title> </head> <body> The page content here. </body> </html> save the document as myfirstpage.html and open it with a browser.

Nesting All elements "nest" inside one another Nesting is what happens when you put tags inside other containing tags. For example, you would put the <p> inside of the <body> tags. The <p> is now nested inside the <body> <body> <p>the paragraph goes here.</p> </body> Whichever element OPENS first CLOSES last

Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading <h1>this is heading 1</h1> This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6

Paragraphs HTML paragraphs are defined with the <p> tag: <p>this is a paragraph</p> <p>paragraph 2</p>

The Poem Problem and Line Breaks This poem will display in a single line: <p> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. </p> The browser will remove any extra spaces and extra lines when the page is displayed The <br> element defines a line break without starting a new paragraph. <p> My Bonnie lies over the ocean. <br> My Bonnie lies over the sea. <br> My Bonnie lies over the ocean. <br> Oh, bring back my Bonnie to me. </p>

Preformatted Text The HTML <pre> element defines preformatted text. The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks. <pre> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. </pre> This will be shown correctly with line breaks preserved.

Formatted Text <p> Here is a paragraph with <em>emphasized</em> text and <strong>important</strong> text. </p> <p> Here is another paragraph with <i>italic</i> text and <b>bold</b> text. </p> Here is a paragraph with Emphasized text and Important text. Here is another paragraph with Italic text and Bold text.

Formatted Text <p>here is a <mark>highlighted</mark> text and this is <small>smaller</small> text.</p> Here is a Highlighted text and this is smaller text. <p>here is <del>some deleted</del> text and this is <ins>some inserted</ins> text.</p> Here is some deleted text and this is some inserted text. <p>this is <sup>superscripted</sup> text and this is <sub>subscripted</sub> text.</p> Here is superscripted text and this is subscripted text.

Character Codes Many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add such symbols to an HTML page, you can use an HTML entity name or code. One character that I use most is See here for a complete list

Links HTML links are defined with the <a> tag The link's destination is specified in the href attribute. target attribute specifies where to open the linked document(_self,_blank,...) <a href="http://www.google.com" target="_blank">this is a link to Google!</a> This is a link to Google!

Images HTML images are defined with the <img> tag. The source file (src), alternative text (alt), width, and height are provided as attributes. <img src="fsu-logo.jpg" alt="fsu Logo" width="104" height="142">

Relative vs. Absolute paths for links & Images Relative paths change depending upon the page the link is on - Links within the same directory need no path information. "filename.jpg" - Subdirectories are listed without preceding slashes. "img/filename.jpg" Absolute paths refer to a specific location of a file, including the domain - Typically used when pointing to a link that is not within your own domain. - http://one.fsu.edu/alumni/image/community/clubs/fsu-seal-full-color.jpg

Lists Unordered list (bullets) List Item Another List Item Ordered list (sequence) 1. List Item 2. Another List Item <ul> <li>list Item</li> <li>another List Item</li> </ul> <ol> <li>list Item</li> <li>another List Item</li> </ol>

Lists Lists are used everywhere and can be customized to look as you want

Tables Tables are a way to represent complex information in a grid format. Tables are made up of rows and columns. <table> <tr> <th>head</th> <th>head</th> </tr> <tr> <td>data</td> <td>data</td> </tr> </table>

Tables Tables can be styled with CSS to add zebra striping or to highlight important rows/columns. Extra functionality can be added to tables like filtering or sorting rows and columns.

Comments You can add comments to your code that will not be seen by the browser, but only visible when viewing the code. Comments can be used to: - organize your code into sections - 'comment out' large chunks of code to hide it from the browser. <!-- Beginning of header --> <div id="header">header Content </div> <!-- End of header -->