HTML Freshers
HTML Freshers
JSPIDERS
1
CSE/ISE/MCA/BCA MECH/CIVIL ECE/EEE/TC
Scratch
2
Course Outline
❑ HTML Image
❑ What is HTML?
❑ HTML List
❑ Features of HTML
❑ HTML Table
❑ History of HTML
❑ HTML Form
❑ HTML Tags
❑ Requirements
❑ HTML Attributes
❑ Upcoming Batches
❑ Structure of HTML
❑ Placed Candidates
❑ HTML Paragraph and Break
2
What is WEB Technologies ?
First name of JS
3
Difference between HTML ,CSS and JS
3
History of Html
10
What is HTML?
• HTML describes the structure of web pages
HTML
• HTML tags begin with the less-than (<) character and end with greater-than (>).
11
Types of Tags
12
Paired Tags/Closed Tags
• Paired tags have an opening and closing tag.
• The opening tag is similar to the single tag , and the closing has forward slash.
• Between an opening and closing tag, write some content (text, images or something else).
• Content can be other tag also.
Element 13
Unpaired Tags/Self-closing Tags
• Unpaired tag has both opening and closing tag in a single tag.
<br/>
Note: Forward slash is not mandatory for unpaired tags. Unpaired tags also known as empty elements.
14
Attributes
15
Structure of HTML
• The <!DOCTYPE> declaration must be the
<!DOCTYPE html> 1 very first thing in your HTML document.
R
<html> • It indicates Version Information( HTML5)
o
<head>
• <head> tag is used to contain specific information about
o </head> 2 a web page
t
E
l
e
m <body> • The <body> tag defines the document's body.
e 3 • The <body> element contains all the contents of an
n </body> HTML document, such as headings, paragraphs, images,
t </html> hyperlinks, tables, lists, etc.
16
Head Tag
<head> • The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data.
• Metadata will not be displayed on the page, but is machine parsable.
<meta/> • Metadata is used by browsers (how to display content or reload page), search engines (keywords), and other web services.
</head> • But good practice is to use it inside the <body> as the last tag
17
Paragraph <p> and Break <br> Tag
18
Headings
• The heading tag is used in HTML to define headings of a page.
• Headings are defined by <hn>.
• “n” being a number between 1 and 6.
• <h1>, <h2>,<h3>,<h4>,<h5> and <h6> are the different types of headings.
• Heading <h1> defined the most important heading and <h6> define most
least heading.
• <h1> text is big in size and <h2> text is smaller than <h3> text and <h4> text
is smaller than <h5> text and so on..
19
Image Tag and Attributes <img>
• <img> tag used to display images on web page.
20
List
• Html list are used to arrange HTML elements in list format. Html provide three types of list.
• Ordered List or Numbered List (<ol>).
• Unordered List or Bulleted List (<ul>).
• Description list <dl>. Note: Not Required
• The <li> tag is used inside ordered lists (<ol>), unordered lists (<ul>).
• <li> tag defines a list item.
21
Marquee Tag <marquee>
• Marquee tag are used for display the moving content on the web browser.
22
Table , Tr , Th, Td Tags
23
Table and td/th Attributes
Sl No Attribute Name Parameter/Values Description
1 Border PX,% To apply Border to the table
2 Cellspacing PX,% To apply space between cells
3 Cellpadding PX,% To apply space between content and border of cell
4 Rules Rows,Cols,all To represent table in the form of rows and colomns
5 Height PX , % To increase or decrease the height.
6 Width PX , % To increase or decrease the width.
<td> or <th>
1 Valign Middle(Default),Top,Bottom To align the Content Verticaly
Is used to specify the number of columns a cell
2 Colspan Any Number
should span(merge)
Is used to specify the number of rows a cell should
3 Rowspan Any Number
span(merge)
24
Anchor Tag <a> (Hyperlinks)
• <a> tag is used to create Hyperlinks that allow the users to navigate from one page to
another.
Sl No Attribute Name Parameter/Values Description
1 Href Url/File Name Href attribute specifies the destination address
25
Forms <form>
• HTML Forms are required, when you want to collect some data from the user.
• Forms contains controls such as text fields, email field, password fields, checkboxes, button, radio buttons, submit button, menus etc
• For example when you fill the registration form lot of information given by user and these information server get from web page using
form element..
26
Input Tag <input>
Sl No Attributes Name Parameter/Values
Text, Password, Submit, Reset, URL, Email, Radio , Button, Checkbox ,Date, Time, File
1 Type
, Number, Week,Color
2 Placeholder Any Name
3 Value Any Name
4 Name Any Name
5 Id Any Name
6 Size PX,%
7 Maxlength Any Number
8 Minlength Any Number
9 Required
10 Checked
11 Disabled
27
Select and Textarea
• Select <select>
Sl No Attributes Name Parameter/Values Description
• Textarea <textarea>
28
Form Tag Attributes <form>
2 Any Name
Name
3 Target _Parent(Default),_Blank
4 Method Get(Default),Post
29