SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
   HTML defines the structure and layout of a Web
    document by using a variety of tags and attributes.
     ◦ HTML Define
        Acronym for Hypertext Markup Language
        A document use for creating web pages.
     ◦ Parts of the HTML Document
        Head section
         <head><title></title></head>
        Body section
         <body></body>




                                                          2
<html>
 <head>
    <title>…</title>
 </head>
 <body>
    Page contents….
 </body>
</html>



                       3
◦ a software used for authoring web documents. A
  simple text editor like Notepad is sufficient for
  creating web pages, but there are advanced HTML
  editors that can be used to speed-up the
  development process.
◦ Some of these are:
  Microsoft FrontPage
  Dreamweaver




                                                      4
   Paragraph - <p></p>
   List – ordered list<ol>,unordered list<ul>
   Image - <img>
   Link - <a>
   Heading – <H1> to <H6>
   Table - <table>
   Form




                                                 5
<p> This is the first paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the third paragraph.</p>




This is the first paragraph.
This is the second paragraph.
This is the third paragraph.




                                       6
   align
   id
   Example:
    ◦ <p align=center>…</p>
    ◦ <p id=p1>…</p>




                              7
Sample tag
<ol>Favorite colors
<li>White
<li>Pink
<li>Blue
<li>Green
<li>Brown
</ol>



                      8
   Type
    ◦   1
    ◦   I
    ◦   A
    ◦   a




            9
Sample Tag
<ul>Favorite colors
<li>White
<li>Pink
<li>Blue
<li>Green
<li>Brown
</ul>



                      10
   Type
    ◦ Disc
    ◦ Square
    ◦ circle




               11
   Type
   start
   Example:
    ◦ <ol type=1 start=5>…</ol>
    ◦ <ul type=disc</ul>
    ◦ Output




                                  12
   Image tag attributes
    ◦ src = source image
    ◦ width = image width
    ◦ Height = image height
Sample
<img src=Penguins.jpg width=100
 height=100>




                                  13
   Anchor tag attributes:
    ◦ href=The href attribute specifies the destination of
      a link
    ◦ target= The target attribute specifies where to open
      the linked document
Sample
<a href=img.html>Penguin</a>




                                                             14
1.    Create one paragraph (Brief history of PUP)
        Save it as history.html
2.    Create list for the following:
     1. Colleges (Ordered list)
     2. Courses (Unordered list)
        Save as aboutus.html
3.    Add the logo of PUP at the top of the PUP
      history paragraph.
4.    Create link to history.html and aboutus.html
        Save as index.html



                                                     15
Sample Heading tag
<h1>This is heading h1.</h1>
<h2>This is heading h2.</h2>
<h3>This is heading h3.</h3>
<h4>This is heading h4.</h4>
<h5>This is heading h5.</h5>
<h6>This is heading h6.</h6>




                               16
17
Sample Table tag
<table border=1 width=50%>
<tr><th>Rank</th><th>Name</th><th>Div
 ision/Office</th></tr>
<tr><td>PCI</td><td>Amir Hassan
 Ali</td><td>Inspectorate Office</td></tr>
<tr><td>PCI</td><td>Victorio Dela
 Peña</td><td>Data Warehouse Provision
 Office</td></tr>
</table>

                                             18
19
   Form elements
    ◦ Input tag
    ◦ Select tag
   Input tag types
    ◦   Text
    ◦   Radio
    ◦   Checkbox
    ◦   Submit
    ◦   Button
   Select tag


                      20
<form>
Rank: <select><option
  value=PO1>PO1</option><option
  value=PO2>PO2</option><option
  value=PO3>PO3</option>
</select><br>
Name:<input type=text name=pname
  maxlength=50><br>
Civil Status:<input type=radio value=Single
  >Single<input type=radio value=Married
  >Married<input type=radio value=Widow >Widow<br>
Unit Assignment:<input type=text name=unit><br>
<input type=submit value=Submit>
</form>



                                                     21
