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

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 

Último (20)

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 

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