SlideShare une entreprise Scribd logo
1  sur  39
HTML
WHAT IS HTML
• Stands for Hyper Text Markup Language
• Computer language used to create web pages
• Tags tell Web browser how to display a page
• Can have either *.htm or *.html file extension
• HTML describes the content and format of web pages using
tags.
Ex. Title Tag: <title>A title </title>
• It’s the job of the web browser to interpret tags and display the
content accordingly.
HTML SYNTAX
• HTML syntax:
two-sided tag:
<tag attributes>document content</tag>
Starting tag Properties of the tag.
Optional!
Actual content appears in
webpage. It could be empty
Closing tag
Examples: <p> CGS 2100 </p>
<body bgcolor = “yellow”> UCF </body>
STRUCTURE OF THE WEB PAGE
Inside the <html></html> tag
Each web page has a head part described in <head></head> tag:
<html>
<head>
<title> CGS 2100 </title>
</head>
</html>
The title of the
web page should
be put here
STRUCTURE OF THE WEB PAGE
• Inside the <html></html> tag
• Each web page has a body part described in <body></body> tag:
<html>
<head>
<title> CGS 2100 </title>
</head>
<body>
This is a sample HTML file.
</body>
</html>
The content of the whole
web page should be put
here
Title
Body
BACKGROUND COLOR
IT IS VERY COMMON TO SEE WEB PAGES WITH THEIR
BACKGROUND COLOR SET TO WHITE OR SOME OTHER
COLORS.
TO SET YOUR DOCUMENT’S BACKGROUND COLOR, YOU NEED
TO EDIT THE <BODY> ELEMENT BY ADDING THE BGCOLOR
ATTRIBUTE. THE FOLLOWING EXAMPLE WILL DISPLAY A
DOCUMENT WITH A WHITE BACKGROUND COLOR:
<BODY BGCOLOR=“#FFFFFF”></BODY>
TEXT COLOR
THE TEXT ATTRIBUTE IS USED TO CONTROL THE COLOR OF ALL THE
NORMAL TEXT IN THE DOCUMENT. THE DEFAULT COLOR FOR TEXT
IS BLACK. THE TEXT ATTRIBUTE WOULD BE ADDED AS FOLLOWS:
<BODY BGCOLOR=“#FFFFFF”TEXT=“#FF0000”></BODY>
IN THIS EXAMPLE THE DOCUMENT’S PAGE
COLOR IS WHITE AND THE TEXT WOULD BE RED.
Using Image Background
The BODY element also gives you ability of setting an image as
the document’s background.
An example of a background image’s HTML code is as follows:
<BODY BACKGROUND=“hi.gif”BGCOLOR=“#FFFFFF”>
</BODY>
HEADINGS, <HX> </HX>
INSIDE THE BODY ELEMENT, HEADING ELEMENTS H1 THROUGH
H6 ARE GENERALLY USED FOR MAJOR DIVISIONS OF THE
DOCUMENT. HEADINGS ARE PERMITTED TO APPEAR IN ANY
ORDER, BUT YOU WILL OBTAIN THE BEST RESULTS WHEN
YOUR DOCUMENTS ARE DISPLAYED IN A BROWSER IF YOU
FOLLOW THESE GUIDELINES:
H1: SHOULD BE USED AS THE HIGHEST LEVEL OF HEADING, H2 AS THE
NEXT HIGHEST, AND SO FORTH.
YOU SHOULD NOT SKIP HEADING LEVELS: E.G., AN H3 SHOULD NOT
APPEAR AFTER AN H1, UNLESS THERE IS AN H2 BETWEEN THEM.
HEADINGS, <HX> </HX>
<HTML>
<HEAD>
<TITLE> EXAMPLE PAGE</TITLE>
</HEAD>
<BODY>
<H1> HEADING 1 </H1>
<H2> HEADING 2 </H2>
<H3> HEADING 3 </H3>
<H4> HEADING 4 </H4>
<H5> HEADING 5 </H5>
<H6> HEADING 6 </H6>
</BODY>
</HTML>
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraphs, <P> </P>
Paragraphs allow you to add text to a document
in such a way that it will automatically adjust
the end of line to suite the window size of the
browser in which it is being displayed. Each
line of text will stretch the entire length of
the window.
PARAGRAPHS, <P> </P>
<HTML><HEAD>
<TITLE> EXAMPLE PAGE</TITLE>
</HEAD>
<BODY></H1> HEADING 1 </H1>
<P> PARAGRAPH 1, ….</P>
<H2> HEADING 2 </H2>
<P> PARAGRAPH 2, ….</P>
<H3> HEADING 3 </H3>
<P> PARAGRAPH 3, ….</P>
<H4> HEADING 4 </H4>
<P> PARAGRAPH 4, ….</P>
<H5> HEADING 5 </H5>
<P> PARAGRAPH 5, ….</P>
<H6> HEADING 6</H6>
<P> PARAGRAPH 6, ….</P>
</BODY></HTML>
Heading 1
Paragraph 1,….
Heading 2
Paragraph 2,….
Heading 3
Paragraph 3,….
Heading 4
Paragraph 4,….
Heading 5
Paragraph 5,….
Heading 6
Paragraph 6,….
BREAK, <BR>
LINE BREAKS ALLOW YOU TO DECIDE WHERE THE
TEXT WILL BREAK ON A LINE OR CONTINUE TO
THE END OF THE WINDOW.
A <BR> IS AN EMPTY ELEMENT, MEANING THAT IT
MAY CONTAIN ATTRIBUTES BUT IT DOES NOT
CONTAIN CONTENT.
THE <BR> ELEMENT DOES NOT HAVE A CLOSING
TAG.
BREAK, <BR>
<HTML>
<HEAD>
<TITLE> EXAMPLE PAGE</TITLE>
</HEAD>
<BODY>
<H1> HEADING 1 </H1>
<P>PARAGRAPH 1, <BR>
LINE 2 <BR> LINE 3 <BR>….
</P>
</BODY>
</HTML>
Heading 1
Paragraph 1,….
Line 2
Line 3
….
HORIZONTAL RULE, <HR>
THE <HR> ELEMENT CAUSES THE BROWSER TO DISPLAY
A HORIZONTAL LINE (RULE) IN YOUR DOCUMENT.
<HR> DOES NOT USE A CLOSING TAG, </HR>.
HORIZONTAL RULE, <HR>
<HTML>
<HEAD>
<TITLE> EXAMPLE PAGE</TITLE>
</HEAD>
<BODY>
<H1> HEADING 1 </H1>
<P>PARAGRAPH 1, <BR>
LINE 2 <BR>
<HR>LINE 3 <BR>
</P>
</BODY>
</HTML>
Heading 1
Paragraph 1,….
Line 2
_________________________
__
Line 3
BOLD, ITALIC AND OTHER CHARACTER FORMATTING
ELEMENTS
<FONT SIZE=“+2”> TWO SIZES BIGGER</FONT>
THE SIZE ATTRIBUTE CAN BE SET AS AN ABSOLUTE VALUE FROM 1 TO 7 OR AS A
RELATIVE VALUE USING THE “+” OR “-” SIGN. NORMAL TEXT SIZE IS 3 (FROM -2 TO +4).
<B> BOLD </B>
<I> ITALIC </I>
<U> UNDERLINE </U>
COLOR = “#RRGGBB” THE COLOR ATTRIBUTE OF THE FONT ELEMENT. E.G., <FONT
COLOR=“#RRGGBB”>THIS TEXT HAS COLOR</FONT>
<PRE> PREFORMATTED </PRE> TEXT ENCLOSED BY PRE TAGS IS DISPLAYED IN A MONO-
SPACED FONT. SPACES AND LINE BREAKS ARE SUPPORTED WITHOUT ADDITIONAL
ELEMENTS OR SPECIAL CHARACTERS.
ALIGNMENT
SOME ELEMENTS HAVE ATTRIBUTES FOR ALIGNMENT
(ALIGN) E.G. HEADINGS, PARAGRAPHS AND HORIZONTAL
RULES.
THE THREE ALIGNMENT VALUES ARE : LEFT, RIGHT,
CENTER.
<CENTER></CENTER> WILL CENTER ELEMENTS.
ALIGNMENT
<DIV ALIGN=“VALUE”></DIV> REPRESENTS A DIVISION IN
THE DOCUMENT AND CAN CONTAIN MOST OTHER ELEMENT
TYPE. THE ALIGNMENT ATTRIBUTE OF THE DIV ELEMENT IS
WELL SUPPORTED.
<TABLE></TABLE> INSIDE A TABLE, ALIGNMENT CAN BE SET
FOR EACH INDIVIDUAL CELL.
ADDITIONAL CHARACTER FORMATTING ELEMENTS
<STRIKE> STRIKE-THROUGH TEXT</STRIKE>
DEL IS USED FOR STRIKE AT THE LATEST BROWSERS
<BIG> PLACES TEXT IN A BIG FONT</BIG>
<SMALL> PLACES TEXT IN A SMALL FONT</SMALL>
<SUB> PLACES TEXT IN SUBSCRIPT POSITION </SUB>
<SUP> PLACES TEXT IN SUPERSCRIPT STYLE POSITION </SUP>
LISTS
1.CREATE AN UNORDERED LIST.
2.CREATE AN ORDERED LIST.
3.CREATE A DEFINED LIST.
4.NEST LISTS.
LIST ELEMENTS
HTML SUPPLIES SEVERAL LIST ELEMENTS. MOST
LIST ELEMENTS ARE COMPOSED OF ONE OR
MORE <LI> (LIST ITEM) ELEMENTS.
UL : UNORDERED LIST. ITEMS IN THIS LIST
START WITH A LIST MARK SUCH AS A BULLET.
BROWSERS WILL USUALLY CHANGE THE LIST
MARK IN NESTED LISTS.
<UL>
<LI> LIST ITEM …</LI>
<LI> LIST ITEM …</LI>
</UL>
LIST ELEMENTS
YOU HAVE THE CHOICE OF THREE BULLET
TYPES: DISC(DEFAULT), CIRCLE, SQUARE.
THESE ARE CONTROLLED IN NETSCAPE
NAVIGATOR BY THE “TYPE” ATTRIBUTE FOR THE
<UL> ELEMENT.
<UL TYPE=“SQUARE”>
<LI> LIST ITEM …</LI>
<LI> LIST ITEM …</LI>
<LI> LIST ITEM …</LI>
</UL>
LIST ELEMENTS
OL: ORDERED LIST. ITEMS IN THIS LIST ARE
NUMBERED AUTOMATICALLY BY THE
BROWSER.
<OL>
<LI> LIST ITEM …</LI>
<LI> LIST ITEM …</LI>
<LI> LIST ITEM …</LI>
</OL>
LIST ELEMENTS
YOU CAN SPECIFY A STARTING NUMBER FOR AN
ORDERED LIST.
<OL TYPE =“I”>
<LI> LIST ITEM …</LI>
<LI> LIST ITEM …</LI>
</OL>
<P> TEXT ….</P>
<OL TYPE=“I” START=“3”>
<LI> LIST ITEM …</LI>
</OL>
NESTING LISTS
You can nest lists by inserting a
UL, OL, etc., inside a list item
(LI).
Example
<UL TYPE = “square”>
<LI> List item …</LI>
<LI> List item …
<OL TYPE=“i” START=“3”>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
</LI>
<LI> List item …</LI>
</UL>
 List item…
 List item…
