More Basic HTML Module 2: HTML Basics LESSON 2
Lesson Overview In this lesson, you will learn to: Manipulate HTML code using a text editor application such as Notepad. View Web pages created using HTML code using a browser. Change text within a Web page using HTML coding. Alignment text within an HTML document. Set the background color of a Web page. Set the text color within a Web page.
Guiding Questions for Lesson 2 What is text alignment and what are some examples of it? What colors do you like to see when viewing a Web page? How can a choice of color affect the message on a Web page?
Text color How did the code  <body text=red>How would this attribute change things?<body>  change the text? Web colors can be defined in three ways: Color name Hexadecimal code RGB code
Defining Color Hexadecimal Color Chart -  http://www.funky-chickens.com/hex.html Visibone Hexadecimal Color Chart -  http://html-color-codes.com/ 216 Web Safe Color Chart (Hexadecimal and RGB) -  http://www.web-source.net/216_color_chart.htm Color Names and Hexadecimal Code -  http://www.w3schools.com/Html/html_colornames.asp RGB, Hexadecimal and Color Names -  http://web.njit.edu/~kevin/rgb.txt.html RGB, Hexadecimal and Color Names -  http://www.tayloredmktg.com/rgb/#BR
Background Color  Background color is defined using an attribute The attribute to define background color is placed in the opening body tag. <body bgcolor=“33ff33”> What color will the background be using this code?
Writing Code for Background color and Text color Write the code that would display the following: White text on a black background
Check your work: Does your answer look like this: <body bgcolor=#000000 text=#FFFFFF>
Text Alignment Alignment refers to how the text is oriented on the page Left Right Center
Horizontal Rule A horizontal rule is a horizontal line across the Web page Created with the tag <hr> Attributes can be added to the <hr> tag such as: Width or how far the line extends across the page, defined by a percent Size or how thick the line is, defined by an integer Color, defined by a hexadecimal code <hr width=90% size=10 color=#0000FF Creates a line that extends 90 percent across the Web page which is 10 pixels thick and the line is blue
Lesson Review Explain how to write the code and attributes for each of the following situations: Text color Background color Alignment
Practice: Beginning HTML Create the following changes in your “Tags and Attributes” Web page: Center the title “Tags and Attributes” Make the background of the Web page green (Hint: The hexadecimal code for green is 008000). Make the text color red (Hint:  The hexadecimal code for red is FF0000).

More Related Content

PPTX
How an html file is structured
PPT
Html tutorial
PPTX
HTML Training in Ambala ! Batra Computer Centre
PPT
Table Of Contents
PPT
HTML Introduction
PPTX
YL basic tag
PPT
Html 101
PPT
Html Ppt
How an html file is structured
Html tutorial
HTML Training in Ambala ! Batra Computer Centre
Table Of Contents
HTML Introduction
YL basic tag
Html 101
Html Ppt

What's hot (20)

PPTX
Html Power Point 2
PPTX
New HTML5/CSS3 techniques
ODP
The Basics of (X)HTML Tags
PPT
Css Basics
PPT
Hour 02
 
PPTX
Html tags
PPT
Learning HTML
PPT
Facebookcamp Toronto FBML
PPTX
Positioning text
PPT
ARTDM 171, Week 13: Forms
PPT
Html ppt by Fathima faculty Hasanath college for women bangalore
PPT
Lesson1 Intro to HTML
PPT
Eye catching HTML BASICS tips: Learn easily
PPT
SEO Structures by Yavor Milchev
PPT
Usable and Accessible Web Forms
PPSX
Over view of html
PPTX
Basics Of Html
PPT
HTML Advanced
PPT
HTML Intermediate
PPTX
Making a common css layout
Html Power Point 2
New HTML5/CSS3 techniques
The Basics of (X)HTML Tags
Css Basics
Hour 02
 
Html tags
Learning HTML
Facebookcamp Toronto FBML
Positioning text
ARTDM 171, Week 13: Forms
Html ppt by Fathima faculty Hasanath college for women bangalore
Lesson1 Intro to HTML
Eye catching HTML BASICS tips: Learn easily
SEO Structures by Yavor Milchev
Usable and Accessible Web Forms
Over view of html
Basics Of Html
HTML Advanced
HTML Intermediate
Making a common css layout
Ad

Viewers also liked (20)

