SlideShare ist ein Scribd-Unternehmen logo
1 von 38
HHTTMMLL 
Hypertext Markup Language
WWhhaatt iiss aann HHTTMMLL FFiillee?? 
 HTML stands for Hyper Text Markup Language 
 An HTML file is a text file containing small markup tags 
 The markup tags tell the Web browser how to display 
the page 
 An HTML file must have an htm or html file extension 
 An HTML file can be created using a simple text 
editor
DDoo YYoouu WWaanntt ttoo TTrryy IItt?? 
 If you are running Windows, start Notepad. 
 Type in the following text: 
<html> 
<head> 
<title>My first Page</title> 
</head> 
< body> 
This is my first homepage. <b>This text is 
bold</b> 
</body> 
</html> 
Save the file as "mypage.htm".
EExxaammppllee EExxppllaaiinneedd 
 <html> - the tag that tells the browser that this is the 
start of an HTML document 
 </html> - the tag that tells the browser that this is the 
end of the HTML document 
 The text between the <head> tag and the </head> tag is 
header information. 
 The text between the <title> tags is the title of your 
document. 
 The text between the <body> tags is the text that will 
be displayed in your browser. 
 The text between the <b> and </b> tags will be 
displayed in a bold font.
HHTTMM oorr HHTTMMLL EExxtteennssiioonn?? 
When you save an HTML file, you can use 
either the .htm or the .html extension.
HHTTMMLL EElleemmeennttss 
HTML documents are text files made up of 
HTML elements. 
HTML elements are defined using HTML tags. 
This is an HTML element: 
<b>This text is bold</b> 
 The HTML element starts with a start tag: <b> 
 The content of the HTML element is: This text is 
bold 
 The HTML element ends with an end tag: </b>
HHTTMMLL TTaaggss 
 HTML tags are used to mark-up HTML elements 
 HTML tags are surrounded by the two characters < 
and > 
 The surrounding characters are called angle brackets 
 HTML tags normally come in pairs like <b> and </b> 
 The first tag in a pair is the start tag, the second tag is 
the end tag 
 The text between the start and end tags is the element 
content 
 HTML tags are not case sensitive, <b> means the 
same as <B>
TTaagg AAttttrriibbuutteess 
Tags can have attributes. 
 Attributes provide additional information to an 
HTML element. 
 Attributes always come in name/value pairs like 
this: name="value". 
 Attributes are always specified in the start tag of 
an HTML element. 
 Attributes and attribute values are also case-insensitive. 
Note: “Always quote attribute values.” 
 Double style quotes are the most common, but 
single style quotes are also allowed.
BBaassiicc HHTTMMLL TTaaggss 
HTML <body> tag 
 The body element defines the documents' body. It 
contains all the contents of the document (like 
text, images, colors, graphics, etc.). 
 Example: 
<html> 
<head> 
</head> <body> 
The content of the document...... 
</body> 
</html>
BBaassiicc HHTTMMLL TTaaggss 
 Optional Attributes 
Attribute Value Description 
Specifies the color of the visited 
links in the document. 
rgb(x,x,x), #xxxxxx 
colorname 
vlink 
Specifies the color of the text in 
the document. 
rgb(x,x,x), #xxxxxx 
colorname 
text 
Specifies the color of all the links 
in the document. 
rgb(x,x,x), #xxxxxx 
colorname 
link 
The background color of the 
document. 
rgb(x,x,x), #xxxxxx 
colorname 
bgcolor 
An image to use as the 
background. 
background file_name 
Specifies the color of the active 
links in the document. 
rgb(x,x,x), #xxxxxx 
colorname 
alink
BBaassiicc HHTTMMLL TTaaggss 
Note: The most important tags in HTML are 
tags that define headings, paragraphs and line 
breaks. 
Headings 
- are defined with the <h1> to <h6> tags. <h1> 
defines the largest heading. <h6> defines the 
smallest heading. 
- Headings are always displayed in a bold font. 
- HTML automatically adds an extra blank line 
before and after a heading.
BBaassiicc HHTTMMLL TTaaggss 
• Optional Attributes 
Attribute Value Description 
Specifies the alignment of the text in 
the header. 
left 
center 
right 
justify 
align
BBaassiicc HHTTMMLL TTaaggss 
Paragraphs 
- Paragraphs are defined with the <p> tag. 
- HTML automatically adds an extra blank line 
before and after a paragraph. 
- Example: 
<p>This is a paragraph</p> 
<p>This is another paragraph</p
BBaassiicc HHTTMMLL TTaaggss 
• Optional Attributes 
Attribute Value Description 
Specifies the alignment of the text 
within the paragraph. 
left 
center 
right 
justify 
align
BBaassiicc HHTTMMLL TTaaggss 
Line Breaks 
 The <br> tag is used when you want to end a line, 
