SlideShare una empresa de Scribd logo
1 de 9
Lecture 10

    -   More about body tag- Setting up link colors
    -   More about body tag- Setting up Background Image
    -   Meta tags


In previous lecture, you learned the BODY tag. The BODY tag has many attributes... here are
the most useful ones...

    •   BACKGROUND="location_of_image" - Background image for web page.
        Example: If you have kitten.jpg in the same directory as your HTML file, use
        <body background="kitten.jpg"> to load it as your background image.




    •   BGCOLOR="name of color" – Sets the Background Color for the web page




    •   LINK="name of color" - Color Code for Links (if left blank, most browsers
        default to blue.)



    •   VLINK="name of color" - Code for Links the User has Already Visited (if left
        blank, most browsers default to purple.)



    •   TEXT="name of color"




More About Table Tag
TWO DEMONSTRATIONS OF ROWSPAN

Item 1        Item 3
       Item 2
Item 4        Item 5
<TABLE BORDER>
        <TR>
                    <TD>Item 1</TD>
                    <TD ROWSPAN=2>Item 2</TD>
                    <TD>Item 3</TD>
          </TR>
<TR>
                    <TD>Item 4</TD> <TD>Item 5</TD>
        </TR>
</TABLE>

         Item 2 Item 3 Item 4
Item 1
         Item 5 Item 6 Item 7
<TABLE BORDER>
        <TR>
                    <TD ROWSPAN=2>Item 1</TD>
                    <TD>Item 2</TD> <TD>Item 3</TD> <TD>Item 4</TD>
           </TR>
           <TR>
                    <TD>Item 5</TD> <TD>Item 6</TD> <TD>Item 7</TD>
        </TR>
</TABLE>

DEMONSTRATION OF COLSPAN

Item 1 Item 2
Item 3 Item 4 Item 5
<TABLE BORDER>
        <TR>
                    <TD>Item 1</TD>
                    <TD COLSPAN=2>Item 2</TD>
           </TR>
           <TR>
                    <TD>Item 3</TD> <TD>Item 4</TD> <TD>Item 5</TD>
        </TR>
</TABLE>

DEMONSTRATION OF HEADERS, <TH>

Head1 Head2 Head3
A     B    C
D     E    F
<TABLE BORDER>
        <TR>
                    <TH>Head1</TH> <TH>Head2</TH> <TH>Head3</TH>
           </TR>
           <TR>
                    <TD>A</TD> <TD>B</TD> <TD>C</TD>
           </TR>
           <TR>
                    <TD>D</TD> <TD>E</TD> <TD>F</TD>
        </TR>
</TABLE>

DEMONSTRATION OF COLSPAN AND HEADERS,
Head1 Head2
A B C D
E F G H
<TABLE BORDER>
        <TR>
                 <TH COLSPAN=2>Head1</TH>
                 <TH COLSPAN=2>Head2</TH>
        </TR>
        <TR>
                 <TD>A</TD> <TD>B</TD> <TD>C</TD> <TD>D</TD>
        </TR>
        <TR>
                 <TD>E</TD> <TD>F</TD> <TD>G</TD> <TD>H</TD>
        </TR>
</TABLE>

DEMONSTRATION OF MULTIPLE HEADERS, COLSPAN

   Head1         Head2
Head 3 Head 4 Head 5 Head 6
A      B      C     D
E      F      G     H
<TABLE BORDER>
        <TR>
                 <TH COLSPAN=2>Head1</TH>
                 <TH COLSPAN=2>Head2</TH>
        </TR>
        <TR>
                 <TH>Head 3</TH> <TH>Head 4</TH>
                 <TH>Head 5</TH> <TH>Head 6</TH>
        </TR>
        <TR>
                 <TD>A</TD> <TD>B</TD> <TD>C</TD> <TD>D</TD>
        </TR>
        <TR>
                 <TD>E</TD> <TD>F</TD> <TD>G</TD> <TD>H</TD>
        </TR>
</TABLE>