PDF
A New Leadership Imperative: A Social CEO
PDF
Censorship
PPT
Horror genre presentation
PPTX
Mocadors amb puntes
PDF
Horarioquinto semestre alumnos
PDF
EMT | Event Management Team tam 14 yaşında...
PDF
Computer 9
PPT
Pie charts from surveyssss
PPTX
Got nuffin but love media
PDF
Proton+ manual ver 3 1
PPTX
NukeA4beginning of war
PPTX
Location based marketing presentation for tag
PPT
Macabees nme dps analysis
PPT
Costume
PDF
Planeacion basada en competencias Leslie Cazares
DOCX
Karangan ilmiah ( harits w)
PDF
FORZA E CORAGGIO - COME TRASFORMARE UNA CRISI IN OPPORTUNITA'
PDF
Sourajit Aiyer - Financial Express, Bangladesh - Deepening capital markets in...
PPT
Apresentação TDC2015
PPTX
Presentation by my Group
A New Leadership Imperative: A Social CEO
Censorship
Horror genre presentation
Mocadors amb puntes
Horarioquinto semestre alumnos
EMT | Event Management Team tam 14 yaşında...
Computer 9
Pie charts from surveyssss
Got nuffin but love media
Proton+ manual ver 3 1
NukeA4beginning of war
Location based marketing presentation for tag
Macabees nme dps analysis
Costume
Planeacion basada en competencias Leslie Cazares
Karangan ilmiah ( harits w)
FORZA E CORAGGIO - COME TRASFORMARE UNA CRISI IN OPPORTUNITA'
Sourajit Aiyer - Financial Express, Bangladesh - Deepening capital markets in...
Apresentação TDC2015
Presentation by my Group
Ad

Similar to Module 2 Lesson 2 (20)

PPTX
Lesson 2 - More Basic HTML
PPTX
T.2.2.pp(new)
PPTX
Lesson 2 - More Basic HTML
DOC
Handout2 formatting tags
PPT
Making your web page more interesting
PDF
Web Development 2 (HTML & CSS)
PDF
Simple intro to HTML and its applications
PPTX
Module 2 (1). .pptx
PPSX
Introduction to css
PPT
Unit 1-HTML Final.ppt
PPTX
Unit 2 Internet and web technology CSS report
PPTX
HTML and CSS Week 1 Lecture 1.pptx
PDF
Lesson 02
PPT
Intro to HTML
PPT
Basics-of-HTML.ppt
PPT
html presentation on basis of tage .ppt
PPTX
DOC-20220920-WA0012..pptx
PPT
HTML_Fundamentals_Tutorial_902350_HTML_Jar.ppt
PPT
902350_HTML_Jar.ppt
PPT
Introduction to HTML Basic to advance full
Lesson 2 - More Basic HTML
T.2.2.pp(new)
Lesson 2 - More Basic HTML
Handout2 formatting tags
Making your web page more interesting
Web Development 2 (HTML & CSS)
Simple intro to HTML and its applications
Module 2 (1). .pptx
Introduction to css
Unit 1-HTML Final.ppt
Unit 2 Internet and web technology CSS report
HTML and CSS Week 1 Lecture 1.pptx
Lesson 02
Intro to HTML
Basics-of-HTML.ppt
html presentation on basis of tage .ppt
DOC-20220920-WA0012..pptx
HTML_Fundamentals_Tutorial_902350_HTML_Jar.ppt
902350_HTML_Jar.ppt
Introduction to HTML Basic to advance full

Recently uploaded (20)

PDF
My India Quiz Book_20210205121199924.pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Computer Architecture Input Output Memory.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
My India Quiz Book_20210205121199924.pdf
Empowerment Technology for Senior High School Guide
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
History, Philosophy and sociology of education (1).pptx
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Computer Architecture Input Output Memory.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
TNA_Presentation-1-Final(SAVE)) (1).pptx
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
B.Sc. DS Unit 2 Software Engineering.pptx
Weekly quiz Compilation Jan -July 25.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
Unit 4 Computer Architecture Multicore Processor.pptx

