SlideShare ist ein Scribd-Unternehmen logo
1 von 25
 What is the Internet?
 a network of networks – an inter-network, or Internet
 What are Internet protocols?
 the rules for transferring information between programs
 HTTP - hypertext transfer protocol
 FTP - file transfer protocol
 SMTP – simple mail transfer protocol
 What is the World Wide Web?
 a set of HTML pages accessible using the HTTP protocol
2
 How does a Web Browser (Firefox) fit in this picture?
 - your browser connects, using the HTTP protocol, to a web server
- the web server fetches an HTML web page and sends the HTML to your browser
- your browser turns the HTML page into a nice-looking page on your screen
3
Your computer,
Your web browser
e.g. Firefox
Internet
connection
Internet
Routers
Text file containing
an HTML web page
Their computer,
Their web server
(an HTTP server)
e.g. Apache
/mypage.html
 Hyper Text Markup Language (HTML) Basics
 HTML is a “mark-up language”
 You add the mark-up tags to your text document
 Now follows a published standard via http://w3c.org/
 HTML is a language of mark-up “tags” in angle brackets: <>
 each tag has a name and may have one or more quoted
attributes
 eg. <p class=”thesis” style=”color: red”>
 Tags usually come in pairs (with some exceptions)
 <html>...</html>, <body>...</body>, <p>...</p>, <hr>, <br>
 Web pages are free-form input; line breaks can be used most
anywhere and don't affect the appearance of the document
 Yes, your entire page could be a single line of text!
4
 <html> … </html> (Required!)
 Basic tag to identify portion of file that contains HTML
 <html> is an opening tag
 </html> is a closing tag (note the direction of the slash!)
 text between the opening and closing tag is called the “element”
 <head> … </head> (Required!)
 placed at the top of document immediately after the <html> tag
 tags information about the document, e.g. author, style, etc.
 contains the required document <title>...</title> tag
5
 <title> … </title> (Required!)
 included as an element inside the <head>…</head> section
 element of this tag is the title displayed in title bar of the
browser
 may also be used as title of page when page is bookmarked
 should be meaningful and uniquely identify the page
 <body> … </body> (Required!)
 included as the second element inside the <html>…</html> tags.
 follows the <head>…</head> portion of the document
 contains the information to be displayed in the browser window
 any attributes set on this tag will apply to the entire page
6
 <p> … </p> (Required!)
 included as an element inside the <body>…</body> section
 Surrounds a paragraph of text
 DOCTYPE (Required!)
 Must be the very first line of your file, before <html>
 NOT an HTML tag; it is an instruction to your web browser
 Tells the browser what version of HTML to expect
 In this course we use only the “strict” HTML version 4.01 type:
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
7
8
HTML – Required Tags
 That's all you need for a basic web page!
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>My Title</title>
</head>
<body>
<p>This is my first web page.</p>
</body>
</html>
 More useful basic tags:
 <br> (no closing tag needed)
 put a line break in the text (starts a new line)
 <h1> … </h1> through <h6> ... </h6>
 used to identify text as a Level 1 (major) to Level 6 (minor) heading
Comment Tag
 <!-- comments here -->
 notice that the comment is typed as an attribute inside the tag
 comments may be one or multiple lines long (HTML is free-form)
 text within this tag will not be displayed or processed by your browser
 comments do not nest! No comments inside comments!
 The comment may not contain two (or more) adjacent dashes, e.g. --
9
 The Anchor Tag – Hyper Linking - making the web a
web
 <a> … </a>
 one major attribute – the location of the hyperlink:
 href=”string”
 element is clickable/selectable as a document hyperlink
 browser attempts to load the page specified by the href=
attribute
 the href= string can be a relative URL on the same server:
 without the leading http://host/ it is in the same directory
structure:
 e.g. <a href=“page2.html”>Click here to continue</a>
 e.g. <a href=”images/box.jpg”>See the box here.</a>
 e.g. <a href=“../another_dir/page3.html”>Click here</a>
