HTML Intro.

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Cascading Style Sheets
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML Basics Web pages used to be written exclusively in html
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
4.01 Cascading Style Sheets
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Creating a Simple Page: HTML Overview
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
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.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
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 Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
Agenda Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
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.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Basic Webpage Design Formatting tags.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML.
Introduction to HTML.
More HTML Tags CS 1150 Spring 2017.
HTML Basics.
HTML TEXT.
LAB Work 01 MBA 61062: E-Commerce
4.01 Cascading Style Sheets
More HTML Tags CS 1150 Fall 2016.
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
Creating a Web Page.
CSCI-235 Micro-Computers in Science
HTML5 – Heading, Paragraph
Elements of HTML Web Design – Sec 3-2
Internet & Web Engineering Course Code:CS-228 Credit Hours (3+1) Lab 1 Introduction to Markup Language HTML Instructor: Muhammad Zeeshan Haider.
Tag Basics.
Computers and Scientific Thinking David Reed, Creighton University
Introduction to HTML- Basics
COMS 161 Introduction to Computing
4.01 Cascading Style Sheets
Lesson 2: HTML5 Coding.
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

HTML Intro

Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style sheets do?

Where do we start? Need content Give the document structure Identify the different text elements Add some images Specify page appearance with style sheet

Create a file Use your favorite text editor Create a new file Notepad++ is on the computers in lab I use either TextWrangler, Sublime, or Taco HTML Edit on Mac (first two are free) Doesn’t matter which you use, but it must be a TEXT editor. The ones mentioned above are helpful with context styling Create a new file Add the basic HTML elements Save it in an appropriate directory with the extension .html Demo

Basic file structure

HTML Elements Format <elementname> Content here </elementname> Examples <h1> This is a heading </h1> <p> This is a paragraph. </p> <p> So is this… What happens if I separate my lines? </p>

What Browsers Ignore Multiple “white” spaces Line breaks (carriage returns) Tabs Unrecognized markup – ie. anything they don’t understand Comments <!-- comment in here -->

Identifying Text Elements Use HTML to add meaning and structure to the content, NOT how it should appear. Choose elements based on what makes sense structurally Each element has a default style Use CSS to change how elements should appear

Block Elements Examples: Paragraphs <p> Headings <h1>, <h2>, …, <h6> Lists <ul>, <ol>, <li> Treated as though they are rectangular boxes that are stacked up in the page. Each one takes up the entire width of the web browser’s window <p>, <h1>, <h2>, ..., <h6> have top and bottom margins 16px = 1em = height of 12pt line of text

Inline Elements Examples: <strong> or <b> <em> or <i> <a> Creates an invisible box around the text being formatted This is an <b>important</b> word This is an important word No border, padding or margin in or around the box

Inline Elements, examples Description a An anchor or hypertext link abbr Abbreviation b Added visual attention, such as keywords (bold) br Line break cite Citation; a reference to the title of a work, such as a book title code Computer code sample del Deleted text; indicates an edit made to a document dfn The defining instance or first occurrence of a term em Emphasized text i Alternative voice (italic) ins Inserted text; indicates an insertion to a document kbd Keyboard; text entered by a user (for technical documents)

Inline Elements, examples Description mark Contextually relevant text q Short, inline quotation s Incorrect text (strike-through) samp Sample output from programs small Small print, such as a copyright or legal notice span Generic phrase content strong Content of strong importance sub Subscript sup Superscript time Machine-readable time data u Text that would normally be underlined, such as formal name or misspelled word var A variable or program argument (for technical documents)

Empty Elements Examples: <br> <img> Elements do not have opening and closing tags and no content, they are just giving a directive. Not very useful without more information. Give information to these tags with attributes

HTML Elements & Attributes Format <tagname attribute=“value”> Content </tagname> Or <tagname attribute=“value”> Examples <a href=“www.siena.edu”> Siena College</a> <img src=“cats.jpg” width=“200” alt=“Picture of cats”>

Power of Style Sheets Most of the default styling of HTML elements are basic To see power of style sheets: CSS Zen Garden All pages use exact same HTML file