SlideShare uma empresa Scribd logo
1 de 5
WEBPROG1 – Web Programming 1 (HTML)                                    Prelim Period
                                                                        Handout #1

Brief HTML Background

   •   HTML has not been around for many years. November 1990 marks the day of
       the first web page and back then there were little to no HTML standards to be
       followed.
   •   A group called the World Wide Web Consortium was formed and have set the
       standards that are widely accepted

Web Pages

   •   Web pages have many uses. Here are some important facts about why web
       pages are so useful.
          o A cheap and easy way to spread information to a large audience.
          o Another medium to market your business.
          o Let the world know about you with a personal website!

Important Terms

   •   Tag - Used to specify special regions to the web browser. Tags look like this:
       <tag>
   •   Element - A type of tag. There are many elements in HTML.
   •   Attribute - Used to modify the value of the HTML element. Elements will
       often have multiple attributes.

    For now just know that a tag is a command the browser interprets, an element is
a type of tag, and an attribute customizes an element.

HTML Elements

   An element consists of three basic parts: an opening tag, the element's content,
and finally, a closing tag.

   1. <p> - opening paragraph tag
   2. Element Content - paragraph content
   3. </p> - closing tag

   Every webpage contains four basic elements. html, head, title, and body.

The HTML Element

       •   <html> begins and ends each and every web page. Its sole purpose is to
           encapsulate all the HTML code. Remember to close your HTML documents
           with the corresponding </html> tag at the bottom of the document.
       •   If you haven't already, open up Notepad or Crimson Editor and have a
           new, blank document ready to go. Copy the following HTML code into your
           text editor.

                                    HTML Code:




Prepared By: RICHARD F. ORPIANO                                           Page 1 of 5
WEBPROG1 – Web Programming 1 (HTML)                                   Prelim Period
                                                                       Handout #1

                                         <html>
                                         </html>

      •   Now save your file by Selecting Menu and then Save. Click on the "Save
          as Type" drop down box and select the option "All Files". When asked to
          name your file, name it "index.html", without the quotes. Double check
          that you did everything correctly and then press save. Now open your file
          in a new web browser so that you refresh your page and see your
          changes.

The HEAD Element

      •   The <head> element is "next" as they say. As long as it falls somewhere
          between your <html> tag and your web page content, you're golden. The
          head functions "behind the scenes." Tags placed within the head element
          are not directly displayed by browsers. We will be placing the <title>
          element here and will talk about the other possible elements in a later
          lesson.
      •   Here's a sample of the initial set up.

                                  HTML Code:
                                       <html>
                                       <head>
                                       <title>My WebPage!</title>
                                       </head>
                                       </html>


The TITLE Element

      •   Place the <title> tag within the <head> element to title your page. The
          words you write between the opening and closing <title></title> tags will
          be displayed at the top of a viewer's browser.
      •   Here's the html code:

                                  HTML Code:
                                       <html>
                                       <head>
                                       <title>My WebPage!</title>
                                       </head>
                                       </html>




Prepared By: RICHARD F. ORPIANO                                         Page 2 of 5
WEBPROG1 – Web Programming 1 (HTML)                                    Prelim Period
                                                                        Handout #1




The BODY Element

      •   The <body> element is where all content is placed. Paragraphs, pictures,
          tables, etc.

                                  HTML Code:
                                       <html>
                                       <head>
                                       <title>My WebPage!</title>
                                       </head>
                                       <body>
                                       All my content goes here!
                                       </body>
                                       </html>




Beginning HTML Tags

      •   Tags are embedded commands in an HTML document. By placing a tag
          correctly, you tell the browser what to display and how to display it. Tags
          come in pairs. First, an opening tag <tag>, followed by a closing tag
          </tag>.
      •   The tags themselves are not case sensitive, however it is recommend
          that you type tags in all lowercase.(Lowercase becomes required in
          XHTML and Dynamic HTML). Remember to double check that you have
          your closing tags otherwise the browser might interpret your page
          incorrectly.