10
 <a>…</a> anchor tag continued
 The href= string can be an absolute URL on any server:
 string can be any HTTP URL (web address) you like:
 e.g. <a href=“http://www.gnu.org/philosophy/”>Free
Software</a>
 The href= string can be an email address:
 string can be an email address preceded by “mailto:”
 e.g. <a href=”mailto:idallen@idallen.ca>Ian! D. Allen
email</a>
 Attempts to open an email client (specified in the web
browser's options) and places the specified email address in
the To: field of a new email message.
11
 <img> (no closing tag needed)
 used to display graphics (.jpeg, .png, .gif) in your web pages
 you must specify the URL for the image source, and an alt= text
 the basic attributes of <img> are:
 src=”string” - the absolute or relative location of the image file
 alt=”string” - Alternate Text for people who don't see images
 height=”string” - image height, percent or absolute pixels
(optional)
 width=”string” - image width, percent or absolute pixels
(optional)
 title=”string” - mouse-over title of the image (optional)
 Etc….
 specifying height= and width= lets your browser reserve space in the
document to load the image in the background and avoid redrawing
the page after the image is fully loaded
12
• <hr> (no closing tag needed)
– Hard/Horizontal Rule – draw a horizontal line
– rule appearance can be changed with styles
• <blockquote> … </blockquote>
– block quotation, indented
• <q> … </q>
– a short, in-line “quotation as part of running text”
• <pre> … </pre>
– preformatted text (e.g. computer code or output)
– fixed-width font (e.g. Courier fixed width)
– preserves spaces and line breaks
13
• Font-style tags – for more control, use CSS instead
• <b> … </b> and <i> … </i>
– bold and italic text (in-line)
• <tt> … </tt>
– Teletype Text: fixed-width font (e.g. Courier)
• <big> … </big> and <small> … </small>
– bigger and smaller text (in-line)
14
HTML - Basic TagsHTML - Basic TagsHTML - Basic Tags
 Phrase tags – often better done using CSS
• <em> … </em> and <strong> ... </strong>
– text to be emphasized and strongly emphasized
– browser decides how: usually italicized, made bold
Less often used:
• <code>...</code>, <samp>...</samp>,
<kbd>...</kbd>
– computer code, sample code, keyboard text
– usually rendered in Courier fixed-width font
15
 The <style> element and the style= attribute
• The style= attribute can be used on most tags
– defines features for a single HTML element, e.g.
<p style=”text-align: center”>Center me.</p>
• The <style> element: <style type=”text/css”> ...
</style>
– <style> tag always goes in the <head> section
– defines style information for the whole HTML page
– requires the type=”text/css” attribute
– more details to come in the description of CSS
– to link to a separate CSS style sheet, use instead:
<link rel=”stylesheet” type=”text/css” href=”string”>
16
HTML – Style Element/Attribute
 <ul>
 <li>Apple</li>
 <li>Pear</li>
 <li>Kiwi</li>
 <li><ul>
 <li>Big</li>

<li>Small</li>
 </ul></li>
 </ul>
 <ol>
 <li>Apple</li>
 <li>Pear</li>
 <li>Kiwi</li>
 <li><ul>
 <li>Big</li>

<li>Small</li>
 </ul></li>
 </ol>
HTML - Lists
Lists – <ul> Unordered List and <ol> Ordered List
• <li>…</li>
– List Item: surrounds each list item inside a list
– used inside both <ul> and <ol> list types
• <ul>…</ul>
– surrounds an unordered list – no numbering
– <li>...</li> items each indented and bulleted
– use styles (style= attribute) to change type of bullet:
– CSS style: list-style-type: string
• string can be: circle, disc, square
• e.g. <ul style=”list-style-type: square”> ... </ul>
18
HTML – Unordered Lists
• <ol> … </ol>
– surrounds an ordered list
– items are indented and numbered (or alphabetized)
– use styles (style=) to change type of numbering:
– CSS style: list-style-type: string
• examples of string: decimal, lower-alpha, upper-
roman
• e.g. <ol style=”list-style-type: upper-latin”> ... </ul>
– the start= attribute determines first item's value
• e.g. <ol start=“3”> - begin numbering at 3 (or c, or iii)
• but this is deprecated, with no CSS replacement!
• http://www.w3schools.com/tags/att_ol_start.asp
19
• <dl>…</dl>
– definition list containing <dt> and <dd> items
– <dt>...</dt> definition title
– <dd>...</dd> definition description
• Example definition list containing two definitions:
<dl>
<dt>Hacker</dt>
<dd>An expert or enthusiast of any kind.</dd>
<dt>Cracker</dt>
<dd>An intruder into computer systems.</dd>
</dl>
20
21
HTML - <meta> - Page Attributes
• <meta> (no closing tag needed)
– used only inside <head> section of page
– gives details about page, e.g. author, keywords
– search engines may ignore keywords, since many
pages use fake keywords to boost search results
<head>
<title>CST8281 Course Homepage</title>
<meta name="Keywords" content=”Fundamentals, HTML, CSS”>
<meta name="Description" content=”An introductory course
dealing with computer and Internet fundamentals.">
<meta name="GENERATOR" content="Arachnophilia 5.4">
</head>
22
HTML - <meta> - continued
• elements of <meta> include:
– name=string identifies what type of meta content will follow
– content=string details relating to the name
• <meta> can also be used to have your page automatically
load another web page after a short delay:
<meta http-equiv="refresh" content="10; url=index.html">
– note the attribute name: http-equiv=”refresh”
– the content= string begins with number of seconds
before next page is loaded, followed by a
semicolon, then url= giving the URL of the next
page to be loaded
• Use <meta> to set the character set for the HTML page
– needed to pass W3C validation without warnings
<meta http-equiv=”Content-Type”
content=”text/html; charset=UTF-8”>
• also frequently used: charset=iso-8859-1
– iso-8859-1 is “Latin-1” and includes French
– Latin-1 common in North America, Western Europe
– but UTF-8 includes all languages (preferred)
23
HTML – <meta> - charset – Character Set
 Identifying and Grouping elements (e.g. for CSS)
• <div>...</div>
– division or section
– groups and identifies one or more block-elements
– usually causes a line break before and after
• <span>...</span>
– groups and identifies in-line elements (e.g. words)
– no visual change by itself (no line break)
– used to apply styles to parts of a text line, e.g.
This <span style=”color: red”>red</span> apple.
24
HTML – Identify/Group Tags
 HTML Entities – for special characters, accents, foreign
– starts with ampersand and ends with semicolon
 &nbsp; non-breaking-space – acts like a letter
– words connected with &nbsp; will not separate
across a line break; they stay together as one word
– e.g. Mr.&nbsp;Ian!&nbsp;D.&nbsp;Allen
 &lt; (less than) = < &gt; (greater than) = >
 &quot; (double quote) = " &apos; (apostrophe) = '
 &amp; (ampersand) = &
– many, many others!
25
HTML – Entities (Special Characters)

Weitere ähnliche Inhalte

Was ist angesagt?

The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheetHARUN PEHLIVAN
 
Origins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLOrigins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLHowpk
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteMahinda Gamage
 
Web I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionWeb I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionRandy Connolly
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup languageBasmaa Mostafa
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5Anjan Mahanta
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2Sharon Wasden
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptFahim Abdullah
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 DaysManoj kumar Deswal
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3bluejayjunior
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptTroyfawkes
 
Html siva
Html sivaHtml siva
Html sivach samaram
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS Dave Kelly
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web DesigningLeslie Steele
 

Was ist angesagt? (20)

The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheet
 
Origins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLOrigins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTML
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Web I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionWeb I - 02 - XHTML Introduction
Web I - 02 - XHTML Introduction
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 
Html
HtmlHtml
Html
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2
 
Html full
Html fullHtml full
Html full
 
Html
HtmlHtml
Html
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
 
Html siva
Html sivaHtml siva
Html siva
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 

Andere mochten auch

Samuel_Wayfinding_Metropolia_2015
Samuel_Wayfinding_Metropolia_2015Samuel_Wayfinding_Metropolia_2015
Samuel_Wayfinding_Metropolia_2015dbelgi
 
SACRRA BCISI Industry Positioning
SACRRA BCISI  Industry PositioningSACRRA BCISI  Industry Positioning
SACRRA BCISI Industry PositioningKevin Vlietman
 
Francisco d'souza
Francisco d'souzaFrancisco d'souza
Francisco d'souzaVenkat Shri
 
Jumping Stocks
Jumping StocksJumping Stocks
Jumping Stocksjumpingstocks
 
RESUME James Gilchrist MAR 2015
RESUME James Gilchrist MAR 2015RESUME James Gilchrist MAR 2015
RESUME James Gilchrist MAR 2015James Gilchrist
 
Munevar_dhmosio xreos_ellada
Munevar_dhmosio xreos_elladaMunevar_dhmosio xreos_ellada
Munevar_dhmosio xreos_elladaallagiporeias
 
Be social! Le logiche dei social network
Be social! Le logiche dei social networkBe social! Le logiche dei social network
Be social! Le logiche dei social networkfscrigner
 
10.0000@www.researchgate.net@11315284
10.0000@www.researchgate.net@1131528410.0000@www.researchgate.net@11315284
10.0000@www.researchgate.net@11315284Marium Bano
 
CA Aging transpo specialist full job descrip
CA Aging transpo specialist full job descripCA Aging transpo specialist full job descrip
CA Aging transpo specialist full job descripJon J. Johnson
 
De-ZZP-Maatschappij-KIZO-ECHTZZP
De-ZZP-Maatschappij-KIZO-ECHTZZPDe-ZZP-Maatschappij-KIZO-ECHTZZP
De-ZZP-Maatschappij-KIZO-ECHTZZPArnaud Veere
 
Persentasi mulok ( ade fatra st ) semester ii
Persentasi mulok ( ade fatra st )  semester ii Persentasi mulok ( ade fatra st )  semester ii
Persentasi mulok ( ade fatra st ) semester ii Widya Mardiani
 
Маркетинговый перевод: с чем его едят?
Маркетинговый перевод: с чем его едят?Маркетинговый перевод: с чем его едят?
Маркетинговый перевод: с чем его едят?Sergei Parfionov
 
Course Project APA Unit 10 Assignment
Course Project APA Unit 10 AssignmentCourse Project APA Unit 10 Assignment
Course Project APA Unit 10 AssignmentYusef Ismail, MHS
 
Jsme tu pro Vás. Od židle a až po celý interiér, na klíč.
Jsme tu pro Vás. Od židle a až po celý interiér, na klíč. Jsme tu pro Vás. Od židle a až po celý interiér, na klíč.
Jsme tu pro Vás. Od židle a až po celý interiér, na klíč. NET University, s.r.o.
 

Andere mochten auch (20)

Pedrada
PedradaPedrada
Pedrada
 
Samuel_Wayfinding_Metropolia_2015
Samuel_Wayfinding_Metropolia_2015Samuel_Wayfinding_Metropolia_2015
Samuel_Wayfinding_Metropolia_2015
 
SACRRA BCISI Industry Positioning
SACRRA BCISI  Industry PositioningSACRRA BCISI  Industry Positioning
SACRRA BCISI Industry Positioning
 
Francisco d'souza
Francisco d'souzaFrancisco d'souza
Francisco d'souza
 
Jumping Stocks
Jumping StocksJumping Stocks
Jumping Stocks
 
3rd
3rd3rd
3rd
 
Dados de Mercado Março 2016
Dados de Mercado Março 2016Dados de Mercado Março 2016
Dados de Mercado Março 2016
 
RESUME James Gilchrist MAR 2015
RESUME James Gilchrist MAR 2015RESUME James Gilchrist MAR 2015
RESUME James Gilchrist MAR 2015
 
Munevar_dhmosio xreos_ellada
Munevar_dhmosio xreos_elladaMunevar_dhmosio xreos_ellada
Munevar_dhmosio xreos_ellada
 
Be social! Le logiche dei social network
Be social! Le logiche dei social networkBe social! Le logiche dei social network
Be social! Le logiche dei social network
 
10.0000@www.researchgate.net@11315284
10.0000@www.researchgate.net@1131528410.0000@www.researchgate.net@11315284
10.0000@www.researchgate.net@11315284
 
Evidencias de la ova
Evidencias de la ovaEvidencias de la ova
Evidencias de la ova
 
CA Aging transpo specialist full job descrip
CA Aging transpo specialist full job descripCA Aging transpo specialist full job descrip
CA Aging transpo specialist full job descrip
 
Pascal
Pascal Pascal
Pascal
 
Storyboard
StoryboardStoryboard
Storyboard
 
De-ZZP-Maatschappij-KIZO-ECHTZZP
De-ZZP-Maatschappij-KIZO-ECHTZZPDe-ZZP-Maatschappij-KIZO-ECHTZZP
De-ZZP-Maatschappij-KIZO-ECHTZZP
 
Persentasi mulok ( ade fatra st ) semester ii
Persentasi mulok ( ade fatra st )  semester ii Persentasi mulok ( ade fatra st )  semester ii
Persentasi mulok ( ade fatra st ) semester ii
 
Маркетинговый перевод: с чем его едят?
Маркетинговый перевод: с чем его едят?Маркетинговый перевод: с чем его едят?
Маркетинговый перевод: с чем его едят?
 
Course Project APA Unit 10 Assignment
Course Project APA Unit 10 AssignmentCourse Project APA Unit 10 Assignment
Course Project APA Unit 10 Assignment
 
Jsme tu pro Vás. Od židle a až po celý interiér, na klíč.
Jsme tu pro Vás. Od židle a až po celý interiér, na klíč. Jsme tu pro Vás. Od židle a až po celý interiér, na klíč.
Jsme tu pro Vás. Od židle a až po celý interiér, na klíč.
 

Ähnlich wie Session ii(html)

PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS NotesTushar Rajput
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML BasicsShawn Calvert
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1Shawn Calvert
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introductioneceklu
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to htmlpalhaftab
 
The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheetZafer Galip Ozberk
 
HTML (Basic to Advance)
HTML (Basic to Advance)HTML (Basic to Advance)
HTML (Basic to Advance)Coder Tech
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheetHARUN PEHLIVAN
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLAbzetdin Adamov
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshopvardanyan99
 
Html basics
Html basicsHtml basics
Html basicscodegracer
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.pptssuser568d77
 
HTML Foundations, pt 2
HTML Foundations, pt 2HTML Foundations, pt 2
HTML Foundations, pt 2Shawn Calvert
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to HtmlTaha Malampatti
 

Ähnlich wie Session ii(html) (20)

PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Html
HtmlHtml
Html
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheet
 
HTML (Basic to Advance)
HTML (Basic to Advance)HTML (Basic to Advance)
HTML (Basic to Advance)
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html basics
Html basicsHtml basics
Html basics
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
HTML Foundations, pt 2
HTML Foundations, pt 2HTML Foundations, pt 2
HTML Foundations, pt 2
 
HTML
HTMLHTML
HTML
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 

Mehr von Shrijan Tiwari

ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)Shrijan Tiwari
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)Shrijan Tiwari
 