but don't want to start a new paragraph. 
 The <br> tag forces a line break wherever you 
place it. 
 The <br> tag is an empty tag. It has no closing tag.
BBaassiicc HHTTMMLL TTaaggss 
Comments in HTML 
 The comment tag is used to insert a comment in 
the HTML source code. 
 A comment will be ignored by the browser. 
 You can use comments to explain your code, 
which can help you when you edit the source 
code at a later date. 
 Example: 
<!-- This is a comment -->
BBaassiicc HHTTMMLL TTaaggss 
 HTML <hr> tag 
 The <hr> tag inserts a horizontal rule. 
 In HTML the <hr> tag has no end tag. 
Attribute Value Description 
Specifies the width of the horizontal 
rule 
width pixels, % 
Specifies the thickness (height) of the 
horizontal rule. 
size pixels, % 
When set to true the rule should render 
in a solid color, when set to false the 
rule should render in a two-color 
"groove". 
noshade noshade 
Specifies the alignment of the 
horizontal rule. 
center, 
left, right 
align
HHTTMMLL TTeexxtt FFoorrmmaattttiinngg 
Text Formatting Tags 
 Tag Description 
<b> Defines bold text 
<big> Defines big text 
<em> Defines emphasized text 
<i> Defines italic text 
<small> Defines small text 
<strong> Defines strong text 
<sub> Defines subscripted text 
<sup> Defines superscripted text
HHTTMMLL TTeexxtt FFoorrmmaattttiinngg 
"Computer Output" Tags 
 Tag Description 
<code> Defines computer code text 
<kbd> Defines keyboard text 
<samp> Defines sample computer code 
<tt> Defines teletype text 
<var> Defines a variable 
<pre> Defines preformatted text
HHTTMMLL TTeexxtt FFoorrmmaattttiinngg 
Citations, Quotations, and Definition Tags 
 Tag Description 
<abbr> Defines an abbreviation 
<acronym>Defines an acronym 
<address> Defines an address element 
<bdo> Defines the text direction 
<blockquote> Defines a long quotation 
<q> Defines a short quotation 
<cite> Defines a citation 
<dfn> Defines a definition term
HHTTMMLL CChhaarraacctteerr EEnnttiittiieess 
 Some characters like the < character, have a 
special meaning in HTML, and therefore 
cannot be used in the text. 
 Character Entity 
- Has three parts 
1. an ampersand (&) 
2. an entity name or a # and an entity number 
3. a semicolon (;) 
 Note that the entities are case sensitive.
HHTTMMLL CChhaarraacctteerr EEnnttiittiieess 
The Most Common Character Entities: 
Result Description Entity NameEntity Number 
non-breaking space &nbsp; &#160; 
< less than &lt; &#60; 
> greater than &gt; &#62; 
& ampersand &amp; &#38; 
“ quotation mark &quot; &#34; 
‘ apostrophe &apos; &#39;
HHTTMMLL CChhaarraacctteerr EEnnttiittiieess 
Some Other Commonly Used Character 
Entities: 
Result Description Entity NameEntity Number 
¢ cent &cent; &#162; 
£ pound &pound; &#163; 
¥ yen &yen; &#165; 
€ euro &euro; &#8364; 
§ section &sect; &#167; 
© copyright &copy; &#169; 
® registered trademark &reg; &#174; 
× multiplication &times; &#215; 
÷ division &divide; &#247;
LLiinnkkss 
 HTML uses a hyperlink to link to another document on 