DEMONSTRATION OF SIDE HEADERS
Head1 Item 1 Item 2 Item 3
Head2 Item 4 Item 5 Item 6
Head3 Item 7 Item 8 Item 9
<TABLE BORDER>
        <TR><TH>Head1</TH>
                <TD>Item 1</TD> <TD>Item 2</TD> <TD>Item 3</TD></TR>
        <TR><TH>Head2</TH>
                <TD>Item 4</TD> <TD>Item 5</TD> <TD>Item 6</TD></TR>
        <TR><TH>Head3</TH>
                <TD>Item 7</TD> <TD>Item 8</TD> <TD>Item 9</TD></TR>
</TABLE>

DEMONSTRATION OF SIDE HEADERS, ROWSPAN

      Item 1 Item 2 Item 3 Item 4
Head1
      Item 5 Item 6 Item 7 Item 8
Head2 Item 9 Item 10 Item 3 Item 11
<TABLE BORDER>
        <TR><TH ROWSPAN=2>Head1</TH>
            <TD>Item 1</TD> <TD>Item 2</TD> <TD>Item 3</TD> <TD>Item 4</
TD>
        </TR>
        <TR><TD>Item 5</TD> <TD>Item 6</TD> <TD>Item 7</TD> <TD>Item 8</
TD>
        </TR>
        <TR><TH>Head2</TH>
            <TD>Item 9</TD> <TD>Item 10</TD> <TD>Item 3</TD> <TD>Item
11</TD>
        </TR>
</TABLE>

SAMPLE TABLE USING ALL OF THESE


<TABLE BORDER>
        <TR>   <TD>
               <TH ROWSPAN=2></TH>
               <TH COLSPAN=2>Average</TH>
               </TD>
        </TR>
        <TR>   <TD><TH>Height</TH><TH>Weight</TH></TD>
        </TR>
        <TR>   <TH ROWSPAN=2>Gender</TH>
               <TH>Males</TH><TD>1.9</TD><TD>0.003</TD>
        </TR>
        <TR>   <TH>Females</TH><TD>1.7</TD><TD>0.002</TD>
        </TR>
</TABLE>
CLEVER USES OF ROWSPAN/COLSPAN

 12
A
 34
C D
<TABLE BORDER>
        <TR>
                  <TD ALIGN=center ROWSPAN=2 COLSPAN=2>A</TD>
                  <TD>1</TD>
                  <TD>2</TD>
          </TR>
          <TR>
                  <TD>3</TD>
                  <TD>4</TD>
          </TR>
          <TR>
                  <TD ALIGN=center ROWSPAN=2 COLSPAN=2>C</TD>
                  <TD ALIGN=center ROWSPAN=2 COLSPAN=2>D</TD>
        </TR>
        <TR>
        </TR>
</TABLE>


                  ADJUSTING MARGINS AND BORDERS
A TABLE WITHOUT BORDERS

Item 1        Item 3
       Item 2
Item 4        Item 5
<TABLE>
          <TR>    <TD>Item 1</TD> <TD ROWSPAN=2>Item 2</TD> <TD>Item
3</TD>
        </TR>
        <TR>      <TD>Item 4</TD> <TD>Item 5</TD>
        </TR>
</TABLE>




A TABLE WITH A BORDER OF 10

Item 1 Item 2
Item 3 Item 4
<TABLE BORDER=10>
        <TR>   <TD>Item 1</TD> <TD> Item 2</TD>
        </TR>
        <TR>   <TD>Item 3</TD> <TD>Item 4</TD>
        </TR>
</TABLE>
CELLPADDING AND CELLSPACING


A      B    C

D      E    F
    <TABLE BORDER CELLPADDING=10 CELLSPACING=0>
            <TR>
                   <TD>A</TD> <TD>B</TD> <TD>C</TD>
            </TR>
            <TR>
                   <TD>D</TD> <TD>E</TD> <TD>F</TD>
            </TR>
    </TABLE>

    Cellpadding tag is used to create space between the text inside your
    table and the border surrounding the text.

A    B C
D    E F

    Cellspacing tag is used to create space between different cells
    within your table.

    <TABLE BORDER CELLPADDING=0 CELLSPACING=10>
            <TR>
                   <TD>A</TD> <TD>B</TD> <TD>C</TD>
            </TR>
            <TR>
                   <TD>D</TD> <TD>E</TD> <TD>F</TD>
            </TR>
    </TABLE>

A       B       C