Session viii(state mngtserver)
Session viii(state mngtserver)Session viii(state mngtserver)
Session viii(state mngtserver)Shrijan Tiwari
 
Session viii(state mngtclient)
Session viii(state mngtclient)Session viii(state mngtclient)
Session viii(state mngtclient)Shrijan Tiwari
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)Shrijan Tiwari
 
Session vi(user control)
Session vi(user control)Session vi(user control)
Session vi(user control)Shrijan Tiwari
 
Session ix(database)
Session ix(database)Session ix(database)
Session ix(database)Shrijan Tiwari
 
Session iv(master pages)
Session iv(master pages)Session iv(master pages)
Session iv(master pages)Shrijan Tiwari
 
Session iii(server controls)
Session iii(server controls)Session iii(server controls)
Session iii(server controls)Shrijan Tiwari
 
Session i(introduction)
Session i(introduction)Session i(introduction)
Session i(introduction)Shrijan Tiwari
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidShrijan Tiwari
 

Mehr von Shrijan Tiwari (12)

ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
 
Session viii(state mngtserver)
Session viii(state mngtserver)Session viii(state mngtserver)
Session viii(state mngtserver)
 
Session viii(state mngtclient)
Session viii(state mngtclient)Session viii(state mngtclient)
Session viii(state mngtclient)
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)
 