the Web. 
 The Anchor Tag and the Href Attribute 
 HTML uses the <a> (anchor) tag to create a link to 
another document. 
 An anchor can point to any resource on the Web: an 
HTML page, an image, a sound file, a movie, etc. 
 Syntax: 
<a href="url">Text to be displayed</a> 
 The <a> tag is used to create an anchor to link from, the href 
attribute is used to address the document to link to, and the 
words between the open and close of the anchor tag will be 
displayed as a hyperlink.
LLiinnkkss 
 The Target Attribute 
 With the target attribute, you can define where the linked 
document will be opened. 
 The Anchor Tag and the Name Attribute 
 The name attribute is used to create a named anchor. When 
using named anchors we can create links that can jump directly 
into a specific section on a page, instead of letting the user scroll 
around to find what he/she is looking for. 
 Syntax: 
<a name="label">Text to be displayed</a> 
<a href="#label"> Text to be displayed</a> 
 The name attribute is used to create a named anchor. The name 
of the anchor can be any text you care to use.
LLiissttss 
 HTML supports ordered, unordered and definition lists. 
 Unordered Lists 
- The list items are marked with bullets (typically small black 
circles). 
- An unordered list starts with the <ul> tag. Each list item starts 
with the <li> tag. 
 Ordered Lists 
- The list items are marked with numbers. 
- An ordered list starts with the <ol> tag. Each list item starts 
with the <li> tag. 
 Definition Lists 
- This is a list of terms and explanation of the terms. 
- A definition list starts with the <dl> tag. Each definition-list term 
starts with the <dt> tag. Each definition-list definition starts with 
the <dd> tag.
LLiissttss 
• How it looks like 
Numbered list: 
1. Apples 
2. Bananas 
3. Lemons 
4. Oranges 
Letters list: 
A. Apples 
B. Bananas 
C. Lemons 
D. Oranges 
• Examples 
<h4>Numbered list:</h4> 
<ol> 
<li>Apples</li> <li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ol> 
<h4>Letters list:</h4> 
<ol type="A"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ol>
LLiissttss 
• How it looks like 
Lowercase letters list: 
a. Apples 
b. Bananas 
c. Lemons 
d. Oranges 
Roman numbers list: 
I. Apples 
II. Bananas 
III. Lemons 
IV. Oranges 
• Examples 
<h4>Lowercase letters list:</h4> 
<ol type="a"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ol> 
<h4>Roman numbers list:</h4> 
<ol type="I"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ol>
LLiissttss 
• How it looks like 
Lowercase Roman numbers 
list: 
i. Apples 
ii. Bananas 
iii. Lemons 
iv. Oranges 
• Examples 
<h4>Lowercase Roman 
numbers list:</h4> 
<ol type="i"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
– </ol>
LLiissttss 
• How it looks like 
Disc bullets list: 
• Apples 
• Bananas 
• Lemons 
• Oranges 
Circle bullets list: 
o Apples 
o Bananas 
o Lemons 
o Oranges 
• Examples 
<h4>Disc bullets list:</h4> 
<ul type="disc"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ul> 
<h4>Circle bullets list:</h4> 
<ul type="circle"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ul>
LLiissttss 
• How it looks like 
Square bullets list: 
 Apples 
 Bananas 
 Lemons 
 Oranges 
• Examples 
<h4>Square bullets 
list:</h4> 
<ul type="square"> 
<li>Apples</li> 
<li>Bananas</li> 
<li>Lemons</li> 
<li>Oranges</li> 
</ul>
TTaabblleess 
 allow you to position elements easily on a 
