SlideShare a Scribd company logo
Basic HTML 1
What is HTML? Tags Attributes Colors text formatting Links Images Lists Tables Frames forms
HTML  is a language that helps you to create websites  HTML  stands for Hyper Text Markup Language  HTML  is the predominant markup language for web pages  The language uses  TAGS  to describe web pages        Using HTML you can develop not very demanding web pages but this can be the beginning for achieving professional sites. There are many programs with which writing HTML is no longer necessary, these programs write it for you. But these programs do not offer complete control on designing your web pages and to build a web page requires at least some basic knowledge of HTML.
<HTML> <HEAD> <TITLE>My web page</TITLE> </HEAD> <BODY> Hello!<BR> This is my first web page!<BR> </BODY> </HTML>
single tags (no closing tag) Examples: <HR> <BR>
They available only in the starting tag and can be defined as properties of tags. If a tag has no attributes, then the browser will take into account the default value <BODY BGCOLOR=&quot;#A8A8A8&quot; > - will give gray color to the background <FONT COLOR=&quot;#FF0000&quot; > - will color the text in red <FONT SIZE=&quot;6&quot; > - will scale the text with the largest size
Tag Name Attribute name  Attribute value Details <A> Anchor Href URL Address to which we want to be connected Target _self _parent _top Display  bgcolor color code color name Background color Leftmargin percentage from  page width in pixels The distance between the left margin of  window browser and the left edge of  the page Topmargin percent from page height in pixels The distance between the top edge of window browser and top of page <CENTER> Display in the center of the page Frameborder 1 or 0 Frame has/not border Marginheight number of pixels Space above/under a frame Marginwidth number of pixels Space to the left/right of a frame
We can define the HTML colors by using hexadecimal notation (HEX) or the RGB notation that means a combination of Red, Green and Blue color <BODY BGCOLOR=&quot;#A8A8A8&quot; > <FONT COLOR=&quot;#000000&quot; >Your text here</FONT>
HTML uses tags for text formatting.  Examples of tags are:  <B> for bold text  <I> for italic text In order to choose the characteristics of a text we use <FONT> tag. This tag has several attributes like color, face, size.  Color attribute refers to color of the text that will be surrounded by tags <FONT> and </FONT> <FACE> attribute shows the font type and <SIZE> attribute shows the font size. Example: <FONT SIZE=&quot;4&quot; FACE=&quot;ARIAL&quot; COLOR=&quot;BLUE&quot;> Your text here </FONT> <FONT SIZE=&quot;3&quot; FACE=&quot;VERANDA&quot; COLOR=&quot;RED&quot;> Your text here </FONT>
A HTML link is a sequence of commands that perform links to a new document, an image or another HTML page. The link is made between <A> tag. The name of these tag comes from anchor and the tag will be use with HREF attribute. The line of code to insert a link in a web page will have the following form: <A HREF=&quot;url&quot;>Link text</A> <HTML> <HEAD> <TITLE>Links</TITLE> </HEAD> <BODY> <CENTER><B>Links</B> <BR> <A HREF=&quot;images.html&quot;>Text link</A></CENTER> </BODY> </HTML>
Specifies where to open the linked document. It can be opened in a new browser window or in the same window. The example bellow will open the linked document in a new tab. Example: <A HREF=&quot;url&quot; target=&quot;_blank&quot;>Link text</A>
Internal - to specific places on the page. Example: href=&quot;#anchorname“ Local - to the other pages but on the same field. Example: href=&quot;../images/html.png“ Global - to other domains. Example: href=&quot;http://www.htmlbasic.com&quot;
If we want to get some opinions from users, then the page should have a link to an e-mail address. The general form of a link to an e-mail address is: <A HREF=&quot;mailto: e-mail address&quot;>Send me an e-mail</A>
Each link of a web page has three colors: a color for unvisited links  a color for visited links  a color for active links (when the mouse is over them)  For each color, of the links above, is one attribute of the tag <BODY> with which we can change the default color: <LINK> for unvisited links  <VLINK> for visited links  <ALINK> for active connections        If we want that links in our page to be red when they aren't visited, black when they are visited and yellow when the mouse passes over them, we must use the following line code: <BODY LINK=&quot;#FF0000&quot; VLINK=&quot;#000000&quot; ALINK=&quot;#FFFF00&quot;>
Images are defined with the <IMG> tag, accompanied by SRC (source) indicating the address or path to the image you want to use. The general form of this tag will be: <IMG SRC=&quot;imagename.extension&quot;> <HTML> <HEAD> <TITLE>Images</TITLE> </HEAD> <BODY> <CENTER><B>Images</B> <BR> <IMG SRC=&quot;html.png&quot;></CENTER> </BODY> </HTML>
Specifies an alternate text for an image, if the image cannot be displayed. The value of the ALT attribute is given by the author. It also provides information for an image if the user cannot view it from different reasons. If you move the mouse cursor over the image, will appear the text written in the ALT attribute like in the following example: <IMG SRC=&quot;html.png&quot; alt=&quot;logohtml&quot;>
To specify the dimension of an image we use the height and width attributes. The attribute values are specified in pixels by default but they also can be represented as a percentage. Example: <IMG SRC=&quot;html.png&quot; alt=&quot;logohtml&quot; width=&quot;320&quot; height=&quot;240&quot;>
For align an image we are using ALIGN and VALIGN attributes. Functionality of these attributes are: Align (horizontal alignment): right left  center  Valign (vertical alignment): top  bottom  center
To create an unordered list we should use tags like <UL> and </UL> (names of these tags comes from &quot;unordered list&quot;). Each list item should be inserted by the tag <LI> (list item). For a better understanding let's see how HTML code for the list above looks like: <HTML> <HEAD> <TITLE>Lists</TITLE> </HEAD> <BODY> <UL>Unordered list <LI>List element 1 <LI>List element 2 <LI>List element 3 </UL> </HTML>  HTML lists can be ordered or unordered: List element 1  List element 3  List element 2
To create an ordered list we should use tags like <OL> and </OL>. Instead of numbers you can replace them with Roman numbers or letters, both capital and lower-case. Use the TYPE attribute to change the numbering like in the following example: <OL TYPE=&quot;a&quot;> <OL TYPE=&quot;A&quot;> <OL TYPE=&quot;i&quot;> <OL TYPE=&quot;I&quot;>
START is another attribute of the ordered lists and this specifies the number or letter with which the list would start. <OL TYPE=&quot;1&quot; START=&quot;3&quot;> <LI>List element 1 <LI>List element 2 <LI>List element 3 </OL> <OL TYPE=&quot;a&quot; START=&quot;5&quot;> <LI>List element 1 <LI>List element 2 <LI>List element 3 </OL>
HTML tables can be defined by using <TABLE> tag. A table in HTML contains rows, defined by the <TR> tag, and cells, defined by the <TD> tag. <TR> tag comes from &quot;table row&quot; while <TD> comes from &quot;table data&quot;. A <TD> tag can contain text, images, links, lists, forms and other tables. Let's see an example for a simple table: <TABLE BORDER=&quot;1&quot;> <TR> <TD>Cell 1</TD> <TD>Cell 2</TD> </TR> </TABLE> The BORDER attribute will specify how thick the border will be. If we don't specify a border attribute, the table will be displayed without borders. The color border can be set by using BORDERCOLOR attribute.
Can be defined by: Table HEIGHT - is a table attribute that defines the height of the table. The value of this attribute can be expressed in pixels or percentage of the page;  <TABLE HEIGHT=&quot;50&quot;> Table WIDTH - is a table attribute that defines the width of the table. The value of this attribute can be expressed in pixels or percentage of the page; <TABLE WIDTH=&quot;100&quot;>
CELLPADDING - offers opportunities of adjusting the white space of the table, that means the distance between cell borders and the content within; CELLSPACING - defines the width of the border;
ROWSPAN - it is used to span multiple rows; <TABLE BORDER=&quot;1&quot;> <TR><TD ROWSPAN=&quot;2&quot;>Cell 1</TD> <TD>Cell 2</TD></TR> <TR><TD>Cell 3</TD></TR> </TABLE> COLSPAN - it is used to span multiple columns; <TABLE BORDER=&quot;1&quot;> <TR><TD>Cell 1</TD> <TD>Cell 2</TD></TR> <TR><TD COLSPAN=&quot;2&quot;>Cell 3</TD></TR> </TABLE>
HTML frames help us to display multiple html documents in a web page. This frames are independent one of the other. A frameset is a file that specifies how the screen is divided into frames or specifies the WebPages to display in each frame of the main web page. Here we have an example that divides the page into two horizontal frames, one having 30% of the page and other 70%. <FRAMESET ROWS=&quot;30%,*&quot;> </FRAMESET> FRAMESET ROWS - defines the height that each frame will have; FRAMESET COLS - defines the width that each frame will have; FRAME SRC - defines the location of the web page that will be loaded into the frame;
FRAMEBORDER - shows the frame border. A zero value hides the border; BORDER - gives the border width; FRAMESPACING - modifies the border width (attribute used on Internet Explorer); Example Frames: <HTML> <HEAD> <TITLE> HTML frames </TITLE> </HEAD> <FRAMESET ROWS=&quot;30%,*&quot; FRAMEBORDER=&quot;2&quot; BORDER=&quot;2&quot;> <FRAME SRC=&quot;title.php&quot;> <FRAMESET COLS=&quot;20%,*&quot; FRAMEBORDER=&quot;2&quot; BORDER=&quot;2&quot;> <FRAME SRC=&quot;menu.php&quot;> <FRAME SRC=&quot;pagecontent.php&quot;> </FRAMESET> </HTML>
HTML forms are used to obtain useful information about users such as name, address, e-mail or phone. By these forms users are transferring information to the server. This information is entered by elements like text fields, checkboxes, submit buttons, radio buttons, lists, textarea. To create a form we will use <FORM> tag like in the following example: <FORM> form elements </FORM> One of the most important form element is TYPE attribute of the <INPUT> tag. The attributes of this tag are: TYPE - determine the type of text field. Example: text, textarea or password field;  NAME - assign a name field to refer to it later;  SIZE - set the field size;  MAXLENGHT - maximum number of characters that can be introduced.
1-Text fields Defined by: TYPE=&quot;text&quot;. Example: <FORM> Full name: <INPUT TYPE=&quot;text&quot; NAME=&quot;fullname&quot;> Address: <INPUT TYPE=&quot;text&quot; NAME=&quot;address&quot;> </FORM> 2-Password field Defined by: TYPE=&quot;password&quot;. Example: <FORM> Password: <INPUT TYPE=&quot;password&quot; NAME=&quot;password&quot;> </FORM> 3-Radio buttons Defined by: TYPE=&quot;radio&quot;. Example: <FORM> <INPUT TYPE=&quot;radio&quot; NAME=&quot;choice&quot; VALUE=&quot;yes&quot;> Yes <INPUT TYPE=&quot;radio&quot; NAME=&quot;choice&quot; VALUE=&quot;no&quot;>No </FORM> 4-Check boxes Defined by: TYPE=&quot;checkbox&quot;. Example: <FORM> <INPUT TYPE=&quot;checkbox&quot; NAME=&quot;colors&quot; VALUE=&quot;black&quot;> Black <INPUT TYPE=&quot;checkbox&quot; NAME=&quot;colors&quot; VALUE=&quot;white&quot;>White </FORM
5-Submit button Defined by: TYPE=&quot;submit&quot;. Example: <FORM NAME=&quot;input&quot; ACTION=&quot;mailto:youremail@email.com&quot; METHOD=&quot;get&quot;> NAME: <INPUT TYPE=&quot;text&quot; NAME=&quot;username&quot;> <INPUT TYPE=&quot;submit&quot; VALUE=&quot;submit&quot;> </FORM> 6-Text area T ext area is used as a text edit field where the user can enter comments that will be sent later to the server. The attributes that has to be specified of text area are <ROWS> and <COLUMNS>. Let's see an example: <FORM ACTION=&quot;mailto:youremail@email.com&quot; METHOD=&quot;get&quot;> <TEXTAREA ROWS=&quot;5&quot; COLS=&quot;10&quot; NAME=&quot;textarea&quot;> Your text here </TEXTAREA> </FORM> 7-Drop down lists  To create a drop down list we will use SELECT tag followed by OPTION tags. The OPTION tags represents the available choices for the user. Let's see how to do it:  <FORM ACTION=&quot;mailto:youremail@email.com&quot; METHOD=&quot;get&quot;> Which continent you belong? <SELECT NAME=&quot;continent&quot;> <OPTION> Select continent </OPTION> <OPTION> Asia </OPTION> <OPTION> Africa </OPTION> <OPTION> North America </OPTION> <OPTION> South America </OPTION> <OPTION> Antartica </OPTION> <OPTION> Europe </OPTION> <OPTION> Australia </OPTION> </SELECT> </FOR