22
   Create form with the following fields
    ◦   Employee Number
    ◦   Lastname
    ◦   Firstname
    ◦   Middlename
    ◦   Position
   Arrange the layout of the form using Table
    tag
   Output



                                                 23
   Cascading Style Sheets (CSS) is a
    simple mechanism for adding style
    (e.g., fonts, colors, spacing) to Web
    documents
   A style is used to predefine the format
    for any HTML tag in the document.
   CSS is defined in <style></style> tag
    and usually place inside
    <head>…</head>
   Three types: External, Internal and
    Inline
                                              24
   External CSS – a style sheet outside HTML
    document and can be embedded or link to HTML
    document by using <link> tag.
    ◦ It is ideal when the style is applied to many pages.
   Internal CSS – a style sheet place inside the HTML
    document.
    ◦ The style is used to a single page.
    ◦ Format: <head><style>…</style></head>
   Inline CSS - An inline style can be used if a unique
    style is to be applied to one single occurrence of an
    element.
    ◦ <p style="color:blue;margin-left:20px;">This is a
      paragraph.</p>


                                                             25
<head>
<style>
p {align:center:
color:gray;
font-family:Arial;
font-size:12px;}

table,td,th{
border:solid ; border-color:gray;
font-family:Arial; font-size:14px;
color:#666666;
padding-left:15px;
padding-right:15px;
}</style>
</head>
                                     26
ITMS Training and Research
                   Division   27
   Create the CSS for the following tag:
    ◦ Paragraph
       Font-family: arial
       Color: #666666
       fo
    ◦ Table
       Border: solid
       Border-color:#cccccc
       Font-family:arial
       Color:#666666
    ◦ ol and ul
      Font-family:arial
      Color:#333333
 Open the webpages you created previously and add the
  following to the head section:
<head> <link href="design.css" rel="stylesheet"
  type="text/css"></head>



                                                         28
   Use <table> tag
    ◦ Create table with two columns and four rows




                                                    29
<h3><center>Template using table tag</center></h3>
<table width="347" border="1" align="center">
 <tr>
  <td colspan="2"><div align="center“
  >Header/Banner</div></td>
 </tr>
 <tr>
  <td colspan="2"><div
  align="center">Navigation/Menu</div></td>
 </tr>
 <tr>
  <td width="55" height="89"><p align="center">ADS</td>
  <td width="282">ARTICLES</td>
 </tr>
 <tr>
  <td colspan="2"><div align="center">FOOTER</div></td>
   </tr>
</table>

                                    ITMS Training and Research
                                                       Division   30
<div class=wrapper width=800px>
  <div id=header><img src=header.jpg></div>
  <div id=nav>Home<br>About Us<br>Contact Us</div>
  <div id=content>Contents here</div>
  <div id=footer>Copyright 2011
  www.itms.pnp.gov.ph</div>
</div>




                               ITMS Training and Research
                                                  Division   31
   Create your desired template, choose from
    div or table tag.
   Create also the CSS for this template and add
    it to the head section.




                           ITMS Training and Research
                                              Division   32
ITMS Training and Research
                   Division   33
ITMS Training and Research
                   Division   34

Contenu connexe

Tendances

HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshMukesh Kumar
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssTesfaye Yenealem
 
Cascading Style Sheet | CSS
Cascading Style Sheet | CSSCascading Style Sheet | CSS
Cascading Style Sheet | CSSMSA Technosoft
 
Introduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghIntroduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghAnkitkumar Singh
 
The three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth yearThe three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth yearPerry Mallari
 
web development basics tables part2
web development basics tables part2web development basics tables part2
web development basics tables part2Kalluri Vinay Reddy
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comShwetaAggarwal56
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
Web Technology Lab File
Web Technology Lab FileWeb Technology Lab File
Web Technology Lab FileKandarp Tiwari
 

Tendances (20)

HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
 
Css starting
Css startingCss starting
Css starting
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet css
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
html
htmlhtml
html
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Cascading Style Sheet | CSS
Cascading Style Sheet | CSSCascading Style Sheet | CSS
Cascading Style Sheet | CSS
 
Css
CssCss
Css
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Introduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghIntroduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar Singh
 
Web technology lab manual
Web technology lab manualWeb technology lab manual
Web technology lab manual
 
HTML basic
HTML basicHTML basic
HTML basic
 