Web page. 
 help your Web pages look more organized 
and professional. 
 are useful when you want to arrange text and 
images into rows and columns, making the 
information straightforward and clear to the 
Web page visitor.
TTaabblleess 
Tables are defined with the <table> tag. 
A table is divided into rows (with the <tr> 
tag), and each row is divided into data cells 
(with the <td> tag). 
The letters td stands for "table data," which is 
the content of a data cell. A data cell can 
contain text, images, lists, paragraphs, forms, 
horizontal rules, tables, etc.
TTaabblleess 
Example: 
<table border="1"> 
<tr> 
<td>row 1, cell 1</td> 
<td>row 1, cell 2</td> 
</tr> 
<tr> 
<td>row 2, cell 1</td> 
<td>row 2, cell 2</td> 
</tr> 
</table> 
Open table.html to show how it is rendered.
TTaabblleess 
 Tables and the Border Attribute 
- If you do not specify a border attribute the table will be 
displayed without any borders. Sometimes this can be useful, but 
most of the time, you want the borders to show. 
 Headings in a Table 
- Headings in a table are defined with the <th> tag. 
- Example: Open tableHeading.html 
 Empty Cells in a Table 
- Table cells with no content are not displayed very well in most 
browsers. 
- Borders around the empty table cell are missing (NB! Mozilla 
Firefox displays the border). 
- To avoid this, add a non-breaking space (&nbsp;) to empty data 
cells, to make the borders visible.
HTML TAG FUNCTION 
<table> Indicates the beginning & end of the table 
</table> All other tags will be inserted within these 
tags 
<tr></tr> Indicates the beginning & end of table row 
Rows consist of heading or data cells 
<th></th> Indicates the beginning & end of a table 
heading cell 
Heading cells default to bold text and 
center alignment 
<td></td> Indicates the beginning & end of a table 
data cell 
Data cells default to normal text and left 
alignment
HTML TAG ATTRIBUTE FUNCTION 
<table> align table alignment (left, center, right) 
</table> bgcolor sets background color for table 
border sets width of table border (pixels) 
cellspacing spacing between cells 
cellpadding spacing within cells 
cols number of columns 
width table width relative to window width 
<tr></tr> align horizontally aligns row (left,right,center,justify) 
bgcolor sets background color for row 
valign vertically aligns row (top, middle, bottom) 
<th></th> align horizontally aligns cell (left,right,center,justify) 
<td></td> bgcolor sets background color for cell 
colspan no. of columns spanned by a cell 
rowspan sets no. of rows spanned by a cell 
valign vertically aligns cell (top, middle, bottom)
Format: (examples) 
<table border=0 cols=1 width=80% align=center> 
<table border=0 cols=2 cellspacing=15 width=50% align=right> 
<tr valign=top> 
<td><img src=“image.jpg” height=65 width=261></td> 
<td width=30% bgcolor=“#FFFF99”> 
<th><font color=“blue” size=+1>

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Html
HtmlHtml
Html
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
CSS
CSSCSS
CSS
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Html TAGS
Html TAGSHtml TAGS
Html TAGS
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
Hyperlinks in HTML
Hyperlinks in HTMLHyperlinks in HTML
Hyperlinks in HTML
 
Html
HtmlHtml
Html
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Html
HtmlHtml
Html
 

Ähnlich wie Hyper Text Mark-up Language

Ähnlich wie Hyper Text Mark-up Language (20)

HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Html tags
Html tagsHtml tags
Html tags
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML Training Part1
HTML Training Part1HTML Training Part1
HTML Training Part1
 
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
 
HTML
HTMLHTML
HTML
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html (hyper text markup language)
Html (hyper text markup language)Html (hyper text markup language)
Html (hyper text markup language)
 
Html basics
Html basicsHtml basics
Html basics
 
