DePaul IT 130 - HyperText Markup Language

Unformatted text preview:

HTMLHTML PrinciplesHTML StandardVersions of the standardHTML versus XHTMLBrowser VersionsOther rendering issuesToolsProcessTerminologyTag syntaxAttribute syntaxTag typesDocument tagsThe bare minimumHTML CommentsText structure tagsThe “Heading” tagSpacing exampleCharacter EntitiesUnordered listsExampleOrdered listsSlide 24Nested listsAttributes for ordered listsList exampleOther structure tagsLogical style tagsDisplay style tagsWhich tags to useStyle exampleHorizontal lineSlide 34Horizontal line styles - DEPRECATEDQuick review of end tags:Anchor tag (Hyperlinks)Link to external Web pagesRelative URLsRelative pathsSlide 41StructureMailto hyperlinksInserting a GraphicInserting a Graphic ContinuedImage file formatsImage tagMore image tag attributesAlignment of images – DEPRECATED in favor of CSS…Flowing TextSlide 51BandwidthBattling Bandwidth LimitationsImage links1HTMLHyperText Markup LanguageHyperTexttext containing navigable links to other textsMarkup Languagea method of adding information to the text indicating the logical components of a document, or instructions for layout of the text on the page which can be interpreted by some automatic system2HTML PrinciplesPlatform, device, modality independencehard to achieve in realitydifferent browser, different renderingHuman-readable text formatindependence from an editing applicationStandard conformance and evolution3HTML StandardWhat tags exist?How are the tags to be interpreted?How are the tags related to each other?How should the client respond to user interaction with the page?Standard body is the World Wide Web Consortiumwww.w3c.org4Versions of the standardHTML 1.01993never fully standardizedHTML 2.01994HTML 3.219963.0 never releasedadded tables, applets, text flowHTML 4.01998XHTML 1.0current recommendationmakes HTML conformant with XMLHTML versus XHTMLHTML (Hypertext Markup Language) is the markup language used to create web pages. An HTML document is read by a web browser, which displays the web page. The most recent version of HTML is 4.01.XHTML (Extensible Hypertext Markup Language) is a stricter, cleaner version of HTML intended for use with automated document processing systems. XHTML is combination of HTML and XML (Extensible Markup Language), which is a more general markup language than HTML.56Browser VersionsMany different browser versionsall support different combinations of HTML featuresCurrent leadersFirefoxIE 7 and IE 8Netscape •way behindOperaSafari7Other rendering issuesUser’s monitorsizeresolutioncolor depthcolor temperatureUser preferenceswindow sizebrowser preference settingsimages offBrowser capabilitiesformat-specific plug-insJava version8ToolsText editorediting HTML files(no WYSIWYG editors, please)Web client / browserviewing filesIE, Firefox, Safari, etc.Web serverdeliver the files to usersstudents.depaul.edu9ProcessWrite HTML fileASCII / text formatextension .html or .htmUpload to serverpublic_html directorySet permissionsSimilar with images.gif and .jpg formats10TerminologyDocument contentthe parts of the file that the user seesTagHTML codes that control document appearanceAttributesproperties associated with a tagEntitiesspecially-coded characters11Tag syntaxTags are case-insensitivebut all lower case is recommendedXHTML will require itTags are enclosed in angle brackets<html>Tags typically come in pairs<title></title>Tags typically enclose document content<p>some text... </p>Tags can only be nested<b> <i> some text... </i> </b> legal<b> <i> some text... </b> </i> illegal12Attribute syntaxAttributes are name / value pairs included in tags<body bgcolor=“black”>Attributes never include document contentmay include formatting informationcolor, size, etc.HTML attributes do not need to be quotedBut XHTML will require it13Tag typesDocument tagsidentify the various parts of the document (Head, Body)Text structure tagsdetermine the layout of the text (lists, paragraphs)Style tagstell the browser how to display the textImage tagsto incorporate imagesAnchor tagsto create hyperlinks14Document tags<html> … </html> Mark the beginning and end of the html file<head> … </head> Text in this part of the document is not displayed in the browser’s window. It includes other tags like <title> and <meta><title> … </title> Displayed in the browser’s title bar. It is used as the default bookmark description.<body> … </body> The contents displayed in the browser’s window.15<html><head><title>IT 130: The bare minimum</title></head><body>Welcome to the Bare Minimum Page for IT 130!</body></html>The bare minimumHTML CommentsThe comment feature provides you with a way to document your HTML files and make notes to yourself or anyone who reads your file. However, these do not show up in the displayed web page.Basic comment examples<!-- This is a comment --><!--------- You can write as much as you like in a comment and they can span multiple lines -------------->1617Text structure tagsHeadings: <hx> … </hx> for 1  x  6The smaller x the larger the text Paragraph: <p> … </p>A blank line is inserted before the paragraph.Line Break: <br>Ordered lists: <ol> … </ol>Unordered lists: <ul> … </ul>The “Heading” tagAn example of a ‘structure’ tagHeadings: <h1> … </h1>  boldest and largest<h2> … </h2> <h3> … </h3> <h4> … </h4> <h5> … </h5> <h6> …. </h6>  lightest and smallest 18<html><head><title>Spacing example</title></head><body><h1>Important! (This is an H1)</h1><p>Notice that we have some text in this paragraph.</p><h3>Spacing test (this is an H3)</h3><p>Here I am spacing things widely.It does not make a difference. I just left two lines blank, but I am still here!</p>One line<br>Second line<br><p>Another paragraph!</p></body> </html>Spacing example spacing-example.html20Character EntitiesCode name Code Symbol&lt &#60 <&gt &#62 >&amp &#38 &&copy &#169 ©&reg &#174 ®&nbsp &#160 Non-breaking space&#64 @&#183 ●21Unordered listsAn unordered (or bullet) list uses the tag pair <ul> … </ul>Each item in the list is preceded by a single list item tag <li>It produces an indented list with a


View Full Document

DePaul IT 130 - HyperText Markup Language

Download HyperText Markup Language
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view HyperText Markup Language and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view HyperText Markup Language 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?