iii. List item…
iv. List item…
v. List item…
vi. List item…
vii.List item…
 List item…
 TABLES
THE <TABLE></TABLE> ELEMENT HAS FOUR SUB-ELEMENTS:
1.TABLE ROW <TR></TR>.
2.TABLE HEADER <TH></TH>.
3.TABLE DATA <TD></TD>.
4.CAPTION <CAPTION></CAPTION>.
THE TABLE ROW ELEMENTS USUALLY CONTAIN TABLE HEADER
ELEMENTS OR TABLE DATA ELEMENTS.
TABLES
<TABLE BORDER=“1”>
<TR>
<TH> COLUMN 1 HEADER </TH>
<TH> COLUMN 2 HEADER </TH>
</TR>
<TR>
<TD> ROW1, COL1 </TD>
<TD> ROW1, COL2 </TD>
</TR>
<TR>
<TD> ROW2, COL1 </TD>
<TD> ROW2, COL2 </TD>
</TR>
</TABLE>
Column 1
Header
Column 2
Header
Row1, Col1 Row1, Col2
Row2, Col1 Row2, Col2
TABLES ATTRIBUTES
BGCOLOR: SOME BROWSERS SUPPORT BACKGROUND COLORS IN A TABLE.
WIDTH: YOU CAN SPECIFY THE TABLE WIDTH AS AN ABSOLUTE NUMBER OF
PIXELS OR A PERCENTAGE OF THE DOCUMENT WIDTH. YOU CAN SET THE WIDTH
FOR THE TABLE CELLS AS WELL.
BORDER: YOU CAN CHOOSE A NUMERICAL VALUE FOR THE BORDER WIDTH,
WHICH SPECIFIES THE BORDER IN PIXELS.
CELLSPACING: CELL SPACING REPRESENTS THE SPACE BETWEEN CELLS AND IS
SPECIFIED IN PIXELS.
TABLE ATTRIBUTES
CELLPADDING: CELL PADDING IS THE SPACE BETWEEN
THE CELL BORDER AND THE CELL CONTENTS AND IS
SPECIFIED IN PIXELS.
ALIGN: TABLES CAN HAVE LEFT, RIGHT, OR CENTER
ALIGNMENT.
BACKGROUND: BACKGROUND IMAGE, WILL BE TITLED IN
IE3.0 AND ABOVE.
BORDERCOLOR, BORDERCOLORDARK.
THE <INPUT> TAG
• Most, but not all, form elements use the input tag, with
a type="..." argument to tell which kind of element it is
• type can be text, checkbox, radio, password, hidden, submit,
reset, button, file, or image
• Other common input tag arguments include:
• name: the name of the element
• value: the “value” of the element; used in different ways for
different values of type
TEXT INPUT
A text field:
<input type="text" name="textfield" value="with an initial value">
A multi-line text field
<textarea name="textarea" cols="24" rows="2">Hello</textarea>
A password field:
<input type="password" name="textfield3" value="secret">
BUTTONS
• A submit button:
<input type="submit" name="Submit" value="Submit">
• A reset button:
<input type="reset" name="Submit2" value="Reset">
• A plain button:
<input type="button" name="Submit3" value="Push Me">
• submit: send data
• reset: restore all form elements to
their initial state
• button: take some action as
specified by JavaScript
CHECKBOXES
A checkbox:
<input type="checkbox" name="checkbox”value="checkbox" checked>
• type: "checkbox"
• name: used to reference this form element from JavaScript
• value: value to be returned when element is checked
• Note that there is no text associated with the checkbox—
you have to supply text in the surrounding HTML
RADIO BUTTONS
Radio buttons:<br>
<input type="radio" name="radiobutton" value="myValue1">
male<br>
<input type="radio" name="radiobutton" value="myValue2" checked>
female
• If two or more radio buttons have the same name, the user can only select one of
them at a time
• This is how you make a radio button “group”
• If you ask for the value of that name, you will get the value specified for the selected
radio button
• As with checkboxes, radio buttons do not contain any text
DROP-DOWN MENU OR LIST
A menu or list:
<select name="select">
<option value="red">red</option>
<option value="green">green</option>
<option value="BLUE">blue</option>
</select>
REFERENCE
• HTML AND CSS:THE COMPLETE REFERENCE 5 EDITION: BY
THOMAS A.POWELL
• http://www.w3schools.com/html/
• http://htmldog.com/guides/html/
• http://www.echoecho.com/htmlbasics.
• http://en.wikipedia.org/wiki/HTML
THANK YOU