Html Simple Tutorial
Html Simple TutorialHtml Simple Tutorial
Html Simple Tutorial
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
html
htmlhtml
html
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Session-1, Revision of HTML.pptx
Session-1, Revision of HTML.pptxSession-1, Revision of HTML.pptx
Session-1, Revision of HTML.pptx
 
Html basics
Html basicsHtml basics
Html basics
 

Mehr von Fritz Earlin Therese Lapitaje Pondantes

Mehr von Fritz Earlin Therese Lapitaje Pondantes (20)

Talumpati
TalumpatiTalumpati
Talumpati
 
Pagsulat ng talumpati
Pagsulat ng talumpatiPagsulat ng talumpati
Pagsulat ng talumpati
 
Social changes in the global community
Social changes in the global communitySocial changes in the global community
Social changes in the global community
 
Region 1, PHILIPPINES
Region 1, PHILIPPINESRegion 1, PHILIPPINES
Region 1, PHILIPPINES
 
Radio
RadioRadio
Radio
 
Oxford oregon debate
Oxford oregon debateOxford oregon debate
Oxford oregon debate
 
Life hacks: student edition
Life hacks: student editionLife hacks: student edition
Life hacks: student edition
 
Japanese tutorial
Japanese tutorialJapanese tutorial
Japanese tutorial
 
Interactional theory
Interactional theoryInteractional theory
Interactional theory
 
Growth of towns and guilds
Growth of towns and guildsGrowth of towns and guilds
Growth of towns and guilds
 
Appeal to Pity
Appeal to PityAppeal to Pity
Appeal to Pity
 
Prophetic Books of the Bible
Prophetic Books of the BibleProphetic Books of the Bible
Prophetic Books of the Bible
 
The Nature of drug and drug abuse
The Nature of drug and drug abuseThe Nature of drug and drug abuse
The Nature of drug and drug abuse
 
Child Labor
Child LaborChild Labor
Child Labor
 
Ancient River Civilizations
Ancient River CivilizationsAncient River Civilizations
Ancient River Civilizations
 
Trivia: Sphinx of Giza
Trivia: Sphinx of GizaTrivia: Sphinx of Giza
Trivia: Sphinx of Giza
 
Servant Leadership
Servant LeadershipServant Leadership
Servant Leadership
 
Myths and legends: Sphinx of Giza
Myths and legends: Sphinx of GizaMyths and legends: Sphinx of Giza
Myths and legends: Sphinx of Giza
 
Facts and details: Sphinx of Giza
Facts and details: Sphinx of GizaFacts and details: Sphinx of Giza
Facts and details: Sphinx of Giza
 
Topic Sentences
Topic SentencesTopic Sentences
Topic Sentences
 

Kürzlich hochgeladen

原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查ydyuyu
 
一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理F
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiMonica Sydney
 
Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024SOFTTECHHUB
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasDigicorns Technologies
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrHenryBriggs2
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理F
 
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...kumargunjan9515
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理F
 
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsrahman018755
 
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...Sareena Khatun
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdfMatthew Sinclair
 
PIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsxPIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsxjeykeydeveloper
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdfMatthew Sinclair
 
South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...
South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...
South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...gragchanchal546
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Roommeghakumariji156
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge GraphsEleniIlkou
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsMonica Sydney
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC
 

Kürzlich hochgeladen (20)

