SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Week 01
Introduction to HTML & CSS
DEFINITIONS

 HTML          Hyper Text Mark-Up Language:
STRUCTURE      A system of tags that describe the structure of a
               webpage.



           +
CSS            Cascading Stylesheets:
               Design Instructions for each tag.
DESIGN


         =
 Browser       Software that can read & Display
 DISPLAY        HTML, CSS, Java, PHP, etc.
HTML SYNTAX




 <h1> Cool Website </h1>



<img src="cat.jpg" title="My Cat" />
HTML SYNTAX




 <h1> Cool Website </h1>



<img src="cat.jpg" title="My Cat" />
HTML SYNTAX


            Start        Element      End
            Tag          Content      Tag

Element      <h1> Cool Website </h1>



Element   <img src="cat.jpg" title="My Cat" />


                  Attribut   Value   Attribut   Value   End
                     e                  e               Tag
          Start
          Tag
Mark-Up: Required Format
  <!DOCTYPE html>
<html>

    <head>
          <title> My First Website </title>
          <link type="text/css" rel="stylesheet" href="style.css">


   </head>
    <body>

          <h1> My First Website </h1>




   </body>
</html>
Mark-Up: Tabbing
  <!DOCTYPE html>
<html>

    <head>
          <title> My First Website </title>
          <link type="text/css" rel="stylesheet" href="style.css">


   </head>
    <body>

          <h1> My First Website </h1>




   </body>
</html>
HTML Nesting


                CORRECT


<li> <a href="...">   Text   </a> </li>




<li> <a href="...">   Text   </li> </a>

              INCORRECT
Mark-Up: Nesting
<!DOCTYPE html>

  <html>
      <head>
      <title> My First Website </title>

      <link type="text/css" rel="stylesheet"
      href="style.css">

     </head>
      <body>

       <h1> My First Website </h1>




     </body>
 </html>
Mark-Up in the Body                         plain text

 This is a Heading!
This is a Sub-Heading!


Google
NYTimes
Facebook


This is a Sub-Sub-Heading


Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur eu ante odio. Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat,
tellus non molestie vestibulum, velit ipsum sollicitudin nisi,
vel volutpat augue nibh eget metus. Integer vitae metus eget
augue fermentum egestas.
Mark-Up in the Body                     Identify Parts

This is a Heading!
This is a SubHeading!



Google
NYTimes
Facebook



This is a Sub-Sub-Heading



Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur eu ante odio. Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Vestibulum ac ipsum urna.
Maecenas volutpat, tellus non molestie vestibulum, velit ipsum
sollicitudin nisi, vel volutpat augue nibh eget metus. Integer
vitae metus eget augue fermentum egestas.
Mark-Up in the Body                          Add Tags
<body>
    <h1>This is a Heading!</h1>
    <h2>This is a SubHeading!</h2>

    <ul>
        <li><a href="http://www.google.com"> Google </a></li>
        <li><a href="http://www.nytimes.com"> NYTimes </a></li>
        <li><a href="http://www.facebook.com"> Facebook </a></li>
    </ul>

    <h3>This is a Sub-Sub-Heading<h3>

    <p>
           Lorem ipsum dolor sit amet, consectetur adipiscing elit.
           Curabitur eu ante odio. Lorem ipsum dolor sit amet, consectetur
           adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat,
           tellus non molestie vestibulum, velit ipsum sollicitudin nisi,
           vel volutpat augue nibh eget metus. Integer vitae metus eget
           augue fermentum egestas.
    </p>

</body>
Mark-Up in the Body                                        Browser View

This is a Heading!
This is a Sub-Heading!



Google
NYTimes
Facebook


This is a Sub-Sub-Heading


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu ante odio. Lorem ipsum
dolor sit amet, consectetur adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat, tellus
non molestie vestibulum, velit ipsum sollicitudin nisi, vel volutpat augue nibh eget metus.
Integer vitae metus eget augue fermentum egestas.
CSS Syntax




