SlideShare ist ein Scribd-Unternehmen logo
1 von 41
Downloaden Sie, um offline zu lesen
Intro to HTML

February 13, 2008
IST 523
Denise A. Garofalo
Topics
♦ Background & naming documents
♦ Anatomy
♦ Headings, font size, alignment
♦ Linking
♦ Images
♦ Tables
♦ XML, metadata
♦ Resource sites
HTML
♦ short for hypertext markup language
   • Hyper is the opposite of linear. HTML does
     not hold to the old linear pattern but allows
     the person viewing the Web page to go
     anywhere, any time
   • Text is what you will use
   • Mark up is what you will do
   • Language it's a language, really -- but the
     language is plain English
Writing HTML
♦ by hand
   – using tools such as NotePad on Windows
   – SimpleText on the Mac
♦ using an HTML assistant program
   – easier than by hand
   – but harder to understand HTML because
     the program does all work
HTML documents
♦ must be text only
♦ when you save an HTML document, you
  must save only the text, nothing else.
♦ HTML browsers can only read text
  – They don't understand anything else
Learning from others
♦ look at others’ Web pages
♦ When you find a page you like, click on VIEW
  at the top of the screen
♦ Choose DOCUMENT SOURCE from the menu.
  Sometimes it only reads SOURCE.
♦ The HTML document will appear on the
  screen.
♦ It may look like chicken-scratch but later
  you'll be able to find exactly how a certain
  HTML presentation was performed
HTML annotations
♦ Web page authors may write notes or
  describe what is happening within the
  HTML document
  – these notes show in the HTML source, not
    the Web page display
  – they write their notes in the following
    format:
♦ <!-- start of syllabus and definitions -->
Naming HTML documents
♦ Basic format--name and suffix
♦ Follow this format to name your document:
   – Choose a name. Anything.
   – Add a suffix. For all HTML documents, you will add
     either quot;.htmquot; or quot;.htmlquot;.
♦ Name the file anything you want
   – Tree followed by .html so the file name is
     tree.html.
♦ .html tells the computer that this file is an
 HTML document
♦ All files used on the Web will follow the
 format of quot;name.suffix.quot;
Basic HTML anatomy
♦ HTML works in a very simple, very
  logical, format
♦ reads from top to bottom, left to right
♦ HTML is written with TEXT
♦ Tags are used to set certain sections
  apart and to specify their format (as
  bigger text, smaller text, bold text,
  underlined text)
Basic HTML anatomy--tags
♦ tags are like commands
♦ To make a line of text bold put a tag at
  the exact point you want the bold
  lettering to start and another tag where
  you want the bold lettering to stop
♦ To make a word italic place a start italic
  tag at the beginning of the word and an
  end italic tag at the end of the word
Basic HTML anatomy--tags
♦ All tag formats are the same
   – They begin with a less-than sign: < and end with
     a greater-than sign: >
   – What goes inside the < and > is the tag
   – Learning HTML is learning the tag to perform
     whatever command you want to do
♦ The tag for bold lettering is quot;Bquot;. Here's what
  the tags look like to turn the word quot;Samquot;
  bold:         <B>Sam</B>
Basic HTML anatomy--tags
♦ What happened “behind the scenes”
  – <B> is the beginning bold tag
  – quot;Samquot; is the word being affected by the
    <B> tag
  – </B> is the end bold tag. Notice it is
    exactly the same as the beginning tag
    except there is a slash in front of the tag
    command
  – what the bold tags above produce in a
    Web browser: Sam
Basic HTML quick points
♦ The end tag is simply the begin tag with the
  added slash <a> </a>
♦ Not all tags will show up on a page, because
  the commands are placed inside the < and >
  marks
  – the tag is used to alter the text, but unless you
    view the page source the code is hidden from
    view.
♦ The command inside the <> does not have
  to be a capital letter; the browser doesn’t
  care
  – for ease when coding keep the tag in caps
More HTML quick points
♦ not everything on a web page needs to have
  tags
♦ if you want to format the text with italics or
  underlines or bold, or if you want to center
  text, etc., you will need to use tags
♦ if you forget to add an end tag it will be
  obvious when you view the document in your
  browser
  – the entire document after the point where you
    forget the end tag will be affected
  – to fix, go back into the document, add the slash,
    save, and then reload