HTML Heading Tags

      •   Headings are numbered 1-6, with 1 being the largest heading and 6 being
          the smallest.

                                  HTML Code:
                                       <body>
                                       <h1>Headings</h1>
                                       <h2>are</h2>
                                       <h3>great</h3>
                                       <h4>for</h4>
                                       <h5>titles</h5>
                                       <h6>and subtitles</h6>
                                       </body>




Prepared By: RICHARD F. ORPIANO                                          Page 3 of 5
WEBPROG1 – Web Programming 1 (HTML)                                    Prelim Period
                                                                        Handout #1




                   Display:


                          Headings
                          are
                          great

                          for
                          titles
                          and subtitles




Attributes

      •   Attributes can be added to nearly every tag and are used to format the
          tag in some way. We could justify paragraphs, center headings, etc.
      •   Here are some examples of attributes that can be placed inside many
          HTML tags if not all of them.

                    Attribute                 "value"
                        =
                   align=          "center","left","right","justify"
                   valign=         "top","middle","bottom"


                                HTML Code:
                   <h1 align="center">Centered Heading</h1>




                   Display:


                        Center Heading

Prepared By: RICHARD F. ORPIANO                                          Page 4 of 5
WEBPROG1 – Web Programming 1 (HTML)                                     Prelim Period
                                                                         Handout #1




Paragraph Tag <p>

       •   Use the <p> tag to define paragraphs. The paragraph tag will place a
           blank line before the first line in a paragraph and after the final line of
           your paragraph.

                                   HTML Code:
              <p>Avoid losing floppy disks with important school...</p>
              <p>For instance, let's say you had a HUGE school...</p>




Display:

Avoid losing floppy disks with important school/work projects on them. Use the web
to keep your content so you can access it from anywhere in the world. It's also a
quick way to write reminders or notes to yourself. With simple html skills, (the ones
you have gained so far by now) it is easy.

For instance, let's say you had a HUGE school or work project to complete. Off hand,
the easiest way to transfer the documents from your house could be a 3.5" floppy
disk. However, there is an alternative. Place your documents, photos, essays, or
videos onto your web server and access them from anywhere in the world.




Prepared By: RICHARD F. ORPIANO                                            Page 5 of 5

Mais conteúdo relacionado

Mais procurados (20)

Html ppt
Html pptHtml ppt
Html ppt
 
Html formatting
Html formattingHtml formatting
Html formatting
 
Html form
Html formHtml form
Html form
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html
HtmlHtml
Html
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html coding
Html codingHtml coding
Html coding
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
 
HTML
HTMLHTML
HTML
 
Html example
Html exampleHtml example
Html example
 
Css
CssCss
Css
 
Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)
 
Html
HtmlHtml
Html
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 

Destaque (20)

The river merchant's wife 001
The river merchant's wife 001The river merchant's wife 001
The river merchant's wife 001
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
The River Merchant's Wife by Li-Po
The River Merchant's Wife by Li-PoThe River Merchant's Wife by Li-Po
The River Merchant's Wife by Li-Po
 
The river merchant's wife
The river merchant's wifeThe river merchant's wife
The river merchant's wife
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Questionnaire
QuestionnaireQuestionnaire
Questionnaire
 
Handout6 html frames
Handout6 html framesHandout6 html frames
Handout6 html frames
 
Writing chapter 3
Writing chapter 3Writing chapter 3
Writing chapter 3
 
Trace 5.05
Trace 5.05Trace 5.05
Trace 5.05
 
Stopping by woods
Stopping by woodsStopping by woods
Stopping by woods
 
The Global Lifestyle: Advice for Expats
The Global Lifestyle: Advice for ExpatsThe Global Lifestyle: Advice for Expats
The Global Lifestyle: Advice for Expats
 
Analyzed poem
Analyzed poemAnalyzed poem
Analyzed poem
 
Stopping by woods on a snowy evening by Robert Frost
Stopping by woods on a snowy evening by Robert FrostStopping by woods on a snowy evening by Robert Frost
Stopping by woods on a snowy evening by Robert Frost
 