Contenu connexe

Tendances (20)

HTML basics
HTML basicsHTML basics
HTML basics
 
Html
HtmlHtml
Html
 
HTML
HTMLHTML
HTML
 
Html ppt
Html pptHtml ppt
Html ppt
 
Creating your 1st html page
Creating your 1st html pageCreating your 1st html page
Creating your 1st html page
 
html tags
html tagshtml tags
html tags
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Html ppt
Html pptHtml ppt
Html ppt
 
Basics ogHtml
Basics ogHtml Basics ogHtml
Basics ogHtml
 
Html
HtmlHtml
Html
 
Learn HTML Step By Step
Learn HTML Step By StepLearn HTML Step By Step
Learn HTML Step By Step
 
HTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al BasetHTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al Baset
 
Html coding
Html codingHtml coding
Html coding
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Html full
Html fullHtml full
Html full
 

Similaire à Introduction to HTML

Similaire à Introduction to HTML (20)

Html
HtmlHtml
Html
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
presentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptxpresentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptx
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
 
Html1
Html1Html1
Html1
 
Html
HtmlHtml
Html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Comp 111chp iv vi
Comp 111chp iv viComp 111chp iv vi
Comp 111chp iv vi
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
 
Html introduction
Html introductionHtml introduction
Html introduction
 