More HTML quick points
♦ two tags can affect text at the same time
   – make sure to begin and end both
   – <B><I>Bold and Italic</I></B> gives you Bold
     and Italic
♦ when using more than one tag:
   – set the beginning and end tags at the same time
   – always placing them on the farthest end of the
     item being affected
   – note above that the Bold tags are on the far ends,
     with the Italics next
   – set commands at the farthest ends each time you
     add them
And the last HTML quick points
♦ start every page with this tag: <HTML>
   – next tags will always be these: <TITLE>
     and </TITLE>
   – whatever is between these two tags will
     show up in the title bar way at the top of
     the browser
♦ end every page you write with this tag:
  <HTML>
  – you started the page with HTML and you
    will end the page with /HTML
Headings
♦ Heading commands are used to create
 headings
  – there are six (6) heading commands: <H1>
    through <H6>
  – <H1> is the largest and <H6> is the smallest
  – heading commands create nice, bold text with a
    simple H# and /H# command
♦ When using a heading command you set the
 text alone
  – the heading commands carry a pseudo <P>
    command with them
  – other text cannot sit right up against a heading
Font size
♦ heading commands great for the top of
  the page
♦ get a little more control over your text
  size via the <FONT SIZE> commands
  – there are twelve (12) font size commands
    available: +6 through +1 and -1 through
    -6
  – +6 is the largest (it's huge); -6 is the
    smallest (it's a little too small)
Aligning text
♦ Default alignment is left-justified
♦ To center text you surround the text you
  want centered with simple <CENTER> and
  </CENTER> commands:
            <CENTER> All text in here will be
  centered </CENTER>
♦ To align text on the right, set the text aside
  as a separate paragraph using the <P>
  command plus an attribute:
  <P ALIGN=quot;rightquot;>Text in the paragraph is
  pushed to the right</P>.
Creating a link
♦ links to another page are a set tag format
  <A HREF=quot;http://URL of the web pagequot;>text
  you want to display on the web page</A>
  • A stands for Anchor. It begins the link to another
    page.
  • HREF stands for Hypertext REFerence. That says
    to the browser, quot;This is where the link is going to
    go.quot;
  • URL of the web site is the FULL ADDRESS of the
    link. Also notice that the address has an equal
    sign in front of it and is enclosed in quotes,
    because it's an attribute of the Anchor tag, a
    command inside of a command
Creating a link, cont.
♦ quot;text you want to display on the web
  pagequot; is where you write the text you
  want to appear on the page
♦ What is in that space will appear on the
  page for the viewer to click--write
  something that denotes the link.
♦ /A ends the entire link command.
Adding an e-mail link
♦ known as mailto: commands
♦ follows the same coding scheme as a link
♦ places wording on the screen that people can
  click to send you a piece of e-mail
♦ pattern is:
             <A HREF=quot;mailto:e-mail
  addressquot;>text to display</A>
♦ same format as a link except you write quot;mailto:quot;
  in place of the “http://” and your e-mail address
  in place of the page address
   – still need the </A> tag at the end
   – note there is NO SPACE between the colon and the e-
     mail address
Images
♦ format for placing an image:
          <IMG SRC=quot;filename.gifquot;>
  • IMG stands for quot;imagequot; and tells the browser that
    an image will go here on the page wherever you
    write in the image tag
  • SRC stands for quot;sourcequot; and this is an attribute, a
    command inside a command, that tells the
    browser where to go to find the image
  • filename.gif is the name of the image, and this
    file name follows the same format as HTML docs
     • name (of the image file) then a dot
     • then there is a suffix (gif) or .jpg or .bmp
Image info
♦ place image files in the same directory as the
  page
  – you can call for the image by name alone
  – otherwise you'll have to start adding directories
    and sub-directories to the SRC attribute
  – some place all their images in an image directory;
    that can cut down on the confusion
♦ be consistent on where you locate images or
  else the image won’t display
Image file types
♦ three basic image formats on the Web and
  they have different suffixes
  – .gif This is generally pronounced quot;gifquot; (hard quot;Gquot;),
    an acronym for Graphics Interchange Format that
    browsers can handle quite easily
  – .jpeg or .jpg (pronounced quot;j-pegquot;) an acronym
    for Joint Photographic Experts Group, and this
    format uses compression after it's been created
  – .bmp (pronounced quot;bimpquot;) or a quot;bitmap.quot;
    Internet Explorer browsers allow images as
    bitmaps (images a computer produces and places
    for you, such as a counter)
Clickable images
♦ An image where if you click on it you
  activate a hypertext link to another web
  page
♦ The format is:
  <A HREF=quot;http://URL of the web
  pagequot;><IMG SRC=quot;filename.gifquot;></A>
♦ Places an image tag where normally
  there would be words
♦ entire image is “clickable,” or active
Image attributes
♦ use the “alt” attribute to provide alternate
  text to display when you hover over any
  image
♦ alternate text is especially important for
  users:
   – browsing with a text-only browser
   – that cannot see and are using audible readers with
     their browser to surf the web
♦ format is <alt=brief description of image>
  and follows after the IMG SRC tag:
    <IMG SRC=quot;UpArrow.gifquot; ALT=quot;Upquot;>
Tables
♦ very useful for presentation of tabular
  information
♦ Useful to creative HTML authors who
  use the table tags to present their
  regular Web pages
  – tables can control page layout
Table format
♦   <TABLE>
♦   <!-- start of table definition -->
♦
♦   <CAPTION> caption contents </CAPTION>
♦   <!-- caption definition -->
♦
♦   <TR>
♦   <!-- start of header row definition -->
♦     <TH> first header cell contents </TH>
♦     <TH> last header cell contents </TH>
♦   </TR>

♦ <!-- end of header row definition -->
♦ <TR>
Table format, continued
♦   <!-- start of first row definition -->
♦     <TD> first row, first cell contents </TD>
♦     <TD> first row, last cell contents </TD>
♦   </TR>
♦   <!-- end of first row definition -->
♦
♦   <TR>
♦   <!-- start of last row definition -->
♦     <TD> last row, first cell contents </TD>
♦     <TD> last row, last cell contents </TD>
♦   </TR>
♦   <!-- end of last row definition -->
♦
♦   </TABLE>
♦   <!-- end of table definition -->
Publishing a Web page
♦ use an FTP program (File Transfer
 Protocol)
  – a small program that allows you to place
    files from your computer to your service
    provider's computer
  – get an FTP program and directions from
    your ISP
  – or check out utilities
XML
♦   acronym for Extensible Markup Language
♦   a set of rules
♦   published by the W3C (World Wide Web Consortium)
♦   for building new languages
    – languages in question are not written or spoken
    – they're intended to simplify information sharing among
      software and humans
    – languages, and the documents in which they're quot;written,quot;
      share common characteristics
♦ XML delimits blocks of content with intelligible,
    structure-defining markup to add meaning to the
    content
XML documents
♦ add meaning with plain-text contents
♦ scatters little verbal signposts among the
  content
♦ impose a structure which is immediately
  understandable even if what is being
  structured is not obvious
♦ signposts are called markup
♦ special characters come into play
  – no XML document does not include the most
    important characters
  – the <, >, and / (less-than, greater-than, and
    slash)
XML example
♦ the markup is in boldface between and angle
 brackets:
<sentence><clause>Benedict Arnold
 didn<punctuation type=quot;apostrophequot;/>
 cross the Delaware<punctuation
 type=quot;semi-
 colonquot;/></clause><clause>he crossed his
 country<punctuation
 type=quot;periodquot;/></clause></sentence>
Legible XML example
♦ <sentence>
   <clause>Benedict Arnold
 didn<punctuation
 type=quot;apostrophequot;/>t cross the
 Delaware<punctuation type=quot;semi-
 colonquot;/></clause>
   <clause>he crossed his
 country<punctuation
 type=quot;periodquot;/></clause>
 </sentence>
XML quick points
♦ each clause is subordinate to the overall
  sentence
♦ within a clause there may be a mixture of the
  plain text and punctuation
♦ punctuation could have been left as literal
  text, rather than defined via markup
♦ the markup itself is human-readable
  – an elementary understanding of English grammar
    for the meaning of quot;sentence,quot; quot;clause,quot; and
    quot;punctuationquot;
XML quick points
♦ XML is all about well-formedness
♦ well-formedness are the specific rules
 with which all XML documents must
 comply in order to be minimally
 legitimate XML
More XML well-formedness
• element and attribute names are case-
  sensitive (a SENTENCE element is not the
  same as a sentence element)
  • so is the corresponding markup
• attribute values must be enclosed in single or
  double quotation marks
• the nesting of one element within another, as
  defined by the placement of tags, is precise
  • Every start tag must be balanced with one end tag
  • no overlap of the boundaries between one
    element and the next is permitted
More XML points
♦ each well-formed XML document has one and
  only one quot;outermost element,quot; within which
  all the others are nested
   – the root element.
♦ an XML document is a string of plain text
  – delimited by markup
  – in a well-structured form including a single root
    element and others, nested inside one another
  – XML was designed to describe data and to focus
    on what data is
  – HTML was designed to display data and to focus
    on how data looks
Metadata
♦ data about data
♦ the background information that describes:
   –   the content
   –   the quality
   –   the condition
   –   and other appropriate characteristics of the data
♦ paper maps contain metadata as part of the map
  legend
   – For the paper map, metadata is readily apparent and easily
     transferred between map producers and map users
   – For digital map data, metadata development and
     maintenance often requires a more conscious effort on the
     part of data producers and the chain of users who may
     modify the data
Questions?

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Html ppt
Html pptHtml ppt
Html ppt
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
 
HTML
HTMLHTML
HTML
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Html
HtmlHtml
Html
 
Html Tutorial
Html TutorialHtml Tutorial
Html Tutorial
 
Html 5
Html 5Html 5
Html 5
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html basic
Html basicHtml basic
Html basic
 
HTML
HTMLHTML
HTML
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)
 
Html basics
Html basicsHtml basics
Html basics
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 

Andere mochten auch (8)

Notes i am_who_on_internet
Notes i am_who_on_internetNotes i am_who_on_internet
Notes i am_who_on_internet
 
Session6
Session6Session6
Session6
 
Library Boot Camp Notes
Library Boot Camp NotesLibrary Boot Camp Notes
Library Boot Camp Notes
 
Session9
Session9Session9
Session9
 
Concepts review
Concepts reviewConcepts review
Concepts review
 
I Am WHO on the Internet?
I Am WHO on the Internet?I Am WHO on the Internet?
I Am WHO on the Internet?
 
Library Boot Camp: Basic Cataloging, Part 2
Library Boot Camp: Basic Cataloging, Part 2Library Boot Camp: Basic Cataloging, Part 2
Library Boot Camp: Basic Cataloging, Part 2
 
Library Boot Camp: Basic Cataloging, Part 1
Library Boot Camp: Basic Cataloging, Part 1Library Boot Camp: Basic Cataloging, Part 1
Library Boot Camp: Basic Cataloging, Part 1
 

Ähnlich wie Session4

Html basic
Html basicHtml basic
Html basic
mukultsb
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
TEJASARGADE5
 
HTML Advanced
HTML AdvancedHTML Advanced
HTML Advanced
c525600
 
Web pageassignment
Web pageassignmentWeb pageassignment
Web pageassignment
beachtch
 
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxHTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docx
adampcarr67227
 

Ähnlich wie Session4 (20)

Html basics
Html basicsHtml basics
Html basics
 
Notes4
Notes4Notes4
Notes4
 
Basic HTML Tutorial For Beginners
Basic HTML Tutorial For BeginnersBasic HTML Tutorial For Beginners
Basic HTML Tutorial For Beginners
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
 
Html basic
Html basicHtml basic
Html basic
 
html.pptx
html.pptxhtml.pptx
html.pptx
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
 
How to update HTML files
How to update HTML filesHow to update HTML files
How to update HTML files
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
belajar HTML
belajar HTML belajar HTML
belajar HTML
 
HTML Advanced
HTML AdvancedHTML Advanced
HTML Advanced
 
html
htmlhtml
html
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Web pageassignment
Web pageassignmentWeb pageassignment
Web pageassignment
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxHTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docx
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

Session4

  • 1. Intro to HTML February 13, 2008 IST 523 Denise A. Garofalo
  • 2. Topics ♦ Background & naming documents ♦ Anatomy ♦ Headings, font size, alignment ♦ Linking ♦ Images ♦ Tables ♦ XML, metadata ♦ Resource sites
  • 3. HTML ♦ short for hypertext markup language • Hyper is the opposite of linear. HTML does not hold to the old linear pattern but allows the person viewing the Web page to go anywhere, any time • Text is what you will use • Mark up is what you will do • Language it's a language, really -- but the language is plain English
  • 4. Writing HTML ♦ by hand – using tools such as NotePad on Windows – SimpleText on the Mac ♦ using an HTML assistant program – easier than by hand – but harder to understand HTML because the program does all work
  • 5. HTML documents ♦ must be text only ♦ when you save an HTML document, you must save only the text, nothing else. ♦ HTML browsers can only read text – They don't understand anything else
  • 6. Learning from others ♦ look at others’ Web pages ♦ When you find a page you like, click on VIEW at the top of the screen ♦ Choose DOCUMENT SOURCE from the menu. Sometimes it only reads SOURCE. ♦ The HTML document will appear on the screen. ♦ It may look like chicken-scratch but later you'll be able to find exactly how a certain HTML presentation was performed
  • 7. HTML annotations ♦ Web page authors may write notes or describe what is happening within the HTML document – these notes show in the HTML source, not the Web page display – they write their notes in the following format: ♦ <!-- start of syllabus and definitions -->
  • 8. Naming HTML documents ♦ Basic format--name and suffix ♦ Follow this format to name your document: – Choose a name. Anything. – Add a suffix. For all HTML documents, you will add either quot;.htmquot; or quot;.htmlquot;. ♦ Name the file anything you want – Tree followed by .html so the file name is tree.html. ♦ .html tells the computer that this file is an HTML document ♦ All files used on the Web will follow the format of quot;name.suffix.quot;
  • 9. Basic HTML anatomy ♦ HTML works in a very simple, very logical, format ♦ reads from top to bottom, left to right ♦ HTML is written with TEXT ♦ Tags are used to set certain sections apart and to specify their format (as bigger text, smaller text, bold text, underlined text)
  • 10. Basic HTML anatomy--tags ♦ tags are like commands ♦ To make a line of text bold put a tag at the exact point you want the bold lettering to start and another tag where you want the bold lettering to stop ♦ To make a word italic place a start italic tag at the beginning of the word and an end italic tag at the end of the word
  • 11. Basic HTML anatomy--tags ♦ All tag formats are the same – They begin with a less-than sign: < and end with a greater-than sign: > – What goes inside the < and > is the tag – Learning HTML is learning the tag to perform whatever command you want to do ♦ The tag for bold lettering is quot;Bquot;. Here's what the tags look like to turn the word quot;Samquot; bold: <B>Sam</B>
  • 12. Basic HTML anatomy--tags ♦ What happened “behind the scenes” – <B> is the beginning bold tag – quot;Samquot; is the word being affected by the <B> tag – </B> is the end bold tag. Notice it is exactly the same as the beginning tag except there is a slash in front of the tag command – what the bold tags above produce in a Web browser: Sam
  • 13. Basic HTML quick points ♦ The end tag is simply the begin tag with the added slash <a> </a> ♦ Not all tags will show up on a page, because the commands are placed inside the < and > marks – the tag is used to alter the text, but unless you view the page source the code is hidden from view. ♦ The command inside the <> does not have to be a capital letter; the browser doesn’t care – for ease when coding keep the tag in caps
  • 14. More HTML quick points ♦ not everything on a web page needs to have tags ♦ if you want to format the text with italics or underlines or bold, or if you want to center text, etc., you will need to use tags ♦ if you forget to add an end tag it will be obvious when you view the document in your browser – the entire document after the point where you forget the end tag will be affected – to fix, go back into the document, add the slash, save, and then reload
  • 15. More HTML quick points ♦ two tags can affect text at the same time – make sure to begin and end both – <B><I>Bold and Italic</I></B> gives you Bold and Italic ♦ when using more than one tag: – set the beginning and end tags at the same time – always placing them on the farthest end of the item being affected – note above that the Bold tags are on the far ends, with the Italics next – set commands at the farthest ends each time you add them
  • 16. And the last HTML quick points ♦ start every page with this tag: <HTML> – next tags will always be these: <TITLE> and </TITLE> – whatever is between these two tags will show up in the title bar way at the top of the browser ♦ end every page you write with this tag: <HTML> – you started the page with HTML and you will end the page with /HTML
  • 17. Headings ♦ Heading commands are used to create headings – there are six (6) heading commands: <H1> through <H6> – <H1> is the largest and <H6> is the smallest – heading commands create nice, bold text with a simple H# and /H# command ♦ When using a heading command you set the text alone – the heading commands carry a pseudo <P> command with them – other text cannot sit right up against a heading
  • 18. Font size ♦ heading commands great for the top of the page ♦ get a little more control over your text size via the <FONT SIZE> commands – there are twelve (12) font size commands available: +6 through +1 and -1 through -6 – +6 is the largest (it's huge); -6 is the smallest (it's a little too small)
  • 19. Aligning text ♦ Default alignment is left-justified ♦ To center text you surround the text you want centered with simple <CENTER> and </CENTER> commands: <CENTER> All text in here will be centered </CENTER> ♦ To align text on the right, set the text aside as a separate paragraph using the <P> command plus an attribute: <P ALIGN=quot;rightquot;>Text in the paragraph is pushed to the right</P>.
  • 20. Creating a link ♦ links to another page are a set tag format <A HREF=quot;http://URL of the web pagequot;>text you want to display on the web page</A> • A stands for Anchor. It begins the link to another page. • HREF stands for Hypertext REFerence. That says to the browser, quot;This is where the link is going to go.quot; • URL of the web site is the FULL ADDRESS of the link. Also notice that the address has an equal sign in front of it and is enclosed in quotes, because it's an attribute of the Anchor tag, a command inside of a command
  • 21. Creating a link, cont. ♦ quot;text you want to display on the web pagequot; is where you write the text you want to appear on the page ♦ What is in that space will appear on the page for the viewer to click--write something that denotes the link. ♦ /A ends the entire link command.
  • 22. Adding an e-mail link ♦ known as mailto: commands ♦ follows the same coding scheme as a link ♦ places wording on the screen that people can click to send you a piece of e-mail ♦ pattern is: <A HREF=quot;mailto:e-mail addressquot;>text to display</A> ♦ same format as a link except you write quot;mailto:quot; in place of the “http://” and your e-mail address in place of the page address – still need the </A> tag at the end – note there is NO SPACE between the colon and the e- mail address
  • 23. Images ♦ format for placing an image: <IMG SRC=quot;filename.gifquot;> • IMG stands for quot;imagequot; and tells the browser that an image will go here on the page wherever you write in the image tag • SRC stands for quot;sourcequot; and this is an attribute, a command inside a command, that tells the browser where to go to find the image • filename.gif is the name of the image, and this file name follows the same format as HTML docs • name (of the image file) then a dot • then there is a suffix (gif) or .jpg or .bmp
  • 24. Image info ♦ place image files in the same directory as the page – you can call for the image by name alone – otherwise you'll have to start adding directories and sub-directories to the SRC attribute – some place all their images in an image directory; that can cut down on the confusion ♦ be consistent on where you locate images or else the image won’t display
  • 25. Image file types ♦ three basic image formats on the Web and they have different suffixes – .gif This is generally pronounced quot;gifquot; (hard quot;Gquot;), an acronym for Graphics Interchange Format that browsers can handle quite easily – .jpeg or .jpg (pronounced quot;j-pegquot;) an acronym for Joint Photographic Experts Group, and this format uses compression after it's been created – .bmp (pronounced quot;bimpquot;) or a quot;bitmap.quot; Internet Explorer browsers allow images as bitmaps (images a computer produces and places for you, such as a counter)
  • 26. Clickable images ♦ An image where if you click on it you activate a hypertext link to another web page ♦ The format is: <A HREF=quot;http://URL of the web pagequot;><IMG SRC=quot;filename.gifquot;></A> ♦ Places an image tag where normally there would be words ♦ entire image is “clickable,” or active
  • 27. Image attributes ♦ use the “alt” attribute to provide alternate text to display when you hover over any image ♦ alternate text is especially important for users: – browsing with a text-only browser – that cannot see and are using audible readers with their browser to surf the web ♦ format is <alt=brief description of image> and follows after the IMG SRC tag: <IMG SRC=quot;UpArrow.gifquot; ALT=quot;Upquot;>
  • 28. Tables ♦ very useful for presentation of tabular information ♦ Useful to creative HTML authors who use the table tags to present their regular Web pages – tables can control page layout
  • 29. Table format ♦ <TABLE> ♦ <!-- start of table definition --> ♦ ♦ <CAPTION> caption contents </CAPTION> ♦ <!-- caption definition --> ♦ ♦ <TR> ♦ <!-- start of header row definition --> ♦ <TH> first header cell contents </TH> ♦ <TH> last header cell contents </TH> ♦ </TR> ♦ <!-- end of header row definition --> ♦ <TR>
  • 30. Table format, continued ♦ <!-- start of first row definition --> ♦ <TD> first row, first cell contents </TD> ♦ <TD> first row, last cell contents </TD> ♦ </TR> ♦ <!-- end of first row definition --> ♦ ♦ <TR> ♦ <!-- start of last row definition --> ♦ <TD> last row, first cell contents </TD> ♦ <TD> last row, last cell contents </TD> ♦ </TR> ♦ <!-- end of last row definition --> ♦ ♦ </TABLE> ♦ <!-- end of table definition -->
  • 31. Publishing a Web page ♦ use an FTP program (File Transfer Protocol) – a small program that allows you to place files from your computer to your service provider's computer – get an FTP program and directions from your ISP – or check out utilities
  • 32. XML ♦ acronym for Extensible Markup Language ♦ a set of rules ♦ published by the W3C (World Wide Web Consortium) ♦ for building new languages – languages in question are not written or spoken – they're intended to simplify information sharing among software and humans – languages, and the documents in which they're quot;written,quot; share common characteristics ♦ XML delimits blocks of content with intelligible, structure-defining markup to add meaning to the content
  • 33. XML documents ♦ add meaning with plain-text contents ♦ scatters little verbal signposts among the content ♦ impose a structure which is immediately understandable even if what is being structured is not obvious ♦ signposts are called markup ♦ special characters come into play – no XML document does not include the most important characters – the <, >, and / (less-than, greater-than, and slash)
  • 34. XML example ♦ the markup is in boldface between and angle brackets: <sentence><clause>Benedict Arnold didn<punctuation type=quot;apostrophequot;/> cross the Delaware<punctuation type=quot;semi- colonquot;/></clause><clause>he crossed his country<punctuation type=quot;periodquot;/></clause></sentence>
  • 35. Legible XML example ♦ <sentence> <clause>Benedict Arnold didn<punctuation type=quot;apostrophequot;/>t cross the Delaware<punctuation type=quot;semi- colonquot;/></clause> <clause>he crossed his country<punctuation type=quot;periodquot;/></clause> </sentence>
  • 36. XML quick points ♦ each clause is subordinate to the overall sentence ♦ within a clause there may be a mixture of the plain text and punctuation ♦ punctuation could have been left as literal text, rather than defined via markup ♦ the markup itself is human-readable – an elementary understanding of English grammar for the meaning of quot;sentence,quot; quot;clause,quot; and quot;punctuationquot;
  • 37. XML quick points ♦ XML is all about well-formedness ♦ well-formedness are the specific rules with which all XML documents must comply in order to be minimally legitimate XML
  • 38. More XML well-formedness • element and attribute names are case- sensitive (a SENTENCE element is not the same as a sentence element) • so is the corresponding markup • attribute values must be enclosed in single or double quotation marks • the nesting of one element within another, as defined by the placement of tags, is precise • Every start tag must be balanced with one end tag • no overlap of the boundaries between one element and the next is permitted
  • 39. More XML points ♦ each well-formed XML document has one and only one quot;outermost element,quot; within which all the others are nested – the root element. ♦ an XML document is a string of plain text – delimited by markup – in a well-structured form including a single root element and others, nested inside one another – XML was designed to describe data and to focus on what data is – HTML was designed to display data and to focus on how data looks
  • 40. Metadata ♦ data about data ♦ the background information that describes: – the content – the quality – the condition – and other appropriate characteristics of the data ♦ paper maps contain metadata as part of the map legend – For the paper map, metadata is readily apparent and easily transferred between map producers and map users – For digital map data, metadata development and maintenance often requires a more conscious effort on the part of data producers and the chain of users who may modify the data