More Related Content

PPTX
Basic Html Knowledge for students
PPT
Intro Html
PPT
Intro to html
PPTX
HTML (Web) basics for a beginner
PPTX
Html n CSS
PPSX
Html introduction
Basic Html Knowledge for students
Intro Html
Intro to html
HTML (Web) basics for a beginner
Html n CSS
Html introduction

What's hot (20)

PPTX
Basic HTML
PPT
Learning HTML
PPTX
(Fast) Introduction to HTML & CSS
PPTX
Html ppt
PPTX
How to learn HTML in 10 Days
PPTX
Html coding
PPT
PPT
Introduction to html
PPT
Presentation on HTML
PPTX
Anchor tag HTML Presentation
PPT
Introduction to html
PPTX
Html ppt
PPTX
PPTX
HTML (Basic to Advance)
PPT
Html Slide Part-1
PPTX
html-table
PPT
Introduction to HTML5
PPTX
Lecture 2 introduction to html
Basic HTML
Learning HTML
(Fast) Introduction to HTML & CSS
Html ppt
How to learn HTML in 10 Days
Html coding
Introduction to html
Presentation on HTML
Anchor tag HTML Presentation
Introduction to html
Html ppt
HTML (Basic to Advance)
Html Slide Part-1
html-table
Introduction to HTML5
Lecture 2 introduction to html
Ad