原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理
 
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
Sensual Call Girls in Tarn Taran Sahib { 9332606886 } VVIP NISHA Call Girls N...
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
 
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...Local Call Girls in Gomati  9332606886 HOT & SEXY Models beautiful and charmi...
Local Call Girls in Gomati 9332606886 HOT & SEXY Models beautiful and charmi...
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
PIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsxPIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsx
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...
South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...
South Bopal [ (Call Girls) in Ahmedabad ₹7.5k Pick Up & Drop With Cash Paymen...
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 

Hyper Text Mark-up Language

  • 2. WWhhaatt iiss aann HHTTMMLL FFiillee??  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The markup tags tell the Web browser how to display the page  An HTML file must have an htm or html file extension  An HTML file can be created using a simple text editor
  • 3. DDoo YYoouu WWaanntt ttoo TTrryy IItt??  If you are running Windows, start Notepad.  Type in the following text: <html> <head> <title>My first Page</title> </head> < body> This is my first homepage. <b>This text is bold</b> </body> </html> Save the file as "mypage.htm".
  • 4. EExxaammppllee EExxppllaaiinneedd  <html> - the tag that tells the browser that this is the start of an HTML document  </html> - the tag that tells the browser that this is the end of the HTML document  The text between the <head> tag and the </head> tag is header information.  The text between the <title> tags is the title of your document.  The text between the <body> tags is the text that will be displayed in your browser.  The text between the <b> and </b> tags will be displayed in a bold font.
  • 5. HHTTMM oorr HHTTMMLL EExxtteennssiioonn?? When you save an HTML file, you can use either the .htm or the .html extension.
  • 6. HHTTMMLL EElleemmeennttss HTML documents are text files made up of HTML elements. HTML elements are defined using HTML tags. This is an HTML element: <b>This text is bold</b>  The HTML element starts with a start tag: <b>  The content of the HTML element is: This text is bold  The HTML element ends with an end tag: </b>
  • 7. HHTTMMLL TTaaggss  HTML tags are used to mark-up HTML elements  HTML tags are surrounded by the two characters < and >  The surrounding characters are called angle brackets  HTML tags normally come in pairs like <b> and </b>  The first tag in a pair is the start tag, the second tag is the end tag  The text between the start and end tags is the element content  HTML tags are not case sensitive, <b> means the same as <B>
  • 8. TTaagg AAttttrriibbuutteess Tags can have attributes.  Attributes provide additional information to an HTML element.  Attributes always come in name/value pairs like this: name="value".  Attributes are always specified in the start tag of an HTML element.  Attributes and attribute values are also case-insensitive. Note: “Always quote attribute values.”  Double style quotes are the most common, but single style quotes are also allowed.
  • 9. BBaassiicc HHTTMMLL TTaaggss HTML <body> tag  The body element defines the documents' body. It contains all the contents of the document (like text, images, colors, graphics, etc.).  Example: <html> <head> </head> <body> The content of the document...... </body> </html>
  • 10. BBaassiicc HHTTMMLL TTaaggss  Optional Attributes Attribute Value Description Specifies the color of the visited links in the document. rgb(x,x,x), #xxxxxx colorname vlink Specifies the color of the text in the document. rgb(x,x,x), #xxxxxx colorname text Specifies the color of all the links in the document. rgb(x,x,x), #xxxxxx colorname link The background color of the document. rgb(x,x,x), #xxxxxx colorname bgcolor An image to use as the background. background file_name Specifies the color of the active links in the document. rgb(x,x,x), #xxxxxx colorname alink
  • 11. BBaassiicc HHTTMMLL TTaaggss Note: The most important tags in HTML are tags that define headings, paragraphs and line breaks. Headings - are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading. - Headings are always displayed in a bold font. - HTML automatically adds an extra blank line before and after a heading.
  • 12. BBaassiicc HHTTMMLL TTaaggss • Optional Attributes Attribute Value Description Specifies the alignment of the text in the header. left center right justify align
  • 13. BBaassiicc HHTTMMLL TTaaggss Paragraphs - Paragraphs are defined with the <p> tag. - HTML automatically adds an extra blank line before and after a paragraph. - Example: <p>This is a paragraph</p> <p>This is another paragraph</p
  • 14. BBaassiicc HHTTMMLL TTaaggss • Optional Attributes Attribute Value Description Specifies the alignment of the text within the paragraph. left center right justify align
  • 15. BBaassiicc HHTTMMLL TTaaggss Line Breaks  The <br> tag is used when you want to end a line, but don't want to start a new paragraph.  The <br> tag forces a line break wherever you place it.  The <br> tag is an empty tag. It has no closing tag.
  • 16. BBaassiicc HHTTMMLL TTaaggss Comments in HTML  The comment tag is used to insert a comment in the HTML source code.  A comment will be ignored by the browser.  You can use comments to explain your code, which can help you when you edit the source code at a later date.  Example: <!-- This is a comment -->
  • 17. BBaassiicc HHTTMMLL TTaaggss  HTML <hr> tag  The <hr> tag inserts a horizontal rule.  In HTML the <hr> tag has no end tag. Attribute Value Description Specifies the width of the horizontal rule width pixels, % Specifies the thickness (height) of the horizontal rule. size pixels, % When set to true the rule should render in a solid color, when set to false the rule should render in a two-color "groove". noshade noshade Specifies the alignment of the horizontal rule. center, left, right align
  • 18. HHTTMMLL TTeexxtt FFoorrmmaattttiinngg Text Formatting Tags  Tag Description <b> Defines bold text <big> Defines big text <em> Defines emphasized text <i> Defines italic text <small> Defines small text <strong> Defines strong text <sub> Defines subscripted text <sup> Defines superscripted text
  • 19. HHTTMMLL TTeexxtt FFoorrmmaattttiinngg "Computer Output" Tags  Tag Description <code> Defines computer code text <kbd> Defines keyboard text <samp> Defines sample computer code <tt> Defines teletype text <var> Defines a variable <pre> Defines preformatted text
  • 20. HHTTMMLL TTeexxtt FFoorrmmaattttiinngg Citations, Quotations, and Definition Tags  Tag Description <abbr> Defines an abbreviation <acronym>Defines an acronym <address> Defines an address element <bdo> Defines the text direction <blockquote> Defines a long quotation <q> Defines a short quotation <cite> Defines a citation <dfn> Defines a definition term
  • 21. HHTTMMLL CChhaarraacctteerr EEnnttiittiieess  Some characters like the < character, have a special meaning in HTML, and therefore cannot be used in the text.  Character Entity - Has three parts 1. an ampersand (&) 2. an entity name or a # and an entity number 3. a semicolon (;)  Note that the entities are case sensitive.
  • 22. HHTTMMLL CChhaarraacctteerr EEnnttiittiieess The Most Common Character Entities: Result Description Entity NameEntity Number non-breaking space &nbsp; &#160; < less than &lt; &#60; > greater than &gt; &#62; & ampersand &amp; &#38; “ quotation mark &quot; &#34; ‘ apostrophe &apos; &#39;
  • 23. HHTTMMLL CChhaarraacctteerr EEnnttiittiieess Some Other Commonly Used Character Entities: Result Description Entity NameEntity Number ¢ cent &cent; &#162; £ pound &pound; &#163; ¥ yen &yen; &#165; € euro &euro; &#8364; § section &sect; &#167; © copyright &copy; &#169; ® registered trademark &reg; &#174; × multiplication &times; &#215; ÷ division &divide; &#247;
  • 24. LLiinnkkss  HTML uses a hyperlink to link to another document on the Web.  The Anchor Tag and the Href Attribute  HTML uses the <a> (anchor) tag to create a link to another document.  An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc.  Syntax: <a href="url">Text to be displayed</a>  The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.
  • 25. LLiinnkkss  The Target Attribute  With the target attribute, you can define where the linked document will be opened.  The Anchor Tag and the Name Attribute  The name attribute is used to create a named anchor. When using named anchors we can create links that can jump directly into a specific section on a page, instead of letting the user scroll around to find what he/she is looking for.  Syntax: <a name="label">Text to be displayed</a> <a href="#label"> Text to be displayed</a>  The name attribute is used to create a named anchor. The name of the anchor can be any text you care to use.
  • 26. LLiissttss  HTML supports ordered, unordered and definition lists.  Unordered Lists - The list items are marked with bullets (typically small black circles). - An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.  Ordered Lists - The list items are marked with numbers. - An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.  Definition Lists - This is a list of terms and explanation of the terms. - A definition list starts with the <dl> tag. Each definition-list term starts with the <dt> tag. Each definition-list definition starts with the <dd> tag.
  • 27. LLiissttss • How it looks like Numbered list: 1. Apples 2. Bananas 3. Lemons 4. Oranges Letters list: A. Apples B. Bananas C. Lemons D. Oranges • Examples <h4>Numbered list:</h4> <ol> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol> <h4>Letters list:</h4> <ol type="A"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol>
  • 28. LLiissttss • How it looks like Lowercase letters list: a. Apples b. Bananas c. Lemons d. Oranges Roman numbers list: I. Apples II. Bananas III. Lemons IV. Oranges • Examples <h4>Lowercase letters list:</h4> <ol type="a"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol> <h4>Roman numbers list:</h4> <ol type="I"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol>
  • 29. LLiissttss • How it looks like Lowercase Roman numbers list: i. Apples ii. Bananas iii. Lemons iv. Oranges • Examples <h4>Lowercase Roman numbers list:</h4> <ol type="i"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> – </ol>
  • 30. LLiissttss • How it looks like Disc bullets list: • Apples • Bananas • Lemons • Oranges Circle bullets list: o Apples o Bananas o Lemons o Oranges • Examples <h4>Disc bullets list:</h4> <ul type="disc"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ul> <h4>Circle bullets list:</h4> <ul type="circle"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ul>
  • 31. LLiissttss • How it looks like Square bullets list:  Apples  Bananas  Lemons  Oranges • Examples <h4>Square bullets list:</h4> <ul type="square"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ul>
  • 32. TTaabblleess  allow you to position elements easily on a Web page.  help your Web pages look more organized and professional.  are useful when you want to arrange text and images into rows and columns, making the information straightforward and clear to the Web page visitor.
  • 33. TTaabblleess Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.
  • 34. TTaabblleess Example: <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> Open table.html to show how it is rendered.
  • 35. TTaabblleess  Tables and the Border Attribute - If you do not specify a border attribute the table will be displayed without any borders. Sometimes this can be useful, but most of the time, you want the borders to show.  Headings in a Table - Headings in a table are defined with the <th> tag. - Example: Open tableHeading.html  Empty Cells in a Table - Table cells with no content are not displayed very well in most browsers. - Borders around the empty table cell are missing (NB! Mozilla Firefox displays the border). - To avoid this, add a non-breaking space (&nbsp;) to empty data cells, to make the borders visible.
  • 36. HTML TAG FUNCTION <table> Indicates the beginning & end of the table </table> All other tags will be inserted within these tags <tr></tr> Indicates the beginning & end of table row Rows consist of heading or data cells <th></th> Indicates the beginning & end of a table heading cell Heading cells default to bold text and center alignment <td></td> Indicates the beginning & end of a table data cell Data cells default to normal text and left alignment
  • 37. HTML TAG ATTRIBUTE FUNCTION <table> align table alignment (left, center, right) </table> bgcolor sets background color for table border sets width of table border (pixels) cellspacing spacing between cells cellpadding spacing within cells cols number of columns width table width relative to window width <tr></tr> align horizontally aligns row (left,right,center,justify) bgcolor sets background color for row valign vertically aligns row (top, middle, bottom) <th></th> align horizontally aligns cell (left,right,center,justify) <td></td> bgcolor sets background color for cell colspan no. of columns spanned by a cell rowspan sets no. of rows spanned by a cell valign vertically aligns cell (top, middle, bottom)
  • 38. Format: (examples) <table border=0 cols=1 width=80% align=center> <table border=0 cols=2 cellspacing=15 width=50% align=right> <tr valign=top> <td><img src=“image.jpg” height=65 width=261></td> <td width=30% bgcolor=“#FFFF99”> <th><font color=“blue” size=+1>