Mother and child
Mother and childMother and child
Mother and child
 
Olympics
OlympicsOlympics
Olympics
 
War and man’s past
War and man’s pastWar and man’s past
War and man’s past
 
Robert frost 001
Robert frost 001Robert frost 001
Robert frost 001
 
Wl lecture 2 essay 001
Wl lecture 2 essay 001Wl lecture 2 essay 001
Wl lecture 2 essay 001
 
Handout5 tables
Handout5 tablesHandout5 tables
Handout5 tables
 

Semelhante a Handout1 intro to html

Semelhante a Handout1 intro to html (20)

HYPER TEXT MARKUP LANGUAGE BASIC LESSONS
HYPER TEXT MARKUP LANGUAGE BASIC LESSONSHYPER TEXT MARKUP LANGUAGE BASIC LESSONS
HYPER TEXT MARKUP LANGUAGE BASIC LESSONS
 
215077679 introduction to HTML
215077679  introduction to HTML215077679  introduction to HTML
215077679 introduction to HTML
 
Class1slides
Class1slidesClass1slides
Class1slides
 
What is html
What is htmlWhat is html
What is html
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Web design 101
Web design 101Web design 101
Web design 101
 
1. html introduction
1. html introduction1. html introduction
1. html introduction
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
HTML course.ppt
HTML course.pptHTML course.ppt
HTML course.ppt
 
An-Introduction-to-HTML
An-Introduction-to-HTMLAn-Introduction-to-HTML
An-Introduction-to-HTML
 
HTML 5 Tutorial
HTML 5 TutorialHTML 5 Tutorial
HTML 5 Tutorial
 
Html5.pptx
Html5.pptxHtml5.pptx
Html5.pptx
 
A109 base code html
A109 base code   htmlA109 base code   html
A109 base code html
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
HTML Bootcamp
HTML BootcampHTML Bootcamp
HTML Bootcamp
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1
 

Mais de Nadine Guevarra

Mais de Nadine Guevarra (7)

Handout4 lists
Handout4 listsHandout4 lists
Handout4 lists
 
Lec no. 3 comp hardware components
Lec no. 3 comp hardware componentsLec no. 3 comp hardware components
Lec no. 3 comp hardware components
 
Intro to spreadsheet
Intro to spreadsheetIntro to spreadsheet
Intro to spreadsheet
 
Excel.01
Excel.01Excel.01
Excel.01
 
Robert frost 001
Robert frost 001Robert frost 001
Robert frost 001
 
On giving 001
On giving 001On giving 001
On giving 001
 
Poetry 001
Poetry 001Poetry 001
Poetry 001
 