Viewers also liked (20)

PDF
Html text and formatting
PPT
Html text formatting
DOCX
Honda Company Details
PDF
Web app development_html_02
PDF
Web app development_html_css_03
DOC
Management report on HPML
PPTX
Learning HTML
PDF
Intro to html, css & sass
PPTX
Persentation of millat tractor by abdul waheed
PPT
Html basics
DOCX
Atlas honda
PDF
Atlas honda internship report by qazi zohaib aqil
PPTX
Honda atlas Cars Pakistan Limited
PPTX
Honda
PDF
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
PPT
Ufone
PPTX
Automobile Industry Of Pakistan
PPT
The Financial Environment
Html text and formatting
Html text formatting
Honda Company Details
Web app development_html_02
Web app development_html_css_03
Management report on HPML
Learning HTML
Intro to html, css & sass
Persentation of millat tractor by abdul waheed
Html basics
Atlas honda
Atlas honda internship report by qazi zohaib aqil
Honda atlas Cars Pakistan Limited
Honda
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
Ufone
Automobile Industry Of Pakistan
The Financial Environment
Ad

Similar to Understanding THML (20)

PPT
Html Intro2
PPTX
Html tags
PPT
PPT
ODP
ODP
ODP
PPTX
IPW HTML course
PPT
Lecture 4
PPT
Intro to html
ODP
Html intro
ODP
Html intro
PPT
Html Presentation Of Web Page Making
PPT
introduction to web technology
PPTX
Html, CSS & Web Designing
PPT
Html tutorial
PPT
KMUTNB - Internet Programming 3/7
PPT
HTML & CSS Workshop Notes
Html Intro2
Html tags
IPW HTML course
Lecture 4
Intro to html
Html intro
Html intro
Html Presentation Of Web Page Making
introduction to web technology
Html, CSS & Web Designing
Html tutorial
KMUTNB - Internet Programming 3/7
HTML & CSS Workshop Notes