D       E       F
    <TABLE BORDER CELLPADDING=10 CELLSPACING=10>
            <TR>
                   <TD>A</TD> <TD>B</TD> <TD>C</TD>
            </TR>
            <TR>
                   <TD>D</TD> <TD>E</TD> <TD>F</TD>
            </TR>
    </TABLE>

A       B       C

D       E       F
    <TABLE BORDER=5 CELLPADDING=10 CELLSPACING=10>
<TR>
                    <TD>A</TD> <TD>B</TD> <TD>C</TD>
          </TR>
          <TR>
                    <TD>D</TD> <TD>E</TD> <TD>F</TD>
        </TR>
</TABLE>


                ALIGNMENT, CAPTIONS, AND SUBTABLES
DEMONSTRATION OF MULTIPLE LINES IN A TABLE

  January        February       March
                            Another cell,
This is cell 1 Cell 2
                            cell 3
              and now this
Cell 4                     Cell 6
              is cell 5
<TABLE BORDER>
        <TR>
                    <TH>January</TH>
                    <TH>February</TH>
                    <TH>March</TH>
          </TR>
          <TR>
                    <TD>This is cell 1</TD>
                    <TD>Cell 2</TD>
                    <TD>Another cell,<br> cell 3</TD>
          </TR>
          <TR>
                    <TD>Cell 4</TD>
                    <TD>and now this<br>is cell 5</TD>
                    <TD>Cell 6</TD>
        </TR>
</TABLE>




ALIGN=LEFT|RIGHT|CENTER

can be applied to individual cells or whole ROWs

    January             February          March
                                       Another cell,
all aligned center       Cell 2
                                           cell 3
                                      default,
      aligned right aligned to center
                                      aligned left
<TABLE BORDER>
        <TR>
             <TH>January</TH>
<TH>February</TH>
             <TH>March</TH>
        </TR>
        <TR ALIGN=center>
             <TD>all aligned center</TD>
             <TD>Cell 2</TD>
             <TD>Another cell,<br> cell 3</TD>
        </TR>
        <TR>
             <TD ALIGN=right>aligned right</TD>
             <TD ALIGN=center>aligned to center</TD>
             <TD>default,<br>aligned left</TD>
        </TR>
</TABLE>



VALIGN=TOP|BOTTOM|MIDDLE

can be applied to individual cells or whole ROWs

      January             February              March
all aligned to top and now this          Cell 3
                   is cell 2
aligned to the top                       default alignment,
                   aligned to the bottom center
<TABLE BORDER>
        <TR>
                   <TH>January</TH>
                   <TH>February</TH>
                   <TH>March</TH>
        </TR>
        <TR VALIGN=top>
             <TD>all aligned to top</TD>
             <TD>and now this<br>is cell 2</TD>
             <TD>Cell 3</TD>
        </TR>
        <TR>
             <TD VALIGN=top>aligned to the top</TD>
             <TD VALIGN=bottom>aligned to the bottom</TD>
             <TD>default alignment,<br>center</TD>
        </TR>
</TABLE>




Meta Tag
The <META> tag can be used for a few different purposes. META tag are used in search
engines. When a search engine finds your page, it adds your page to the searchable
database with some information. The information that it adds is actually information
contained in meta tag.

<meta name="description" content="description of page goes here">
<meta name="keywords" content="keywords go here">

Meta tags are not visible in the web page unless the user selects to 'view source'.

<html>

<head>
<title>Using Meta Tags </title>
<meta name="description" content="Joe's Collection of Cool Sound files
for you to use in your home page!">
<meta name="keywords" content="music sounds midi wav joe collection">
</head>

<body>
Page Goes Here
</body>

</html>

Más contenido relacionado

Similar a Html basics 9 meta background

Similar a Html basics 9 meta background (20)

05 01 tabelas
05 01 tabelas05 01 tabelas
05 01 tabelas
 
Web I - 03 - Tables
Web I - 03 - TablesWeb I - 03 - Tables
Web I - 03 - Tables
 
Html basics 7 table
Html basics 7 tableHtml basics 7 table
Html basics 7 table
 
01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx
 
Computer Html Links
Computer Html Links Computer Html Links
Computer Html Links
 
Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
 
Lecture-4.pptx
Lecture-4.pptxLecture-4.pptx
Lecture-4.pptx
 