Module 2 Lesson 2

  • 1. More Basic HTML Module 2: HTML Basics LESSON 2
  • 2. Lesson Overview In this lesson, you will learn to: Manipulate HTML code using a text editor application such as Notepad. View Web pages created using HTML code using a browser. Change text within a Web page using HTML coding. Alignment text within an HTML document. Set the background color of a Web page. Set the text color within a Web page.
  • 3. Guiding Questions for Lesson 2 What is text alignment and what are some examples of it? What colors do you like to see when viewing a Web page? How can a choice of color affect the message on a Web page?
  • 4. Text color How did the code <body text=red>How would this attribute change things?<body> change the text? Web colors can be defined in three ways: Color name Hexadecimal code RGB code
  • 5. Defining Color Hexadecimal Color Chart - http://www.funky-chickens.com/hex.html Visibone Hexadecimal Color Chart - http://html-color-codes.com/ 216 Web Safe Color Chart (Hexadecimal and RGB) - http://www.web-source.net/216_color_chart.htm Color Names and Hexadecimal Code - http://www.w3schools.com/Html/html_colornames.asp RGB, Hexadecimal and Color Names - http://web.njit.edu/~kevin/rgb.txt.html RGB, Hexadecimal and Color Names - http://www.tayloredmktg.com/rgb/#BR
  • 6. Background Color Background color is defined using an attribute The attribute to define background color is placed in the opening body tag. <body bgcolor=“33ff33”> What color will the background be using this code?
  • 7. Writing Code for Background color and Text color Write the code that would display the following: White text on a black background
  • 8. Check your work: Does your answer look like this: <body bgcolor=#000000 text=#FFFFFF>
  • 9. Text Alignment Alignment refers to how the text is oriented on the page Left Right Center
  • 10. Horizontal Rule A horizontal rule is a horizontal line across the Web page Created with the tag <hr> Attributes can be added to the <hr> tag such as: Width or how far the line extends across the page, defined by a percent Size or how thick the line is, defined by an integer Color, defined by a hexadecimal code <hr width=90% size=10 color=#0000FF Creates a line that extends 90 percent across the Web page which is 10 pixels thick and the line is blue
  • 11. Lesson Review Explain how to write the code and attributes for each of the following situations: Text color Background color Alignment
  • 12. Practice: Beginning HTML Create the following changes in your “Tags and Attributes” Web page: Center the title “Tags and Attributes” Make the background of the Web page green (Hint: The hexadecimal code for green is 008000). Make the text color red (Hint: The hexadecimal code for red is FF0000).

Editor's Notes

  • #3: Lesson 2 Overview
  • #4: Post one or more of these questions in an area where students can read them and allow time for students to respond to the questions. Discuss the student answers these questions.
  • #5: Discuss the idea of attributes. Attributes are information which alters the look of the page and when they are included within the opening body tag affect the entire document. Students have already been given an example of this through the code &lt;body text=red&gt;How would this attribute change things?&lt;/body&gt;. Students should realize that this attribute sets the text to the color red. Using the word “red” is one way of defining color. Students should realize that two other ways exist; one being a hexadecimal code and the other being an RGB code. Explain that these methods will be discussed later in Module 3. At this time, students need to understand that colors can be identified by their word name, hexadecimal code or their RGB code.
  • #6: Show students some of the Web sites which display colors with their color name, hexadecimal code, and RGB code.
  • #7: Color may also be used in the background of a Web page. The attribute to define the background color is also placed in the opening body tag. An example of this code defining this attribute is &lt;body bgcolor=”33ff33”&gt;. Ask students to identify the color 33ff33 before displaying the page. Can they use one of the color charts to identify the hexadecimal color code?
  • #8: Ask the students to attempt to write the code and attributes for the following: Black background and White text
  • #9: Have them check their answers with the following: &lt;body bgcolor=000000 text=#FFFFFF&gt;
  • #10: Discuss that text can also be altered by alignment. Alignment is how the text is oriented on the page. For example, text can be aligned in three ways on a Web page; left, right and centered. Text is automatically set to left alignment unless the designer changes this alignment.
  • #11: Discuss that sometimes there is a need to separate text from other parts of the Web page. This can be done horizontally by using a horizontal rule (a horizontal line). To create a horizontal rule, the tag &lt;hr&gt; is used. To this tag, the attributes of width (how far the line extends across the page represented by a percent), size (thickness of the line represented by an integer) and color can be added. An example of a horizontal rule tag would look something like this &lt;hr width=90% size=10 bcolor=#0000FF&gt;. This tag would create a line which extends across 90 percent of the Web page and is 10 pixels thick. The color of the line will be blue.
  • #12: Review concepts covered if needed with the students and discuss the practice activity.
  • #13: This is the last slide of the presentation.