Recently uploaded (20)

PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
RMMM.pdf make it easy to upload and study
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Business Ethics Teaching Materials for college
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Week 4 Term 3 Study Techniques revisited.pptx
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
RMMM.pdf make it easy to upload and study
VCE English Exam - Section C Student Revision Booklet
Abdominal Access Techniques with Prof. Dr. R K Mishra
Renaissance Architecture: A Journey from Faith to Humanism
Business Ethics Teaching Materials for college
Final Presentation General Medicine 03-08-2024.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Anesthesia in Laparoscopic Surgery in India
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pre independence Education in Inndia.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

Understanding THML

  • 2. What is HTML? Tags Attributes Colors text formatting Links Images Lists Tables Frames forms
  • 3. HTML is a language that helps you to create websites HTML stands for Hyper Text Markup Language HTML is the predominant markup language for web pages The language uses TAGS to describe web pages       Using HTML you can develop not very demanding web pages but this can be the beginning for achieving professional sites. There are many programs with which writing HTML is no longer necessary, these programs write it for you. But these programs do not offer complete control on designing your web pages and to build a web page requires at least some basic knowledge of HTML.
  • 4. <HTML> <HEAD> <TITLE>My web page</TITLE> </HEAD> <BODY> Hello!<BR> This is my first web page!<BR> </BODY> </HTML>
  • 5. single tags (no closing tag) Examples: <HR> <BR>
  • 6. They available only in the starting tag and can be defined as properties of tags. If a tag has no attributes, then the browser will take into account the default value <BODY BGCOLOR=&quot;#A8A8A8&quot; > - will give gray color to the background <FONT COLOR=&quot;#FF0000&quot; > - will color the text in red <FONT SIZE=&quot;6&quot; > - will scale the text with the largest size
  • 7. Tag Name Attribute name Attribute value Details <A> Anchor Href URL Address to which we want to be connected Target _self _parent _top Display bgcolor color code color name Background color Leftmargin percentage from page width in pixels The distance between the left margin of window browser and the left edge of the page Topmargin percent from page height in pixels The distance between the top edge of window browser and top of page <CENTER> Display in the center of the page Frameborder 1 or 0 Frame has/not border Marginheight number of pixels Space above/under a frame Marginwidth number of pixels Space to the left/right of a frame
  • 8. We can define the HTML colors by using hexadecimal notation (HEX) or the RGB notation that means a combination of Red, Green and Blue color <BODY BGCOLOR=&quot;#A8A8A8&quot; > <FONT COLOR=&quot;#000000&quot; >Your text here</FONT>
  • 9. HTML uses tags for text formatting. Examples of tags are: <B> for bold text <I> for italic text In order to choose the characteristics of a text we use <FONT> tag. This tag has several attributes like color, face, size. Color attribute refers to color of the text that will be surrounded by tags <FONT> and </FONT> <FACE> attribute shows the font type and <SIZE> attribute shows the font size. Example: <FONT SIZE=&quot;4&quot; FACE=&quot;ARIAL&quot; COLOR=&quot;BLUE&quot;> Your text here </FONT> <FONT SIZE=&quot;3&quot; FACE=&quot;VERANDA&quot; COLOR=&quot;RED&quot;> Your text here </FONT>
  • 10. A HTML link is a sequence of commands that perform links to a new document, an image or another HTML page. The link is made between <A> tag. The name of these tag comes from anchor and the tag will be use with HREF attribute. The line of code to insert a link in a web page will have the following form: <A HREF=&quot;url&quot;>Link text</A> <HTML> <HEAD> <TITLE>Links</TITLE> </HEAD> <BODY> <CENTER><B>Links</B> <BR> <A HREF=&quot;images.html&quot;>Text link</A></CENTER> </BODY> </HTML>
  • 11. Specifies where to open the linked document. It can be opened in a new browser window or in the same window. The example bellow will open the linked document in a new tab. Example: <A HREF=&quot;url&quot; target=&quot;_blank&quot;>Link text</A>
  • 12. Internal - to specific places on the page. Example: href=&quot;#anchorname“ Local - to the other pages but on the same field. Example: href=&quot;../images/html.png“ Global - to other domains. Example: href=&quot;http://www.htmlbasic.com&quot;
  • 13. If we want to get some opinions from users, then the page should have a link to an e-mail address. The general form of a link to an e-mail address is: <A HREF=&quot;mailto: e-mail address&quot;>Send me an e-mail</A>
  • 14. Each link of a web page has three colors: a color for unvisited links a color for visited links a color for active links (when the mouse is over them) For each color, of the links above, is one attribute of the tag <BODY> with which we can change the default color: <LINK> for unvisited links <VLINK> for visited links <ALINK> for active connections       If we want that links in our page to be red when they aren't visited, black when they are visited and yellow when the mouse passes over them, we must use the following line code: <BODY LINK=&quot;#FF0000&quot; VLINK=&quot;#000000&quot; ALINK=&quot;#FFFF00&quot;>
  • 15. Images are defined with the <IMG> tag, accompanied by SRC (source) indicating the address or path to the image you want to use. The general form of this tag will be: <IMG SRC=&quot;imagename.extension&quot;> <HTML> <HEAD> <TITLE>Images</TITLE> </HEAD> <BODY> <CENTER><B>Images</B> <BR> <IMG SRC=&quot;html.png&quot;></CENTER> </BODY> </HTML>
  • 16. Specifies an alternate text for an image, if the image cannot be displayed. The value of the ALT attribute is given by the author. It also provides information for an image if the user cannot view it from different reasons. If you move the mouse cursor over the image, will appear the text written in the ALT attribute like in the following example: <IMG SRC=&quot;html.png&quot; alt=&quot;logohtml&quot;>
  • 17. To specify the dimension of an image we use the height and width attributes. The attribute values are specified in pixels by default but they also can be represented as a percentage. Example: <IMG SRC=&quot;html.png&quot; alt=&quot;logohtml&quot; width=&quot;320&quot; height=&quot;240&quot;>
  • 18. For align an image we are using ALIGN and VALIGN attributes. Functionality of these attributes are: Align (horizontal alignment): right left center Valign (vertical alignment): top bottom center
  • 19. To create an unordered list we should use tags like <UL> and </UL> (names of these tags comes from &quot;unordered list&quot;). Each list item should be inserted by the tag <LI> (list item). For a better understanding let's see how HTML code for the list above looks like: <HTML> <HEAD> <TITLE>Lists</TITLE> </HEAD> <BODY> <UL>Unordered list <LI>List element 1 <LI>List element 2 <LI>List element 3 </UL> </HTML> HTML lists can be ordered or unordered: List element 1 List element 3 List element 2
  • 20. To create an ordered list we should use tags like <OL> and </OL>. Instead of numbers you can replace them with Roman numbers or letters, both capital and lower-case. Use the TYPE attribute to change the numbering like in the following example: <OL TYPE=&quot;a&quot;> <OL TYPE=&quot;A&quot;> <OL TYPE=&quot;i&quot;> <OL TYPE=&quot;I&quot;>
  • 21. START is another attribute of the ordered lists and this specifies the number or letter with which the list would start. <OL TYPE=&quot;1&quot; START=&quot;3&quot;> <LI>List element 1 <LI>List element 2 <LI>List element 3 </OL> <OL TYPE=&quot;a&quot; START=&quot;5&quot;> <LI>List element 1 <LI>List element 2 <LI>List element 3 </OL>
  • 22. HTML tables can be defined by using <TABLE> tag. A table in HTML contains rows, defined by the <TR> tag, and cells, defined by the <TD> tag. <TR> tag comes from &quot;table row&quot; while <TD> comes from &quot;table data&quot;. A <TD> tag can contain text, images, links, lists, forms and other tables. Let's see an example for a simple table: <TABLE BORDER=&quot;1&quot;> <TR> <TD>Cell 1</TD> <TD>Cell 2</TD> </TR> </TABLE> The BORDER attribute will specify how thick the border will be. If we don't specify a border attribute, the table will be displayed without borders. The color border can be set by using BORDERCOLOR attribute.
  • 23. Can be defined by: Table HEIGHT - is a table attribute that defines the height of the table. The value of this attribute can be expressed in pixels or percentage of the page; <TABLE HEIGHT=&quot;50&quot;> Table WIDTH - is a table attribute that defines the width of the table. The value of this attribute can be expressed in pixels or percentage of the page; <TABLE WIDTH=&quot;100&quot;>
  • 24. CELLPADDING - offers opportunities of adjusting the white space of the table, that means the distance between cell borders and the content within; CELLSPACING - defines the width of the border;
  • 25. ROWSPAN - it is used to span multiple rows; <TABLE BORDER=&quot;1&quot;> <TR><TD ROWSPAN=&quot;2&quot;>Cell 1</TD> <TD>Cell 2</TD></TR> <TR><TD>Cell 3</TD></TR> </TABLE> COLSPAN - it is used to span multiple columns; <TABLE BORDER=&quot;1&quot;> <TR><TD>Cell 1</TD> <TD>Cell 2</TD></TR> <TR><TD COLSPAN=&quot;2&quot;>Cell 3</TD></TR> </TABLE>
  • 26. HTML frames help us to display multiple html documents in a web page. This frames are independent one of the other. A frameset is a file that specifies how the screen is divided into frames or specifies the WebPages to display in each frame of the main web page. Here we have an example that divides the page into two horizontal frames, one having 30% of the page and other 70%. <FRAMESET ROWS=&quot;30%,*&quot;> </FRAMESET> FRAMESET ROWS - defines the height that each frame will have; FRAMESET COLS - defines the width that each frame will have; FRAME SRC - defines the location of the web page that will be loaded into the frame;
  • 27. FRAMEBORDER - shows the frame border. A zero value hides the border; BORDER - gives the border width; FRAMESPACING - modifies the border width (attribute used on Internet Explorer); Example Frames: <HTML> <HEAD> <TITLE> HTML frames </TITLE> </HEAD> <FRAMESET ROWS=&quot;30%,*&quot; FRAMEBORDER=&quot;2&quot; BORDER=&quot;2&quot;> <FRAME SRC=&quot;title.php&quot;> <FRAMESET COLS=&quot;20%,*&quot; FRAMEBORDER=&quot;2&quot; BORDER=&quot;2&quot;> <FRAME SRC=&quot;menu.php&quot;> <FRAME SRC=&quot;pagecontent.php&quot;> </FRAMESET> </HTML>
  • 28. HTML forms are used to obtain useful information about users such as name, address, e-mail or phone. By these forms users are transferring information to the server. This information is entered by elements like text fields, checkboxes, submit buttons, radio buttons, lists, textarea. To create a form we will use <FORM> tag like in the following example: <FORM> form elements </FORM> One of the most important form element is TYPE attribute of the <INPUT> tag. The attributes of this tag are: TYPE - determine the type of text field. Example: text, textarea or password field; NAME - assign a name field to refer to it later; SIZE - set the field size; MAXLENGHT - maximum number of characters that can be introduced.
  • 29. 1-Text fields Defined by: TYPE=&quot;text&quot;. Example: <FORM> Full name: <INPUT TYPE=&quot;text&quot; NAME=&quot;fullname&quot;> Address: <INPUT TYPE=&quot;text&quot; NAME=&quot;address&quot;> </FORM> 2-Password field Defined by: TYPE=&quot;password&quot;. Example: <FORM> Password: <INPUT TYPE=&quot;password&quot; NAME=&quot;password&quot;> </FORM> 3-Radio buttons Defined by: TYPE=&quot;radio&quot;. Example: <FORM> <INPUT TYPE=&quot;radio&quot; NAME=&quot;choice&quot; VALUE=&quot;yes&quot;> Yes <INPUT TYPE=&quot;radio&quot; NAME=&quot;choice&quot; VALUE=&quot;no&quot;>No </FORM> 4-Check boxes Defined by: TYPE=&quot;checkbox&quot;. Example: <FORM> <INPUT TYPE=&quot;checkbox&quot; NAME=&quot;colors&quot; VALUE=&quot;black&quot;> Black <INPUT TYPE=&quot;checkbox&quot; NAME=&quot;colors&quot; VALUE=&quot;white&quot;>White </FORM
  • 30. 5-Submit button Defined by: TYPE=&quot;submit&quot;. Example: <FORM NAME=&quot;input&quot; ACTION=&quot;mailto:youremail@email.com&quot; METHOD=&quot;get&quot;> NAME: <INPUT TYPE=&quot;text&quot; NAME=&quot;username&quot;> <INPUT TYPE=&quot;submit&quot; VALUE=&quot;submit&quot;> </FORM> 6-Text area T ext area is used as a text edit field where the user can enter comments that will be sent later to the server. The attributes that has to be specified of text area are <ROWS> and <COLUMNS>. Let's see an example: <FORM ACTION=&quot;mailto:youremail@email.com&quot; METHOD=&quot;get&quot;> <TEXTAREA ROWS=&quot;5&quot; COLS=&quot;10&quot; NAME=&quot;textarea&quot;> Your text here </TEXTAREA> </FORM> 7-Drop down lists  To create a drop down list we will use SELECT tag followed by OPTION tags. The OPTION tags represents the available choices for the user. Let's see how to do it: <FORM ACTION=&quot;mailto:youremail@email.com&quot; METHOD=&quot;get&quot;> Which continent you belong? <SELECT NAME=&quot;continent&quot;> <OPTION> Select continent </OPTION> <OPTION> Asia </OPTION> <OPTION> Africa </OPTION> <OPTION> North America </OPTION> <OPTION> South America </OPTION> <OPTION> Antartica </OPTION> <OPTION> Europe </OPTION> <OPTION> Australia </OPTION> </SELECT> </FOR