Html table tags
Html table tagsHtml table tags
Html table tags
 
Html
HtmlHtml
Html
 
Html web designing using tables
Html web designing using tablesHtml web designing using tables
Html web designing using tables
 
Web forms and html lecture Number 3
Web forms and html lecture Number 3Web forms and html lecture Number 3
Web forms and html lecture Number 3
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in html
 
Chapter 8: Tables
Chapter 8: TablesChapter 8: Tables
Chapter 8: Tables
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
Working With Tables in HTML
Working With Tables in HTMLWorking With Tables in HTML
Working With Tables in HTML
 
HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and Forms
 
HTML Dasar : #9 Tabel
HTML Dasar : #9 TabelHTML Dasar : #9 Tabel
HTML Dasar : #9 Tabel
 
Lecture 5 html table
Lecture 5 html tableLecture 5 html table
Lecture 5 html table
 
html file
html filehtml file
html file
 

Más de H K

Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment3
Assignment3Assignment3
Assignment3H K
 
Induction
InductionInduction
InductionH K
 
Solution3
Solution3Solution3
Solution3H K
 
Solution2
Solution2Solution2
Solution2H K
 
Mid-
Mid-Mid-
Mid-H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3H K
 
Proof
ProofProof
ProofH K
 
Resolution
ResolutionResolution
ResolutionH K
 
Assignment description
Assignment descriptionAssignment description
Assignment descriptionH K
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2H K
 
Set
SetSet
SetH K
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1H K
 
Logic
LogicLogic
LogicH K
 
Introduction
IntroductionIntroduction
IntroductionH K
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 solH K
 
Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solutionH K
 
Violinphoenix
ViolinphoenixViolinphoenix
ViolinphoenixH K
 

Más de H K (20)

Assignment4
Assignment4Assignment4
Assignment4
 
Assignment3
Assignment3Assignment3
Assignment3
 
Induction
InductionInduction
Induction
 
Solution3
Solution3Solution3
Solution3
 
Solution2
Solution2Solution2
Solution2
 
Mid-
Mid-Mid-
Mid-
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment4
Assignment4Assignment4
Assignment4
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3
 
Proof
ProofProof
Proof
 
Resolution
ResolutionResolution
Resolution
 
Assignment description
Assignment descriptionAssignment description
Assignment description
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2
 
Set
SetSet
Set
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1
 
Logic
LogicLogic
Logic
 
Introduction
IntroductionIntroduction
Introduction
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 sol
 
Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solution
 
Violinphoenix
ViolinphoenixViolinphoenix
Violinphoenix
 