Session vi(user control)
Session vi(user control)Session vi(user control)
Session vi(user control)
 
Session v(css)
Session v(css)Session v(css)
Session v(css)
 
Session ix(database)
Session ix(database)Session ix(database)
Session ix(database)
 
Session iv(master pages)
Session iv(master pages)Session iv(master pages)
Session iv(master pages)
 
Session iii(server controls)
Session iii(server controls)Session iii(server controls)
Session iii(server controls)
 
Session i(introduction)
Session i(introduction)Session i(introduction)
Session i(introduction)
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 

KĂźrzlich hochgeladen

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxalwaysnagaraju26
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456KiaraTiradoMicha
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 

KĂźrzlich hochgeladen (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 

Session ii(html)

  • 1.
  • 2.  What is the Internet?  a network of networks – an inter-network, or Internet  What are Internet protocols?  the rules for transferring information between programs  HTTP - hypertext transfer protocol  FTP - file transfer protocol  SMTP – simple mail transfer protocol  What is the World Wide Web?  a set of HTML pages accessible using the HTTP protocol 2
  • 3.  How does a Web Browser (Firefox) fit in this picture?  - your browser connects, using the HTTP protocol, to a web server - the web server fetches an HTML web page and sends the HTML to your browser - your browser turns the HTML page into a nice-looking page on your screen 3 Your computer, Your web browser e.g. Firefox Internet connection Internet Routers Text file containing an HTML web page Their computer, Their web server (an HTTP server) e.g. Apache /mypage.html
  • 4.  Hyper Text Markup Language (HTML) Basics  HTML is a “mark-up language”  You add the mark-up tags to your text document  Now follows a published standard via http://w3c.org/  HTML is a language of mark-up “tags” in angle brackets: <>  each tag has a name and may have one or more quoted attributes  eg. <p class=”thesis” style=”color: red”>  Tags usually come in pairs (with some exceptions)  <html>...</html>, <body>...</body>, <p>...</p>, <hr>, <br>  Web pages are free-form input; line breaks can be used most anywhere and don't affect the appearance of the document  Yes, your entire page could be a single line of text! 4
  • 5.  <html> … </html> (Required!)  Basic tag to identify portion of file that contains HTML  <html> is an opening tag  </html> is a closing tag (note the direction of the slash!)  text between the opening and closing tag is called the “element”  <head> … </head> (Required!)  placed at the top of document immediately after the <html> tag  tags information about the document, e.g. author, style, etc.  contains the required document <title>...</title> tag 5
  • 6.  <title> … </title> (Required!)  included as an element inside the <head>…</head> section  element of this tag is the title displayed in title bar of the browser  may also be used as title of page when page is bookmarked  should be meaningful and uniquely identify the page  <body> … </body> (Required!)  included as the second element inside the <html>…</html> tags.  follows the <head>…</head> portion of the document  contains the information to be displayed in the browser window  any attributes set on this tag will apply to the entire page 6
  • 7.  <p> … </p> (Required!)  included as an element inside the <body>…</body> section  Surrounds a paragraph of text  DOCTYPE (Required!)  Must be the very first line of your file, before <html>  NOT an HTML tag; it is an instruction to your web browser  Tells the browser what version of HTML to expect  In this course we use only the “strict” HTML version 4.01 type: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 7
  • 8. 8 HTML – Required Tags  That's all you need for a basic web page! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>My Title</title> </head> <body> <p>This is my first web page.</p> </body> </html>
  • 9.  More useful basic tags:  <br> (no closing tag needed)  put a line break in the text (starts a new line)  <h1> … </h1> through <h6> ... </h6>  used to identify text as a Level 1 (major) to Level 6 (minor) heading Comment Tag  <!-- comments here -->  notice that the comment is typed as an attribute inside the tag  comments may be one or multiple lines long (HTML is free-form)  text within this tag will not be displayed or processed by your browser  comments do not nest! No comments inside comments!  The comment may not contain two (or more) adjacent dashes, e.g. -- 9
  • 10.  The Anchor Tag – Hyper Linking - making the web a web  <a> … </a>  one major attribute – the location of the hyperlink:  href=”string”  element is clickable/selectable as a document hyperlink  browser attempts to load the page specified by the href= attribute  the href= string can be a relative URL on the same server:  without the leading http://host/ it is in the same directory structure:  e.g. <a href=“page2.html”>Click here to continue</a>  e.g. <a href=”images/box.jpg”>See the box here.</a>  e.g. <a href=“../another_dir/page3.html”>Click here</a> 10
  • 11.  <a>…</a> anchor tag continued  The href= string can be an absolute URL on any server:  string can be any HTTP URL (web address) you like:  e.g. <a href=“http://www.gnu.org/philosophy/”>Free Software</a>  The href= string can be an email address:  string can be an email address preceded by “mailto:”  e.g. <a href=”mailto:idallen@idallen.ca>Ian! D. Allen email</a>  Attempts to open an email client (specified in the web browser's options) and places the specified email address in the To: field of a new email message. 11
  • 12.  <img> (no closing tag needed)  used to display graphics (.jpeg, .png, .gif) in your web pages  you must specify the URL for the image source, and an alt= text  the basic attributes of <img> are:  src=”string” - the absolute or relative location of the image file  alt=”string” - Alternate Text for people who don't see images  height=”string” - image height, percent or absolute pixels (optional)  width=”string” - image width, percent or absolute pixels (optional)  title=”string” - mouse-over title of the image (optional)  Etc….  specifying height= and width= lets your browser reserve space in the document to load the image in the background and avoid redrawing the page after the image is fully loaded 12
  • 13. • <hr> (no closing tag needed) – Hard/Horizontal Rule – draw a horizontal line – rule appearance can be changed with styles • <blockquote> … </blockquote> – block quotation, indented • <q> … </q> – a short, in-line “quotation as part of running text” • <pre> … </pre> – preformatted text (e.g. computer code or output) – fixed-width font (e.g. Courier fixed width) – preserves spaces and line breaks 13
  • 14. • Font-style tags – for more control, use CSS instead • <b> … </b> and <i> … </i> – bold and italic text (in-line) • <tt> … </tt> – Teletype Text: fixed-width font (e.g. Courier) • <big> … </big> and <small> … </small> – bigger and smaller text (in-line) 14 HTML - Basic TagsHTML - Basic TagsHTML - Basic Tags
  • 15.  Phrase tags – often better done using CSS • <em> … </em> and <strong> ... </strong> – text to be emphasized and strongly emphasized – browser decides how: usually italicized, made bold Less often used: • <code>...</code>, <samp>...</samp>, <kbd>...</kbd> – computer code, sample code, keyboard text – usually rendered in Courier fixed-width font 15
  • 16.  The <style> element and the style= attribute • The style= attribute can be used on most tags – defines features for a single HTML element, e.g. <p style=”text-align: center”>Center me.</p> • The <style> element: <style type=”text/css”> ... </style> – <style> tag always goes in the <head> section – defines style information for the whole HTML page – requires the type=”text/css” attribute – more details to come in the description of CSS – to link to a separate CSS style sheet, use instead: <link rel=”stylesheet” type=”text/css” href=”string”> 16 HTML – Style Element/Attribute
  • 17.  <ul>  <li>Apple</li>  <li>Pear</li>  <li>Kiwi</li>  <li><ul>  <li>Big</li>  <li>Small</li>  </ul></li>  </ul>  <ol>  <li>Apple</li>  <li>Pear</li>  <li>Kiwi</li>  <li><ul>  <li>Big</li>  <li>Small</li>  </ul></li>  </ol> HTML - Lists Lists – <ul> Unordered List and <ol> Ordered List
  • 18. • <li>…</li> – List Item: surrounds each list item inside a list – used inside both <ul> and <ol> list types • <ul>…</ul> – surrounds an unordered list – no numbering – <li>...</li> items each indented and bulleted – use styles (style= attribute) to change type of bullet: – CSS style: list-style-type: string • string can be: circle, disc, square • e.g. <ul style=”list-style-type: square”> ... </ul> 18 HTML – Unordered Lists
  • 19. • <ol> … </ol> – surrounds an ordered list – items are indented and numbered (or alphabetized) – use styles (style=) to change type of numbering: – CSS style: list-style-type: string • examples of string: decimal, lower-alpha, upper- roman • e.g. <ol style=”list-style-type: upper-latin”> ... </ul> – the start= attribute determines first item's value • e.g. <ol start=“3”> - begin numbering at 3 (or c, or iii) • but this is deprecated, with no CSS replacement! • http://www.w3schools.com/tags/att_ol_start.asp 19
  • 20. • <dl>…</dl> – definition list containing <dt> and <dd> items – <dt>...</dt> definition title – <dd>...</dd> definition description • Example definition list containing two definitions: <dl> <dt>Hacker</dt> <dd>An expert or enthusiast of any kind.</dd> <dt>Cracker</dt> <dd>An intruder into computer systems.</dd> </dl> 20
  • 21. 21 HTML - <meta> - Page Attributes • <meta> (no closing tag needed) – used only inside <head> section of page – gives details about page, e.g. author, keywords – search engines may ignore keywords, since many pages use fake keywords to boost search results <head> <title>CST8281 Course Homepage</title> <meta name="Keywords" content=”Fundamentals, HTML, CSS”> <meta name="Description" content=”An introductory course dealing with computer and Internet fundamentals."> <meta name="GENERATOR" content="Arachnophilia 5.4"> </head>
  • 22. 22 HTML - <meta> - continued • elements of <meta> include: – name=string identifies what type of meta content will follow – content=string details relating to the name • <meta> can also be used to have your page automatically load another web page after a short delay: <meta http-equiv="refresh" content="10; url=index.html"> – note the attribute name: http-equiv=”refresh” – the content= string begins with number of seconds before next page is loaded, followed by a semicolon, then url= giving the URL of the next page to be loaded
  • 23. • Use <meta> to set the character set for the HTML page – needed to pass W3C validation without warnings <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8”> • also frequently used: charset=iso-8859-1 – iso-8859-1 is “Latin-1” and includes French – Latin-1 common in North America, Western Europe – but UTF-8 includes all languages (preferred) 23 HTML – <meta> - charset – Character Set
  • 24.  Identifying and Grouping elements (e.g. for CSS) • <div>...</div> – division or section – groups and identifies one or more block-elements – usually causes a line break before and after • <span>...</span> – groups and identifies in-line elements (e.g. words) – no visual change by itself (no line break) – used to apply styles to parts of a text line, e.g. This <span style=”color: red”>red</span> apple. 24 HTML – Identify/Group Tags
  • 25.  HTML Entities – for special characters, accents, foreign – starts with ampersand and ends with semicolon  &nbsp; non-breaking-space – acts like a letter – words connected with &nbsp; will not separate across a line break; they stay together as one word – e.g. Mr.&nbsp;Ian!&nbsp;D.&nbsp;Allen  &lt; (less than) = < &gt; (greater than) = >  &quot; (double quote) = " &apos; (apostrophe) = '  &amp; (ampersand) = & – many, many others! 25 HTML – Entities (Special Characters)