h1   {
         color: red;
         font-size: 20px;
     }
CSS Syntax: notation




h1   {
         color: red;
         font-size: 20px;
     }
CSS Syntax


Selector    Property   Value


 h1    {
           color: red;         Declaration

           font-size: 20px;    Declaration


       }
Relationship between
        HTML, CSS & the Browser




  HTML            CSS             Browser
STRUCTURE       DESIGN            DISPLAY
Relationship between
                           HTML, CSS & the Browser
            HTML                            CSS                                  Browser
<body>                          body {                           HEADER
                                  background-color: lightBlue;
                                }                                Sub-Header

     <h1> HEADER </h1>
     <h2> Sub-Header </h2>                                       First
                                                                 Second
                                h1 {                             Third
                                  font-size: 14px;
     <ul>                         text-decoration: underline;
         <li>First</li>         {
         <li>Second</li>                                         This is a paragraph. It is made of sentences and
                                                                 words.
         <li>Third</li>
     </ul>                      h2 {
                                  font-size: 12px;
                                }
     <p> This is a paragraph.
     It is made of sentences
     and words. </p>            ul {
                                  background-color: white;
                                }



</body>                         li {
                                  font-weight: bold;
                                  font-size: 12px;
                                  color: blue;
                                }
                                p {
                                  text-align: center;
                                }
Relationship between
                           HTML, CSS & the Browser
            HTML                            CSS                                  Browser
<body>                          body {                           HEADER
                                  background-color: lightBlue;
                                }                                Sub-Header

     <h1> HEADER </h1>
     <h2> Sub-Header </h2>                                       First
                                                                 Second
                                h1 {                             Third
                                  font-size: 14px;
     <ul>                         text-decoration: underline;
         <li>First</li>         {
         <li>Second</li>                                         This is a paragraph. It is made of sentences and
                                                                 words.
         <li>Third</li>
     </ul>                      h2 {
                                  font-size: 12px;
                                }
     <p> This is a paragraph.
     It is made of sentences
     and words. </p>            ul {
                                  background-color: white;
                                }



</body>                         li {
                                  font-weight: bold;
                                  font-size: 12px;
                                  color: blue;
                                }
                                p {
                                  text-align: center;
                                }
Relationship between
                           HTML, CSS & the Browser
            HTML                            CSS                                  Browser
<body>                          body {                           HEADER
                                  background-color: lightBlue;
                                }                                Sub-Header

     <h1> HEADER </h1>
     <h2> Sub-Header </h2>                                       First
                                                                 Second
                                h1 {                             Third
                                  font-size: 14px;
     <ul>                         text-decoration: underline;
         <li>First</li>         {
         <li>Second</li>                                         This is a paragraph. It is made of sentences and
                                                                 words.
         <li>Third</li>
     </ul>                      h2 {
                                  font-size: 12px;
                                }
     <p> This is a paragraph.
     It is made of sentences
     and words. </p>            uo {
                                  background-color: white;
                                }



</body>                         li {
                                  font-weight: bold;
                                  font-size: 12px;
                                  color: blue;
                                }
                                p {
                                  text-align: center;
                                }
Relationship between
                           HTML, CSS & the Browser
            HTML                            CSS                                  Browser
<body>                          body {                           HEADER
                                  background-color: lightBlue;
                                }                                Sub-Header

     <h1> HEADER </h1>
     <h2> Sub-Header </h2>                                       First
                                                                 Second
                                h1 {                             Third
                                  font-size: 14px;
     <ul>                         text-decoration: underline;
         <li>First</li>         {
         <li>Second</li>                                         This is a paragraph. It is made of sentences and
                                                                 words.
         <li>Third</li>
     </ul>                      h2 {
                                  font-size: 12px;
                                }
     <p> This is a paragraph.
     It is made of sentences
     and words. </p>            ul {
                                  background-color: white;
                                }



</body>                         li {
                                  font-weight: bold;
                                  font-size: 12px;
                                  color: blue;
                                }
                                p {
                                  text-align: center;
                                }
Relationship between
                           HTML, CSS & the Browser
            HTML                            CSS                                  Browser
<body>                          body {                           HEADER
                                  background-color: lightBlue;
                                }                                Sub-Header

     <h1> HEADER </h1>
     <h2> Sub-Header </h2>                                       First
                                                                 Second
                                h1 {                             Third
                                  font-size: 14px;
     <ul>                         text-decoration: underline;
         <li>First</li>         {
         <li>Second</li>                                         This is a paragraph. It is made of sentences and
                                                                 words.
         <li>Third</li>
     </ul>                      h2 {
                                  font-size: 12px;
                                }
     <p> This is a paragraph.
     It is made of sentences
     and words. </p>            ul {
                                  background-color: white;
                                }



</body>                         li {
                                  font-weight: bold;
                                  font-size: 12px;
                                  color: blue;
                                }
                                p {
                                  text-align: center;
                                }
CONNECTING HTML TO CSS
                                             THE <link> TAG




<head>

    Start Tag                                               stylesheet = design               Path to the   End Tag
                                                                 instructions                 CSS sheet.
                            type of information Relation                            href
                  type
                attribute                       Attribute                         Attribute




 <link type="text/css" rel="stylesheet" href="style.css" />




</head>
Images in HTML




Start Tag                                           Alternate text if image                         End Tag
                                                        doesn't appear
             Search     Path to Image   Alternate                               Title Image Title
            Attribute                   Attribute                             Attribute




<img src="images/full/factory.jpg" alt="factory-pic" title="Factory" />
FOLDER STRUCTURE & PATHS

                Root Directory Folder



index.html   css           html         images
                                                   p1.jpg

             style.css     gallery         full
                            .html                  p2.jpg



                                                   t1.jpg
                            info          thumbs
                            .html
                                                   t2.jpg


                           contact
                            .html
FOLDER STRUCTURE & PATHS

                                         Root Directory Folder



           index.html                 css           html         images
                                                                            p1.jpg

                                      style.css     gallery         full
                                                     .html                  p2.jpg



                                                                            t1.jpg
                                                     info          thumbs
                                                     .html
                                                                            t2.jpg


                                                    contact
                                                     .html
Paths:
link from info.html to gallery.html


<a href="gallery.html">
FOLDER STRUCTURE & PATHS

                                               Root Directory Folder



        index.html                          css           html         images
                                                                                  p1.jpg

                                            style.css     gallery         full
                                                           .html                  p2.jpg



                                                                                  t1.jpg
                                                           info          thumbs
                                                           .html
                                                                                  t2.jpg


                                                          contact
                                                           .html
Paths:
hyperlink from index.html to gallery.html


<a href="html/gallery.html">
FOLDER STRUCTURE & PATHS

                                           Root Directory Folder



         index.html                     css           html         images
                                                                              p1.jpg

                                        style.css     gallery         full
                                                       .html                  p2.jpg



                                                                              t1.jpg
                                                       info          thumbs
                                                       .html
                                                                              t2.jpg


                                                      contact
                                                       .html
  Paths:
link between index.html and style.css

<link rel="stylesheet" type="text/css" href="css/style.css" />
FOLDER STRUCTURE & PATHS

                                              Root Directory Folder



         index.html                        css           html         images
                                                                                 p1.jpg

                                           style.css     gallery         full
                                                          .html                  p2.jpg



                                                                                 t1.jpg
                                                         info
                                                                        thumbs
                                                         .html
                                                                                 t2.jpg


                                                         contact
                                                          .html
Paths:
hyperlink from gallery.html to style.css


<link rel="stylesheet" type="text/css" href="../css/style.css" />
FOLDER STRUCTURE & PATHS

                                            Root Directory Folder



        index.html                       css           html         images
                                                                               p1.jpg

                                         style.css     gallery         full
                                                        .html                  p2.jpg



                                                                               t1.jpg
                                                       info
                                                                      thumbs
                                                       .html
                                                                               t2.jpg


                                                       contact
                                                        .html
Paths:
image p1.jpg displayed on gallery.html

<img src="../images/full/p1.jpg" />

Weitere Àhnliche Inhalte

Was ist angesagt? (20)

Html
HtmlHtml
Html
 
Html full
Html fullHtml full
Html full
 
Using SASS in the WordPress environment - Ran Bar Zik
Using SASS in the WordPress environment - Ran Bar ZikUsing SASS in the WordPress environment - Ran Bar Zik
Using SASS in the WordPress environment - Ran Bar Zik
 
Presentation 2
Presentation 2Presentation 2
Presentation 2
 
HTML & XHTML Basics
HTML & XHTML BasicsHTML & XHTML Basics
HTML & XHTML Basics
 
Html5
Html5Html5
Html5
 
TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0
 
Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSS
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Html Tags
Html TagsHtml Tags
Html Tags
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML
HTMLHTML
HTML
 
Web page concept final ppt
Web page concept  final pptWeb page concept  final ppt
Web page concept final ppt
 
Web Page Designing Using HTML
Web Page Designing Using HTMLWeb Page Designing Using HTML
Web Page Designing Using HTML
 
Theme 23
Theme 23Theme 23
Theme 23
 
Html
HtmlHtml
Html
 
Css1
Css1Css1
Css1
 
Document
DocumentDocument
Document
 
Html 5
Html 5Html 5
Html 5
 
Theme01
Theme01Theme01
Theme01
 

Ähnlich wie ID01 / W01

Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup LanguageNaveeth Babu
 
IT Unit III.pptx
IT Unit III.pptxIT Unit III.pptx
IT Unit III.pptxKarthik Rohan
 
HTML and DHTML
HTML and DHTMLHTML and DHTML
HTML and DHTMLSURBHI SAROHA
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalorefathima12
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 htmlhome
 
Html.docx
Html.docxHtml.docx
Html.docxNoman Ali
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_languageIshaq Shinwari
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshopvardanyan99
 
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxHTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxadampcarr67227
 
HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners Nimrakhan89
 
Computer application html
Computer application htmlComputer application html
Computer application htmlPrashantChahal3
 

Ähnlich wie ID01 / W01 (20)

html.pptx
html.pptxhtml.pptx
html.pptx
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
IT Unit III.pptx
IT Unit III.pptxIT Unit III.pptx
IT Unit III.pptx
 
HTML and DHTML
HTML and DHTMLHTML and DHTML
HTML and DHTML
 
Basic html
Basic htmlBasic html
Basic html
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalore
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 html
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
Html.docx
Html.docxHtml.docx
Html.docx
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_language
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docxHTML Lab ProjectTo create a simple web page you will need .docx
HTML Lab ProjectTo create a simple web page you will need .docx
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
 
HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners
 
Java script and html new
Java script and html newJava script and html new
Java script and html new
 
Java script and html
Java script and htmlJava script and html
Java script and html
 
Computer application html
Computer application htmlComputer application html
Computer application html
 

KĂŒrzlich hochgeladen

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

KĂŒrzlich hochgeladen (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

ID01 / W01

  • 2. DEFINITIONS HTML Hyper Text Mark-Up Language: STRUCTURE A system of tags that describe the structure of a webpage. + CSS Cascading Stylesheets: Design Instructions for each tag. DESIGN = Browser Software that can read & Display DISPLAY HTML, CSS, Java, PHP, etc.
  • 3. HTML SYNTAX <h1> Cool Website </h1> <img src="cat.jpg" title="My Cat" />
  • 4. HTML SYNTAX <h1> Cool Website </h1> <img src="cat.jpg" title="My Cat" />
  • 5. HTML SYNTAX Start Element End Tag Content Tag Element <h1> Cool Website </h1> Element <img src="cat.jpg" title="My Cat" /> Attribut Value Attribut Value End e e Tag Start Tag
  • 6. Mark-Up: Required Format <!DOCTYPE html> <html> <head> <title> My First Website </title> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <h1> My First Website </h1> </body> </html>
  • 7. Mark-Up: Tabbing <!DOCTYPE html> <html> <head> <title> My First Website </title> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <h1> My First Website </h1> </body> </html>
  • 8. HTML Nesting CORRECT <li> <a href="..."> Text </a> </li> <li> <a href="..."> Text </li> </a> INCORRECT
  • 9. Mark-Up: Nesting <!DOCTYPE html> <html> <head> <title> My First Website </title> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <h1> My First Website </h1> </body> </html>
  • 10. Mark-Up in the Body plain text This is a Heading! This is a Sub-Heading! Google NYTimes Facebook This is a Sub-Sub-Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu ante odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat, tellus non molestie vestibulum, velit ipsum sollicitudin nisi, vel volutpat augue nibh eget metus. Integer vitae metus eget augue fermentum egestas.
  • 11. Mark-Up in the Body Identify Parts This is a Heading! This is a SubHeading! Google NYTimes Facebook This is a Sub-Sub-Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu ante odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat, tellus non molestie vestibulum, velit ipsum sollicitudin nisi, vel volutpat augue nibh eget metus. Integer vitae metus eget augue fermentum egestas.
  • 12. Mark-Up in the Body Add Tags <body> <h1>This is a Heading!</h1> <h2>This is a SubHeading!</h2> <ul> <li><a href="http://www.google.com"> Google </a></li> <li><a href="http://www.nytimes.com"> NYTimes </a></li> <li><a href="http://www.facebook.com"> Facebook </a></li> </ul> <h3>This is a Sub-Sub-Heading<h3> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu ante odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat, tellus non molestie vestibulum, velit ipsum sollicitudin nisi, vel volutpat augue nibh eget metus. Integer vitae metus eget augue fermentum egestas. </p> </body>
  • 13. Mark-Up in the Body Browser View This is a Heading! This is a Sub-Heading! Google NYTimes Facebook This is a Sub-Sub-Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu ante odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac ipsum urna. Maecenas volutpat, tellus non molestie vestibulum, velit ipsum sollicitudin nisi, vel volutpat augue nibh eget metus. Integer vitae metus eget augue fermentum egestas.
  • 14. CSS Syntax h1 { color: red; font-size: 20px; }
  • 15. CSS Syntax: notation h1 { color: red; font-size: 20px; }
  • 16. CSS Syntax Selector Property Value h1 { color: red; Declaration font-size: 20px; Declaration }
  • 17. Relationship between HTML, CSS & the Browser HTML CSS Browser STRUCTURE DESIGN DISPLAY
  • 18. Relationship between HTML, CSS & the Browser HTML CSS Browser <body> body { HEADER background-color: lightBlue; } Sub-Header <h1> HEADER </h1> <h2> Sub-Header </h2> First Second h1 { Third font-size: 14px; <ul> text-decoration: underline; <li>First</li> { <li>Second</li> This is a paragraph. It is made of sentences and words. <li>Third</li> </ul> h2 { font-size: 12px; } <p> This is a paragraph. It is made of sentences and words. </p> ul { background-color: white; } </body> li { font-weight: bold; font-size: 12px; color: blue; } p { text-align: center; }
  • 19. Relationship between HTML, CSS & the Browser HTML CSS Browser <body> body { HEADER background-color: lightBlue; } Sub-Header <h1> HEADER </h1> <h2> Sub-Header </h2> First Second h1 { Third font-size: 14px; <ul> text-decoration: underline; <li>First</li> { <li>Second</li> This is a paragraph. It is made of sentences and words. <li>Third</li> </ul> h2 { font-size: 12px; } <p> This is a paragraph. It is made of sentences and words. </p> ul { background-color: white; } </body> li { font-weight: bold; font-size: 12px; color: blue; } p { text-align: center; }
  • 20. Relationship between HTML, CSS & the Browser HTML CSS Browser <body> body { HEADER background-color: lightBlue; } Sub-Header <h1> HEADER </h1> <h2> Sub-Header </h2> First Second h1 { Third font-size: 14px; <ul> text-decoration: underline; <li>First</li> { <li>Second</li> This is a paragraph. It is made of sentences and words. <li>Third</li> </ul> h2 { font-size: 12px; } <p> This is a paragraph. It is made of sentences and words. </p> uo { background-color: white; } </body> li { font-weight: bold; font-size: 12px; color: blue; } p { text-align: center; }
  • 21. Relationship between HTML, CSS & the Browser HTML CSS Browser <body> body { HEADER background-color: lightBlue; } Sub-Header <h1> HEADER </h1> <h2> Sub-Header </h2> First Second h1 { Third font-size: 14px; <ul> text-decoration: underline; <li>First</li> { <li>Second</li> This is a paragraph. It is made of sentences and words. <li>Third</li> </ul> h2 { font-size: 12px; } <p> This is a paragraph. It is made of sentences and words. </p> ul { background-color: white; } </body> li { font-weight: bold; font-size: 12px; color: blue; } p { text-align: center; }
  • 22. Relationship between HTML, CSS & the Browser HTML CSS Browser <body> body { HEADER background-color: lightBlue; } Sub-Header <h1> HEADER </h1> <h2> Sub-Header </h2> First Second h1 { Third font-size: 14px; <ul> text-decoration: underline; <li>First</li> { <li>Second</li> This is a paragraph. It is made of sentences and words. <li>Third</li> </ul> h2 { font-size: 12px; } <p> This is a paragraph. It is made of sentences and words. </p> ul { background-color: white; } </body> li { font-weight: bold; font-size: 12px; color: blue; } p { text-align: center; }
  • 23. CONNECTING HTML TO CSS THE <link> TAG <head> Start Tag stylesheet = design Path to the End Tag instructions CSS sheet. type of information Relation href type attribute Attribute Attribute <link type="text/css" rel="stylesheet" href="style.css" /> </head>
  • 24. Images in HTML Start Tag Alternate text if image End Tag doesn't appear Search Path to Image Alternate Title Image Title Attribute Attribute Attribute <img src="images/full/factory.jpg" alt="factory-pic" title="Factory" />
  • 25. FOLDER STRUCTURE & PATHS Root Directory Folder index.html css html images p1.jpg style.css gallery full .html p2.jpg t1.jpg info thumbs .html t2.jpg contact .html
  • 26. FOLDER STRUCTURE & PATHS Root Directory Folder index.html css html images p1.jpg style.css gallery full .html p2.jpg t1.jpg info thumbs .html t2.jpg contact .html Paths: link from info.html to gallery.html <a href="gallery.html">
  • 27. FOLDER STRUCTURE & PATHS Root Directory Folder index.html css html images p1.jpg style.css gallery full .html p2.jpg t1.jpg info thumbs .html t2.jpg contact .html Paths: hyperlink from index.html to gallery.html <a href="html/gallery.html">
  • 28. FOLDER STRUCTURE & PATHS Root Directory Folder index.html css html images p1.jpg style.css gallery full .html p2.jpg t1.jpg info thumbs .html t2.jpg contact .html Paths: link between index.html and style.css <link rel="stylesheet" type="text/css" href="css/style.css" />
  • 29. FOLDER STRUCTURE & PATHS Root Directory Folder index.html css html images p1.jpg style.css gallery full .html p2.jpg t1.jpg info thumbs .html t2.jpg contact .html Paths: hyperlink from gallery.html to style.css <link rel="stylesheet" type="text/css" href="../css/style.css" />
  • 30. FOLDER STRUCTURE & PATHS Root Directory Folder index.html css html images p1.jpg style.css gallery full .html p2.jpg t1.jpg info thumbs .html t2.jpg contact .html Paths: image p1.jpg displayed on gallery.html <img src="../images/full/p1.jpg" />

Hinweis der Redaktion

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n