SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente (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
 

Destacado (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
 

Similar a Handout1 intro to html

Similar 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
 

Más de Nadine Guevarra

Más 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

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Último (20)

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

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