HTML and Web Pages - PowerPoint PPT Presentation

About This Presentation
Title:

HTML and Web Pages

Description:

HTML and Web Pages HTML? HTML is not a programming language A type of SGML (standard generalized markup language) HTML uses paired tags to markup different elements ... – PowerPoint PPT presentation

Number of Views:62
Avg rating:3.0/5.0
Slides: 21
Provided by: Tere74
Category:
Tags: html | oranges | pages | web

less

Transcript and Presenter's Notes

Title: HTML and Web Pages


1
HTML and Web Pages
2
HTML?
  • HTML is not a programming language
  • A type of SGML (standard generalized markup
    language)
  • HTML uses paired tags to markup different
    elements of a page
  • We will discuss XHTML later.
  • Language that drives web pages in WWW
  • It is where we will start the semester

3
Editing Your HTML File
  • Try not to use Notepad use EditPlus instead
  • WYSIWYG editor, like FrontPage
  • PHP Designer or HTMLGateFree
  • Familiarize with the mechanics
  • Without using WISIWYG like Frontpage
  • Understand the coding behind web pages
  • Provides you the knowledge to make changes

4
Publish at marqone.busadm.mu.edu
  • Well publish on the server designated for the
    class
  • Using an FTP server like Filezilla
  • The server also have a file transfer program but
    Filezilla is easier to use

5
Words to remember
  • Tag
  • Used to specify special regions to the web
    browser. Tags look like this lttaggt
  • Element
  • A complete tag, having an opening lttaggt and a
    closing lttaggt.
  • Attribute
  • Used to modify the value of the HTML element.
    Elements will often have multiple attributes.

6
Element?
  • An element consists of three basic parts an
    opening tag, the element's content, and finally,
    a closing tag.
  • ltpgt - opening paragraph tag
  • Element Content - paragraph content
  • lt/pgt - closing tag
  • Every webpage contains four basic elements. The
    html, head, title, and body elements.

7
More elements
  • lthtmlgt begins and ends each and every web page.
  • The ltheadgt element comes next.
  • Tags placed within the head element are not
    directly displayed by browsers.
  • Place the lttitlegt tag within the ltheadgt element
    to title your page. The title will be displayed
    at the top of a viewer's browser.
  • The ltbodygt element is where all content is
    placed. Paragraphs, pictures, tables, etc.

8
A Simple HTML File ex1.html
  • lthtmlgt
  • ltheadgt
  • lttitlegtA Simple HTML Examplelt/titlegt
  • lt/headgt
  • ltbodygt
  • HTML is Easy To Learnlt/H1gt
  • Welcome to the world of HTML.
  • lt/bodygt
  • lt/htmlgt

9
Exercise ex1.html
  • Using Filezilla open marqone.busadm.mu.edu
  • Enter user name and password
  • mkdir exercise
  • Go into the exercise directory
  • create ex1.html with HTMLGateFree
  • Test it before you download to the server
  • Download and test https//marqone.busadm.mu.edu/u
    ser/exercise/ex1.html

10
Tags
  • Tags are embedded commands within a document that
    communicate to the browser.
  • ltopening taggt Content lt/closing taggt
  • Any number of white-spaces are compressed into a
    single one
  • Examples of Tags
  • ltpgtParagraph Taglt/pgt
  • lth2gtHeading Taglt/h2gt
  • ltbgtBold Taglt/bgt or ltstronggt Bold Tag lt/stronggt
  • ltigtItalic Taglt/igt or ltemgt Italic Tag lt/igt

11
More HTML tags
  • Tags Without Closing Tags
  • They still have the 3 basic parts
    (opening/closing and content).
  • do not require a formal lt/closingtaggt
  • Examples
  • ltimg src"mypic.jpg" /gt -- Image Tag
  • ltbr /gt -- Line Break Tag
  • ltinput type"text" size"12" /gt -- Input Field

12
Lists un-numbered
  • Unnumbered Lists
  • ltULgt
  • ltLIgt apples lt/LIgt
  • ltLIgt bananas lt/LIgt
  • ltLIgt grapefruit lt/LIgt
  • lt/ULgt
  • Unnumbered Lists with different pointer types
  • ltUL type"square"gt
  • ltLIgt oranges lt/LIgt
  • ltLIgt peaches lt/LIgt
  • ltLIgt grapes lt/LIgt
  • lt/ULgt
  • type"square"
  • type"disc"
  • type"circle"

13
Lists - numbered
  • Unnumbered Lists
  • ltULgt
  • ltLIgt apples lt/LIgt
  • ltLIgt bananas lt/LIgt
  • ltLIgt grapefruit lt/LIgt
  • lt/ULgt
  • Numbered Lists
  • ltOLgt
  • ltLIgt oranges lt/LIgt
  • ltLIgt peaches lt/LIgt
  • ltLIgt grapes lt/LIgt
  • lt/OLgt

14
Lists - numbered
  • Numbered Lists that starts with 4
  • ltOL start"4"gt
  • ltLIgt oranges lt/LIgt
  • ltLIgt peaches lt/LIgt
  • ltLIgt grapes lt/LIgt
  • lt/OLgt
  • Numbered Lists with different ordering
  • ltOL type"a"gt
  • ltLIgt oranges lt/LIgt
  • ltLIgt peaches lt/LIgt
  • ltLIgt grapes lt/LIgt
  • lt/OLgt
  • type"a" a, b, c
  • type"A" A, B, C
  • type"i" i, ii, iii
  • type"I" I, II, III

15
Lists
TIPS Use the start and type attributes to
customize your lists. It is possible to make
lists of lists, which is helpful for creating
some items, such as outlines.
16
Put it all together so far
ltHTMLgt ltHEADgt ltTITLEgtThe document
titlelt/TITLEgt lt/HEADgt ltBODYgt ltH1gtMain
headinglt/H1gt ltPgtA paragraph.lt/Pgt ltPgtAnother
paragraph.lt/Pgt ltULgt Things that I like lt/ULgt
ltLIgtA list item.lt/LIgt ltLIgtAnother list
item.lt/LIgt lt/ULgt lt/BODYgt lt/HTMLgt
17
Block vs. Inline Elements
  • lth2gtltemgtThis header will be bold and
    italicizedlt/emgtlt/h2gt
  • OR
  • ltemgtlth2gtThis header will be bold and
    italicizedlt/h2gtlt/emgt
  • ltemgt and lth2gt are different kinds of tags.
  • lth2gt header elements are BLOCK-LEVEL elements.
  • ltemgt is an INLINE-LEVEL element.

18
Formatting
ltpgtAn example of ltbgtBold Textlt/bgt lt/pgtltpgtAn
example of ltemgtEmphasized Textlt/emgt lt/pgtltpgtAn
example of ltstronggtStrong Textlt/stronggt
lt/pgtltpgtAn example of ltigtItalic Textlt/igt
lt/pgtltpgtAn example of ltsupgtsuperscripted
Textlt/supgt lt/pgtltpgtAn example of ltsubgtsubscripted
Textlt/subgt lt/pgtltpgtAn example of
ltdelgtstruckthrough Textlt/delgt lt/pgtltpgtAn example
of ltcodegtComputer Code Textlt/codegt
lt/pgt ltcentergtCentering of text in pagelt/centergt
19
Hyperlinks
  • The most important capability of HTML
  • Both text and image can serve as anchors for the
    link
  • lta HREFhttp//www.mu.edugtMarquette
    Universitylt/agt
  • lta HREFhttp//www.mu.edugt ltIMG SRC"mu.gif"gtlt/agt

20
Exercise ex2.html
Write a Comment
User Comments (0)
About PowerShow.com