The three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth yearThe three types of style sheet lesson two fourth quarter fourth year
The three types of style sheet lesson two fourth quarter fourth year
 
web development basics tables part2
web development basics tables part2web development basics tables part2
web development basics tables part2
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
 
Css introduction
Css introductionCss introduction
Css introduction
 
Web Technology Lab File
Web Technology Lab FileWeb Technology Lab File
Web Technology Lab File
 
CSS
CSS CSS
CSS
 

Similaire à Hypertext markup language(html) (20)

Dhtml chapter2
Dhtml chapter2Dhtml chapter2
Dhtml chapter2
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
CSS in HTML
CSS in HTMLCSS in HTML
CSS in HTML
 
Print this
Print thisPrint this
Print this
 
CSS.pdf
CSS.pdfCSS.pdf
CSS.pdf
 
Wdf 222chp iii vi
Wdf 222chp iii viWdf 222chp iii vi
Wdf 222chp iii vi
 
css1.pptx
css1.pptxcss1.pptx
css1.pptx
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Html
HtmlHtml
Html
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Intro to CSS_APEC CascadingStyleSheets.pptx
Intro to CSS_APEC CascadingStyleSheets.pptxIntro to CSS_APEC CascadingStyleSheets.pptx
Intro to CSS_APEC CascadingStyleSheets.pptx
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
 
HyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.pptHyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.ppt
 
Html and css
Html and cssHtml and css
Html and css
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 

Dernier

All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...amber724300
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
WomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyoneWomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyoneUiPathCommunity
 
Français Patch Tuesday - Avril
Français Patch Tuesday - AvrilFrançais Patch Tuesday - Avril
Français Patch Tuesday - AvrilIvanti
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialJoão Esperancinha
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 

Dernier (20)

All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
How Tech Giants Cut Corners to Harvest Data for A.I.
How Tech Giants Cut Corners to Harvest Data for A.I.How Tech Giants Cut Corners to Harvest Data for A.I.
How Tech Giants Cut Corners to Harvest Data for A.I.
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
WomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyoneWomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyone
 
Français Patch Tuesday - Avril
Français Patch Tuesday - AvrilFrançais Patch Tuesday - Avril
Français Patch Tuesday - Avril
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorial
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 