html tags
 html tags html tags
html tags
 
HTML
HTMLHTML
HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Dernier

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 

Dernier (20)

Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 

Introduction to HTML

  • 2. WHAT IS HTML • Stands for Hyper Text Markup Language • Computer language used to create web pages • Tags tell Web browser how to display a page • Can have either *.htm or *.html file extension • HTML describes the content and format of web pages using tags. Ex. Title Tag: <title>A title </title> • It’s the job of the web browser to interpret tags and display the content accordingly.
  • 3. HTML SYNTAX • HTML syntax: two-sided tag: <tag attributes>document content</tag> Starting tag Properties of the tag. Optional! Actual content appears in webpage. It could be empty Closing tag Examples: <p> CGS 2100 </p> <body bgcolor = “yellow”> UCF </body>
  • 4. STRUCTURE OF THE WEB PAGE Inside the <html></html> tag Each web page has a head part described in <head></head> tag: <html> <head> <title> CGS 2100 </title> </head> </html> The title of the web page should be put here
  • 5. STRUCTURE OF THE WEB PAGE • Inside the <html></html> tag • Each web page has a body part described in <body></body> tag: <html> <head> <title> CGS 2100 </title> </head> <body> This is a sample HTML file. </body> </html> The content of the whole web page should be put here
  • 7. BACKGROUND COLOR IT IS VERY COMMON TO SEE WEB PAGES WITH THEIR BACKGROUND COLOR SET TO WHITE OR SOME OTHER COLORS. TO SET YOUR DOCUMENT’S BACKGROUND COLOR, YOU NEED TO EDIT THE <BODY> ELEMENT BY ADDING THE BGCOLOR ATTRIBUTE. THE FOLLOWING EXAMPLE WILL DISPLAY A DOCUMENT WITH A WHITE BACKGROUND COLOR: <BODY BGCOLOR=“#FFFFFF”></BODY>
  • 8. TEXT COLOR THE TEXT ATTRIBUTE IS USED TO CONTROL THE COLOR OF ALL THE NORMAL TEXT IN THE DOCUMENT. THE DEFAULT COLOR FOR TEXT IS BLACK. THE TEXT ATTRIBUTE WOULD BE ADDED AS FOLLOWS: <BODY BGCOLOR=“#FFFFFF”TEXT=“#FF0000”></BODY> IN THIS EXAMPLE THE DOCUMENT’S PAGE COLOR IS WHITE AND THE TEXT WOULD BE RED.
  • 9. Using Image Background The BODY element also gives you ability of setting an image as the document’s background. An example of a background image’s HTML code is as follows: <BODY BACKGROUND=“hi.gif”BGCOLOR=“#FFFFFF”> </BODY>
  • 10. HEADINGS, <HX> </HX> INSIDE THE BODY ELEMENT, HEADING ELEMENTS H1 THROUGH H6 ARE GENERALLY USED FOR MAJOR DIVISIONS OF THE DOCUMENT. HEADINGS ARE PERMITTED TO APPEAR IN ANY ORDER, BUT YOU WILL OBTAIN THE BEST RESULTS WHEN YOUR DOCUMENTS ARE DISPLAYED IN A BROWSER IF YOU FOLLOW THESE GUIDELINES: H1: SHOULD BE USED AS THE HIGHEST LEVEL OF HEADING, H2 AS THE NEXT HIGHEST, AND SO FORTH. YOU SHOULD NOT SKIP HEADING LEVELS: E.G., AN H3 SHOULD NOT APPEAR AFTER AN H1, UNLESS THERE IS AN H2 BETWEEN THEM.
  • 11. HEADINGS, <HX> </HX> <HTML> <HEAD> <TITLE> EXAMPLE PAGE</TITLE> </HEAD> <BODY> <H1> HEADING 1 </H1> <H2> HEADING 2 </H2> <H3> HEADING 3 </H3> <H4> HEADING 4 </H4> <H5> HEADING 5 </H5> <H6> HEADING 6 </H6> </BODY> </HTML> Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6
  • 12. Paragraphs, <P> </P> Paragraphs allow you to add text to a document in such a way that it will automatically adjust the end of line to suite the window size of the browser in which it is being displayed. Each line of text will stretch the entire length of the window.
  • 13. PARAGRAPHS, <P> </P> <HTML><HEAD> <TITLE> EXAMPLE PAGE</TITLE> </HEAD> <BODY></H1> HEADING 1 </H1> <P> PARAGRAPH 1, ….</P> <H2> HEADING 2 </H2> <P> PARAGRAPH 2, ….</P> <H3> HEADING 3 </H3> <P> PARAGRAPH 3, ….</P> <H4> HEADING 4 </H4> <P> PARAGRAPH 4, ….</P> <H5> HEADING 5 </H5> <P> PARAGRAPH 5, ….</P> <H6> HEADING 6</H6> <P> PARAGRAPH 6, ….</P> </BODY></HTML> Heading 1 Paragraph 1,…. Heading 2 Paragraph 2,…. Heading 3 Paragraph 3,…. Heading 4 Paragraph 4,…. Heading 5 Paragraph 5,…. Heading 6 Paragraph 6,….
  • 14. BREAK, <BR> LINE BREAKS ALLOW YOU TO DECIDE WHERE THE TEXT WILL BREAK ON A LINE OR CONTINUE TO THE END OF THE WINDOW. A <BR> IS AN EMPTY ELEMENT, MEANING THAT IT MAY CONTAIN ATTRIBUTES BUT IT DOES NOT CONTAIN CONTENT. THE <BR> ELEMENT DOES NOT HAVE A CLOSING TAG.
  • 15. BREAK, <BR> <HTML> <HEAD> <TITLE> EXAMPLE PAGE</TITLE> </HEAD> <BODY> <H1> HEADING 1 </H1> <P>PARAGRAPH 1, <BR> LINE 2 <BR> LINE 3 <BR>…. </P> </BODY> </HTML> Heading 1 Paragraph 1,…. Line 2 Line 3 ….
  • 16. HORIZONTAL RULE, <HR> THE <HR> ELEMENT CAUSES THE BROWSER TO DISPLAY A HORIZONTAL LINE (RULE) IN YOUR DOCUMENT. <HR> DOES NOT USE A CLOSING TAG, </HR>.
  • 17. HORIZONTAL RULE, <HR> <HTML> <HEAD> <TITLE> EXAMPLE PAGE</TITLE> </HEAD> <BODY> <H1> HEADING 1 </H1> <P>PARAGRAPH 1, <BR> LINE 2 <BR> <HR>LINE 3 <BR> </P> </BODY> </HTML> Heading 1 Paragraph 1,…. Line 2 _________________________ __ Line 3
  • 18. BOLD, ITALIC AND OTHER CHARACTER FORMATTING ELEMENTS <FONT SIZE=“+2”> TWO SIZES BIGGER</FONT> THE SIZE ATTRIBUTE CAN BE SET AS AN ABSOLUTE VALUE FROM 1 TO 7 OR AS A RELATIVE VALUE USING THE “+” OR “-” SIGN. NORMAL TEXT SIZE IS 3 (FROM -2 TO +4). <B> BOLD </B> <I> ITALIC </I> <U> UNDERLINE </U> COLOR = “#RRGGBB” THE COLOR ATTRIBUTE OF THE FONT ELEMENT. E.G., <FONT COLOR=“#RRGGBB”>THIS TEXT HAS COLOR</FONT> <PRE> PREFORMATTED </PRE> TEXT ENCLOSED BY PRE TAGS IS DISPLAYED IN A MONO- SPACED FONT. SPACES AND LINE BREAKS ARE SUPPORTED WITHOUT ADDITIONAL ELEMENTS OR SPECIAL CHARACTERS.
  • 19. ALIGNMENT SOME ELEMENTS HAVE ATTRIBUTES FOR ALIGNMENT (ALIGN) E.G. HEADINGS, PARAGRAPHS AND HORIZONTAL RULES. THE THREE ALIGNMENT VALUES ARE : LEFT, RIGHT, CENTER. <CENTER></CENTER> WILL CENTER ELEMENTS.
  • 20. ALIGNMENT <DIV ALIGN=“VALUE”></DIV> REPRESENTS A DIVISION IN THE DOCUMENT AND CAN CONTAIN MOST OTHER ELEMENT TYPE. THE ALIGNMENT ATTRIBUTE OF THE DIV ELEMENT IS WELL SUPPORTED. <TABLE></TABLE> INSIDE A TABLE, ALIGNMENT CAN BE SET FOR EACH INDIVIDUAL CELL.
  • 21. ADDITIONAL CHARACTER FORMATTING ELEMENTS <STRIKE> STRIKE-THROUGH TEXT</STRIKE> DEL IS USED FOR STRIKE AT THE LATEST BROWSERS <BIG> PLACES TEXT IN A BIG FONT</BIG> <SMALL> PLACES TEXT IN A SMALL FONT</SMALL> <SUB> PLACES TEXT IN SUBSCRIPT POSITION </SUB> <SUP> PLACES TEXT IN SUPERSCRIPT STYLE POSITION </SUP>
  • 22. LISTS 1.CREATE AN UNORDERED LIST. 2.CREATE AN ORDERED LIST. 3.CREATE A DEFINED LIST. 4.NEST LISTS.
  • 23. LIST ELEMENTS HTML SUPPLIES SEVERAL LIST ELEMENTS. MOST LIST ELEMENTS ARE COMPOSED OF ONE OR MORE <LI> (LIST ITEM) ELEMENTS. UL : UNORDERED LIST. ITEMS IN THIS LIST START WITH A LIST MARK SUCH AS A BULLET. BROWSERS WILL USUALLY CHANGE THE LIST MARK IN NESTED LISTS. <UL> <LI> LIST ITEM …</LI> <LI> LIST ITEM …</LI> </UL>
  • 24. LIST ELEMENTS YOU HAVE THE CHOICE OF THREE BULLET TYPES: DISC(DEFAULT), CIRCLE, SQUARE. THESE ARE CONTROLLED IN NETSCAPE NAVIGATOR BY THE “TYPE” ATTRIBUTE FOR THE <UL> ELEMENT. <UL TYPE=“SQUARE”> <LI> LIST ITEM …</LI> <LI> LIST ITEM …</LI> <LI> LIST ITEM …</LI> </UL>
  • 25. LIST ELEMENTS OL: ORDERED LIST. ITEMS IN THIS LIST ARE NUMBERED AUTOMATICALLY BY THE BROWSER. <OL> <LI> LIST ITEM …</LI> <LI> LIST ITEM …</LI> <LI> LIST ITEM …</LI> </OL>
  • 26. LIST ELEMENTS YOU CAN SPECIFY A STARTING NUMBER FOR AN ORDERED LIST. <OL TYPE =“I”> <LI> LIST ITEM …</LI> <LI> LIST ITEM …</LI> </OL> <P> TEXT ….</P> <OL TYPE=“I” START=“3”> <LI> LIST ITEM …</LI> </OL>
  • 27. NESTING LISTS You can nest lists by inserting a UL, OL, etc., inside a list item (LI). Example <UL TYPE = “square”> <LI> List item …</LI> <LI> List item … <OL TYPE=“i” START=“3”> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> </OL> </LI> <LI> List item …</LI> </UL>  List item…  List item… iii. List item… iv. List item… v. List item… vi. List item… vii.List item…  List item…
  • 28.  TABLES THE <TABLE></TABLE> ELEMENT HAS FOUR SUB-ELEMENTS: 1.TABLE ROW <TR></TR>. 2.TABLE HEADER <TH></TH>. 3.TABLE DATA <TD></TD>. 4.CAPTION <CAPTION></CAPTION>. THE TABLE ROW ELEMENTS USUALLY CONTAIN TABLE HEADER ELEMENTS OR TABLE DATA ELEMENTS.
  • 29. TABLES <TABLE BORDER=“1”> <TR> <TH> COLUMN 1 HEADER </TH> <TH> COLUMN 2 HEADER </TH> </TR> <TR> <TD> ROW1, COL1 </TD> <TD> ROW1, COL2 </TD> </TR> <TR> <TD> ROW2, COL1 </TD> <TD> ROW2, COL2 </TD> </TR> </TABLE> Column 1 Header Column 2 Header Row1, Col1 Row1, Col2 Row2, Col1 Row2, Col2
  • 30. TABLES ATTRIBUTES BGCOLOR: SOME BROWSERS SUPPORT BACKGROUND COLORS IN A TABLE. WIDTH: YOU CAN SPECIFY THE TABLE WIDTH AS AN ABSOLUTE NUMBER OF PIXELS OR A PERCENTAGE OF THE DOCUMENT WIDTH. YOU CAN SET THE WIDTH FOR THE TABLE CELLS AS WELL. BORDER: YOU CAN CHOOSE A NUMERICAL VALUE FOR THE BORDER WIDTH, WHICH SPECIFIES THE BORDER IN PIXELS. CELLSPACING: CELL SPACING REPRESENTS THE SPACE BETWEEN CELLS AND IS SPECIFIED IN PIXELS.
  • 31. TABLE ATTRIBUTES CELLPADDING: CELL PADDING IS THE SPACE BETWEEN THE CELL BORDER AND THE CELL CONTENTS AND IS SPECIFIED IN PIXELS. ALIGN: TABLES CAN HAVE LEFT, RIGHT, OR CENTER ALIGNMENT. BACKGROUND: BACKGROUND IMAGE, WILL BE TITLED IN IE3.0 AND ABOVE. BORDERCOLOR, BORDERCOLORDARK.
  • 32. THE <INPUT> TAG • Most, but not all, form elements use the input tag, with a type="..." argument to tell which kind of element it is • type can be text, checkbox, radio, password, hidden, submit, reset, button, file, or image • Other common input tag arguments include: • name: the name of the element • value: the “value” of the element; used in different ways for different values of type
  • 33. TEXT INPUT A text field: <input type="text" name="textfield" value="with an initial value"> A multi-line text field <textarea name="textarea" cols="24" rows="2">Hello</textarea> A password field: <input type="password" name="textfield3" value="secret">
  • 34. BUTTONS • A submit button: <input type="submit" name="Submit" value="Submit"> • A reset button: <input type="reset" name="Submit2" value="Reset"> • A plain button: <input type="button" name="Submit3" value="Push Me"> • submit: send data • reset: restore all form elements to their initial state • button: take some action as specified by JavaScript
  • 35. CHECKBOXES A checkbox: <input type="checkbox" name="checkbox”value="checkbox" checked> • type: "checkbox" • name: used to reference this form element from JavaScript • value: value to be returned when element is checked • Note that there is no text associated with the checkbox— you have to supply text in the surrounding HTML
  • 36. RADIO BUTTONS Radio buttons:<br> <input type="radio" name="radiobutton" value="myValue1"> male<br> <input type="radio" name="radiobutton" value="myValue2" checked> female • If two or more radio buttons have the same name, the user can only select one of them at a time • This is how you make a radio button “group” • If you ask for the value of that name, you will get the value specified for the selected radio button • As with checkboxes, radio buttons do not contain any text
  • 37. DROP-DOWN MENU OR LIST A menu or list: <select name="select"> <option value="red">red</option> <option value="green">green</option> <option value="BLUE">blue</option> </select>
  • 38. REFERENCE • HTML AND CSS:THE COMPLETE REFERENCE 5 EDITION: BY THOMAS A.POWELL • http://www.w3schools.com/html/ • http://htmldog.com/guides/html/ • http://www.echoecho.com/htmlbasics. • http://en.wikipedia.org/wiki/HTML