Último

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
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Último (20)

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 🐘
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Handout1 intro to html

  • 1. WEBPROG1 – Web Programming 1 (HTML) Prelim Period Handout #1 Brief HTML Background • HTML has not been around for many years. November 1990 marks the day of the first web page and back then there were little to no HTML standards to be followed. • A group called the World Wide Web Consortium was formed and have set the standards that are widely accepted Web Pages • Web pages have many uses. Here are some important facts about why web pages are so useful. o A cheap and easy way to spread information to a large audience. o Another medium to market your business. o Let the world know about you with a personal website! Important Terms • Tag - Used to specify special regions to the web browser. Tags look like this: <tag> • Element - A type of tag. There are many elements in HTML. • Attribute - Used to modify the value of the HTML element. Elements will often have multiple attributes. For now just know that a tag is a command the browser interprets, an element is a type of tag, and an attribute customizes an element. HTML Elements An element consists of three basic parts: an opening tag, the element's content, and finally, a closing tag. 1. <p> - opening paragraph tag 2. Element Content - paragraph content 3. </p> - closing tag Every webpage contains four basic elements. html, head, title, and body. The HTML Element • <html> begins and ends each and every web page. Its sole purpose is to encapsulate all the HTML code. Remember to close your HTML documents with the corresponding </html> tag at the bottom of the document. • If you haven't already, open up Notepad or Crimson Editor and have a new, blank document ready to go. Copy the following HTML code into your text editor. HTML Code: Prepared By: RICHARD F. ORPIANO Page 1 of 5
  • 2. WEBPROG1 – Web Programming 1 (HTML) Prelim Period Handout #1 <html> </html> • Now save your file by Selecting Menu and then Save. Click on the "Save as Type" drop down box and select the option "All Files". When asked to name your file, name it "index.html", without the quotes. Double check that you did everything correctly and then press save. Now open your file in a new web browser so that you refresh your page and see your changes. The HEAD Element • The <head> element is "next" as they say. As long as it falls somewhere between your <html> tag and your web page content, you're golden. The head functions "behind the scenes." Tags placed within the head element are not directly displayed by browsers. We will be placing the <title> element here and will talk about the other possible elements in a later lesson. • Here's a sample of the initial set up. HTML Code: <html> <head> <title>My WebPage!</title> </head> </html> The TITLE Element • Place the <title> tag within the <head> element to title your page. The words you write between the opening and closing <title></title> tags will be displayed at the top of a viewer's browser. • Here's the html code: HTML Code: <html> <head> <title>My WebPage!</title> </head> </html> Prepared By: RICHARD F. ORPIANO Page 2 of 5
  • 3. WEBPROG1 – Web Programming 1 (HTML) Prelim Period Handout #1 The BODY Element • The <body> element is where all content is placed. Paragraphs, pictures, tables, etc. HTML Code: <html> <head> <title>My WebPage!</title> </head> <body> All my content goes here! </body> </html> Beginning HTML Tags • Tags are embedded commands in an HTML document. By placing a tag correctly, you tell the browser what to display and how to display it. Tags come in pairs. First, an opening tag <tag>, followed by a closing tag </tag>. • The tags themselves are not case sensitive, however it is recommend that you type tags in all lowercase.(Lowercase becomes required in XHTML and Dynamic HTML). Remember to double check that you have your closing tags otherwise the browser might interpret your page incorrectly. HTML Heading Tags • Headings are numbered 1-6, with 1 being the largest heading and 6 being the smallest. HTML Code: <body> <h1>Headings</h1> <h2>are</h2> <h3>great</h3> <h4>for</h4> <h5>titles</h5> <h6>and subtitles</h6> </body> Prepared By: RICHARD F. ORPIANO Page 3 of 5
  • 4. WEBPROG1 – Web Programming 1 (HTML) Prelim Period Handout #1 Display: Headings are great for titles and subtitles Attributes • Attributes can be added to nearly every tag and are used to format the tag in some way. We could justify paragraphs, center headings, etc. • Here are some examples of attributes that can be placed inside many HTML tags if not all of them. Attribute "value" = align= "center","left","right","justify" valign= "top","middle","bottom" HTML Code: <h1 align="center">Centered Heading</h1> Display: Center Heading Prepared By: RICHARD F. ORPIANO Page 4 of 5
  • 5. WEBPROG1 – Web Programming 1 (HTML) Prelim Period Handout #1 Paragraph Tag <p> • Use the <p> tag to define paragraphs. The paragraph tag will place a blank line before the first line in a paragraph and after the final line of your paragraph. HTML Code: <p>Avoid losing floppy disks with important school...</p> <p>For instance, let's say you had a HUGE school...</p> Display: Avoid losing floppy disks with important school/work projects on them. Use the web to keep your content so you can access it from anywhere in the world. It's also a quick way to write reminders or notes to yourself. With simple html skills, (the ones you have gained so far by now) it is easy. For instance, let's say you had a HUGE school or work project to complete. Off hand, the easiest way to transfer the documents from your house could be a 3.5" floppy disk. However, there is an alternative. Place your documents, photos, essays, or videos onto your web server and access them from anywhere in the world. Prepared By: RICHARD F. ORPIANO Page 5 of 5