Hypertext markup language(html)

  • 1.
  • 2. HTML defines the structure and layout of a Web document by using a variety of tags and attributes. ◦ HTML Define  Acronym for Hypertext Markup Language  A document use for creating web pages. ◦ Parts of the HTML Document  Head section <head><title></title></head>  Body section <body></body> 2
  • 3. <html> <head> <title>…</title> </head> <body> Page contents…. </body> </html> 3
  • 4. ◦ a software used for authoring web documents. A simple text editor like Notepad is sufficient for creating web pages, but there are advanced HTML editors that can be used to speed-up the development process. ◦ Some of these are:  Microsoft FrontPage  Dreamweaver 4
  • 5. Paragraph - <p></p>  List – ordered list<ol>,unordered list<ul>  Image - <img>  Link - <a>  Heading – <H1> to <H6>  Table - <table>  Form 5
  • 6. <p> This is the first paragraph.</p> <p>This is the second paragraph.</p> <p>This is the third paragraph.</p> This is the first paragraph. This is the second paragraph. This is the third paragraph. 6
  • 7. align  id  Example: ◦ <p align=center>…</p> ◦ <p id=p1>…</p> 7
  • 9. Type ◦ 1 ◦ I ◦ A ◦ a 9
  • 11. Type ◦ Disc ◦ Square ◦ circle 11
  • 12. Type  start  Example: ◦ <ol type=1 start=5>…</ol> ◦ <ul type=disc</ul> ◦ Output 12
  • 13. Image tag attributes ◦ src = source image ◦ width = image width ◦ Height = image height Sample <img src=Penguins.jpg width=100 height=100> 13
  • 14. Anchor tag attributes: ◦ href=The href attribute specifies the destination of a link ◦ target= The target attribute specifies where to open the linked document Sample <a href=img.html>Penguin</a> 14
  • 15. 1. Create one paragraph (Brief history of PUP) Save it as history.html 2. Create list for the following: 1. Colleges (Ordered list) 2. Courses (Unordered list) Save as aboutus.html 3. Add the logo of PUP at the top of the PUP history paragraph. 4. Create link to history.html and aboutus.html Save as index.html 15
  • 16. Sample Heading tag <h1>This is heading h1.</h1> <h2>This is heading h2.</h2> <h3>This is heading h3.</h3> <h4>This is heading h4.</h4> <h5>This is heading h5.</h5> <h6>This is heading h6.</h6> 16
  • 17. 17
  • 18. Sample Table tag <table border=1 width=50%> <tr><th>Rank</th><th>Name</th><th>Div ision/Office</th></tr> <tr><td>PCI</td><td>Amir Hassan Ali</td><td>Inspectorate Office</td></tr> <tr><td>PCI</td><td>Victorio Dela Peña</td><td>Data Warehouse Provision Office</td></tr> </table> 18
  • 19. 19
  • 20. Form elements ◦ Input tag ◦ Select tag  Input tag types ◦ Text ◦ Radio ◦ Checkbox ◦ Submit ◦ Button  Select tag 20
  • 21. <form> Rank: <select><option value=PO1>PO1</option><option value=PO2>PO2</option><option value=PO3>PO3</option> </select><br> Name:<input type=text name=pname maxlength=50><br> Civil Status:<input type=radio value=Single >Single<input type=radio value=Married >Married<input type=radio value=Widow >Widow<br> Unit Assignment:<input type=text name=unit><br> <input type=submit value=Submit> </form> 21
  • 22. 22
  • 23. Create form with the following fields ◦ Employee Number ◦ Lastname ◦ Firstname ◦ Middlename ◦ Position  Arrange the layout of the form using Table tag  Output 23
  • 24. Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents  A style is used to predefine the format for any HTML tag in the document.  CSS is defined in <style></style> tag and usually place inside <head>…</head>  Three types: External, Internal and Inline 24
  • 25. External CSS – a style sheet outside HTML document and can be embedded or link to HTML document by using <link> tag. ◦ It is ideal when the style is applied to many pages.  Internal CSS – a style sheet place inside the HTML document. ◦ The style is used to a single page. ◦ Format: <head><style>…</style></head>  Inline CSS - An inline style can be used if a unique style is to be applied to one single occurrence of an element. ◦ <p style="color:blue;margin-left:20px;">This is a paragraph.</p> 25
  • 26. <head> <style> p {align:center: color:gray; font-family:Arial; font-size:12px;} table,td,th{ border:solid ; border-color:gray; font-family:Arial; font-size:14px; color:#666666; padding-left:15px; padding-right:15px; }</style> </head> 26
  • 27. ITMS Training and Research Division 27
  • 28. Create the CSS for the following tag: ◦ Paragraph  Font-family: arial  Color: #666666  fo ◦ Table  Border: solid  Border-color:#cccccc  Font-family:arial  Color:#666666 ◦ ol and ul  Font-family:arial  Color:#333333  Open the webpages you created previously and add the following to the head section: <head> <link href="design.css" rel="stylesheet" type="text/css"></head> 28
  • 29. Use <table> tag ◦ Create table with two columns and four rows 29
  • 30. <h3><center>Template using table tag</center></h3> <table width="347" border="1" align="center"> <tr> <td colspan="2"><div align="center“ >Header/Banner</div></td> </tr> <tr> <td colspan="2"><div align="center">Navigation/Menu</div></td> </tr> <tr> <td width="55" height="89"><p align="center">ADS</td> <td width="282">ARTICLES</td> </tr> <tr> <td colspan="2"><div align="center">FOOTER</div></td> </tr> </table> ITMS Training and Research Division 30
  • 31. <div class=wrapper width=800px> <div id=header><img src=header.jpg></div> <div id=nav>Home<br>About Us<br>Contact Us</div> <div id=content>Contents here</div> <div id=footer>Copyright 2011 www.itms.pnp.gov.ph</div> </div> ITMS Training and Research Division 31
  • 32. Create your desired template, choose from div or table tag.  Create also the CSS for this template and add it to the head section. ITMS Training and Research Division 32
  • 33. ITMS Training and Research Division 33
  • 34. ITMS Training and Research Division 34