Último

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Último (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Html basics 9 meta background

  • 1. Lecture 10 - More about body tag- Setting up link colors - More about body tag- Setting up Background Image - Meta tags In previous lecture, you learned the BODY tag. The BODY tag has many attributes... here are the most useful ones... • BACKGROUND="location_of_image" - Background image for web page. Example: If you have kitten.jpg in the same directory as your HTML file, use <body background="kitten.jpg"> to load it as your background image. • BGCOLOR="name of color" – Sets the Background Color for the web page • LINK="name of color" - Color Code for Links (if left blank, most browsers default to blue.) • VLINK="name of color" - Code for Links the User has Already Visited (if left blank, most browsers default to purple.) • TEXT="name of color" More About Table Tag TWO DEMONSTRATIONS OF ROWSPAN Item 1 Item 3 Item 2 Item 4 Item 5 <TABLE BORDER> <TR> <TD>Item 1</TD> <TD ROWSPAN=2>Item 2</TD> <TD>Item 3</TD> </TR>
  • 2. <TR> <TD>Item 4</TD> <TD>Item 5</TD> </TR> </TABLE> Item 2 Item 3 Item 4 Item 1 Item 5 Item 6 Item 7 <TABLE BORDER> <TR> <TD ROWSPAN=2>Item 1</TD> <TD>Item 2</TD> <TD>Item 3</TD> <TD>Item 4</TD> </TR> <TR> <TD>Item 5</TD> <TD>Item 6</TD> <TD>Item 7</TD> </TR> </TABLE> DEMONSTRATION OF COLSPAN Item 1 Item 2 Item 3 Item 4 Item 5 <TABLE BORDER> <TR> <TD>Item 1</TD> <TD COLSPAN=2>Item 2</TD> </TR> <TR> <TD>Item 3</TD> <TD>Item 4</TD> <TD>Item 5</TD> </TR> </TABLE> DEMONSTRATION OF HEADERS, <TH> Head1 Head2 Head3 A B C D E F <TABLE BORDER> <TR> <TH>Head1</TH> <TH>Head2</TH> <TH>Head3</TH> </TR> <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> </TR> <TR> <TD>D</TD> <TD>E</TD> <TD>F</TD> </TR> </TABLE> DEMONSTRATION OF COLSPAN AND HEADERS,
  • 3. Head1 Head2 A B C D E F G H <TABLE BORDER> <TR> <TH COLSPAN=2>Head1</TH> <TH COLSPAN=2>Head2</TH> </TR> <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> <TD>D</TD> </TR> <TR> <TD>E</TD> <TD>F</TD> <TD>G</TD> <TD>H</TD> </TR> </TABLE> DEMONSTRATION OF MULTIPLE HEADERS, COLSPAN Head1 Head2 Head 3 Head 4 Head 5 Head 6 A B C D E F G H <TABLE BORDER> <TR> <TH COLSPAN=2>Head1</TH> <TH COLSPAN=2>Head2</TH> </TR> <TR> <TH>Head 3</TH> <TH>Head 4</TH> <TH>Head 5</TH> <TH>Head 6</TH> </TR> <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> <TD>D</TD> </TR> <TR> <TD>E</TD> <TD>F</TD> <TD>G</TD> <TD>H</TD> </TR> </TABLE> DEMONSTRATION OF SIDE HEADERS
  • 4. Head1 Item 1 Item 2 Item 3 Head2 Item 4 Item 5 Item 6 Head3 Item 7 Item 8 Item 9 <TABLE BORDER> <TR><TH>Head1</TH> <TD>Item 1</TD> <TD>Item 2</TD> <TD>Item 3</TD></TR> <TR><TH>Head2</TH> <TD>Item 4</TD> <TD>Item 5</TD> <TD>Item 6</TD></TR> <TR><TH>Head3</TH> <TD>Item 7</TD> <TD>Item 8</TD> <TD>Item 9</TD></TR> </TABLE> DEMONSTRATION OF SIDE HEADERS, ROWSPAN Item 1 Item 2 Item 3 Item 4 Head1 Item 5 Item 6 Item 7 Item 8 Head2 Item 9 Item 10 Item 3 Item 11 <TABLE BORDER> <TR><TH ROWSPAN=2>Head1</TH> <TD>Item 1</TD> <TD>Item 2</TD> <TD>Item 3</TD> <TD>Item 4</ TD> </TR> <TR><TD>Item 5</TD> <TD>Item 6</TD> <TD>Item 7</TD> <TD>Item 8</ TD> </TR> <TR><TH>Head2</TH> <TD>Item 9</TD> <TD>Item 10</TD> <TD>Item 3</TD> <TD>Item 11</TD> </TR> </TABLE> SAMPLE TABLE USING ALL OF THESE <TABLE BORDER> <TR> <TD> <TH ROWSPAN=2></TH> <TH COLSPAN=2>Average</TH> </TD> </TR> <TR> <TD><TH>Height</TH><TH>Weight</TH></TD> </TR> <TR> <TH ROWSPAN=2>Gender</TH> <TH>Males</TH><TD>1.9</TD><TD>0.003</TD> </TR> <TR> <TH>Females</TH><TD>1.7</TD><TD>0.002</TD> </TR> </TABLE>
  • 5. CLEVER USES OF ROWSPAN/COLSPAN 12 A 34 C D <TABLE BORDER> <TR> <TD ALIGN=center ROWSPAN=2 COLSPAN=2>A</TD> <TD>1</TD> <TD>2</TD> </TR> <TR> <TD>3</TD> <TD>4</TD> </TR> <TR> <TD ALIGN=center ROWSPAN=2 COLSPAN=2>C</TD> <TD ALIGN=center ROWSPAN=2 COLSPAN=2>D</TD> </TR> <TR> </TR> </TABLE> ADJUSTING MARGINS AND BORDERS A TABLE WITHOUT BORDERS Item 1 Item 3 Item 2 Item 4 Item 5 <TABLE> <TR> <TD>Item 1</TD> <TD ROWSPAN=2>Item 2</TD> <TD>Item 3</TD> </TR> <TR> <TD>Item 4</TD> <TD>Item 5</TD> </TR> </TABLE> A TABLE WITH A BORDER OF 10 Item 1 Item 2 Item 3 Item 4 <TABLE BORDER=10> <TR> <TD>Item 1</TD> <TD> Item 2</TD> </TR> <TR> <TD>Item 3</TD> <TD>Item 4</TD> </TR> </TABLE>
  • 6. CELLPADDING AND CELLSPACING A B C D E F <TABLE BORDER CELLPADDING=10 CELLSPACING=0> <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> </TR> <TR> <TD>D</TD> <TD>E</TD> <TD>F</TD> </TR> </TABLE> Cellpadding tag is used to create space between the text inside your table and the border surrounding the text. A B C D E F Cellspacing tag is used to create space between different cells within your table. <TABLE BORDER CELLPADDING=0 CELLSPACING=10> <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> </TR> <TR> <TD>D</TD> <TD>E</TD> <TD>F</TD> </TR> </TABLE> A B C D E F <TABLE BORDER CELLPADDING=10 CELLSPACING=10> <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> </TR> <TR> <TD>D</TD> <TD>E</TD> <TD>F</TD> </TR> </TABLE> A B C D E F <TABLE BORDER=5 CELLPADDING=10 CELLSPACING=10>
  • 7. <TR> <TD>A</TD> <TD>B</TD> <TD>C</TD> </TR> <TR> <TD>D</TD> <TD>E</TD> <TD>F</TD> </TR> </TABLE> ALIGNMENT, CAPTIONS, AND SUBTABLES DEMONSTRATION OF MULTIPLE LINES IN A TABLE January February March Another cell, This is cell 1 Cell 2 cell 3 and now this Cell 4 Cell 6 is cell 5 <TABLE BORDER> <TR> <TH>January</TH> <TH>February</TH> <TH>March</TH> </TR> <TR> <TD>This is cell 1</TD> <TD>Cell 2</TD> <TD>Another cell,<br> cell 3</TD> </TR> <TR> <TD>Cell 4</TD> <TD>and now this<br>is cell 5</TD> <TD>Cell 6</TD> </TR> </TABLE> ALIGN=LEFT|RIGHT|CENTER can be applied to individual cells or whole ROWs January February March Another cell, all aligned center Cell 2 cell 3 default, aligned right aligned to center aligned left <TABLE BORDER> <TR> <TH>January</TH>
  • 8. <TH>February</TH> <TH>March</TH> </TR> <TR ALIGN=center> <TD>all aligned center</TD> <TD>Cell 2</TD> <TD>Another cell,<br> cell 3</TD> </TR> <TR> <TD ALIGN=right>aligned right</TD> <TD ALIGN=center>aligned to center</TD> <TD>default,<br>aligned left</TD> </TR> </TABLE> VALIGN=TOP|BOTTOM|MIDDLE can be applied to individual cells or whole ROWs January February March all aligned to top and now this Cell 3 is cell 2 aligned to the top default alignment, aligned to the bottom center <TABLE BORDER> <TR> <TH>January</TH> <TH>February</TH> <TH>March</TH> </TR> <TR VALIGN=top> <TD>all aligned to top</TD> <TD>and now this<br>is cell 2</TD> <TD>Cell 3</TD> </TR> <TR> <TD VALIGN=top>aligned to the top</TD> <TD VALIGN=bottom>aligned to the bottom</TD> <TD>default alignment,<br>center</TD> </TR> </TABLE> Meta Tag The <META> tag can be used for a few different purposes. META tag are used in search engines. When a search engine finds your page, it adds your page to the searchable
  • 9. database with some information. The information that it adds is actually information contained in meta tag. <meta name="description" content="description of page goes here"> <meta name="keywords" content="keywords go here"> Meta tags are not visible in the web page unless the user selects to 'view source'. <html> <head> <title>Using Meta Tags </title> <meta name="description" content="Joe's Collection of Cool Sound files for you to use in your home page!"> <meta name="keywords" content="music sounds midi wav joe collection"> </head> <body> Page Goes Here </body> </html>