HTML5&CSS3 B
HTML5&CSS3 B
EMPLOYABILITY
by K.Rasagnya
www.task.telangana.gov.in
EDUCATION
Introduction :
• HTML is the language in which most websites are written. HTML is used to
EMPLOYABILITY
www.task.telangana.gov.in
EDUCATION
Introduction :
• HTML is the standard markup language for creating web pages and web applications.
• It is used to describe the structure of the web pages using a process called markup.
• HTML elements label pieces of content such as “this is heading”, “this is paragraph”, “this
is a link”, etc.
www.task.telangana.gov.in
EDUCATION
Introduction :
• HTML was first created by Tim Berners-Lee and others starting in 1989.
EMPLOYABILITY
• Hypertext means that the document contains links that allow the reader to jump to other
places in the document or to another document altogether. The latest version is known
as HTML5.
ENTREPRENEURSHIP
• A Markup Language is a way that computers speak to each other to control how text is
processed and presented.
www.task.telangana.gov.in
EDUCATION
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
ENTREPRENEURSHIP
</head>
<body>
Content of the document
</body>
</html>
www.task.telangana.gov.in
EDUCATION
DOCTYPE Declaration :
• It must appear once, at the top of the page before any HTML tags.
• HTML <!DOCTYPE> tag is used to inform the browser about the version of HTML used in
the document.
ENTREPRENEURSHIP
Syntax :
• <!DOCTYPE html>
www.task.telangana.gov.in
EDUCATION
• All HTML documents must start with the document type declaration.
EMPLOYABILITY
• HTML document itself begin with <html> and end with </html> (which
tells the browser that this is an HTML page)
• Head tag which contains meta information about the document. The head
ENTREPRENEURSHIP
normally also contains a link to the styling sheets, the fonts etc. head tag
also has the title element which specifies the title for the document and can
be seen as the text on the tab that open on a browser.
www.task.telangana.gov.in
EDUCATION
• The visible part(content that is visible the viewer of page) of the HTML
EMPLOYABILITY
www.task.telangana.gov.in
EDUCATION
HTML Editors :
• A simple text editor is all you need to learn HTML.
Notepad for PC (or) notepad++ ,sublime text, visual studio code.
EMPLOYABILITY
www.task.telangana.gov.in
EDUCATION
• Tags are used to mark up the start of an HTML element and they are usually enclosed in angle
EMPLOYABILITY
• Most tags must be opened <h1> and closed </h1> in order to function.
HTML Attributes:
ENTREPRENEURSHIP
• Attributes contain additional pieces of information. Attributes take the form of an opening tag
and additional info is placed inside.
www.task.telangana.gov.in
EDUCATION
HTML HEADINGS :
EMPLOYABILITY
• HTML headings are titles or subtitles that you want to display on a webpage.
www.task.telangana.gov.in
EDUCATION
HTML HEADINGS :
Example :
EMPLOYABILITY
<!DOCTYPE html>
<html>
<body>
<h1>First Heading TASK</h1>
<h2>Second Heading TASK</h2>
<h3>Third Heading TASK</h3>
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
HTML HEADINGS :
Note :
EMPLOYABILITY
• Browsers automatically add some white space (a margin) before and after a heading.
• Search engines use the headings to index the structure and content of your webpage.
• Use HTML headings for headings only. Don’t use headings to make text big or bold.
ENTREPRENEURSHIP
• However, you can specify the size for any heading with the style attribute, using the CSS
font-size property.
• Ex : <h1 style = “font-size : 50px;”> TASK </h1>
www.task.telangana.gov.in
EDUCATION
HTML PARAGRAPHS :
EMPLOYABILITY
• Browsers automatically add some white space (a margin) before and after a
paragraph.
www.task.telangana.gov.in
EDUCATION
HTML PARAGRAPHS :
EMPLOYABILITY
• Example :
<!DOCTYPE html>
<html>
<body>
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
HTML Elements :
• HTML element is defined by a start tag, some content and an end tag.
EMPLOYABILITY
• The HTML element is everything from the start tag to the end tag.
• Syntax :
• Some HTML elements have no content ( br element). These elements are called empty elements.
www.task.telangana.gov.in
EDUCATION
• HTML elements can be nested (this means that element can contain other elements).
EMPLOYABILITY
• Example :
<!DOCTYPE html>
<html>
ENTREPRENEURSHIP
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
www.task.telangana.gov.in
EDUCATION
1. The <html> element is the root element and it defines the whole HTML document.
EMPLOYABILITY
2. Then inside the <html> element there is a <body> element. It defines the documents body.
3. Then inside the <body> element there are two other elements <h1> and <p>.
heading : h1 paragraph : p
Important points :
• tags must be opened (<tag>) and closed (</tag>).
EMPLOYABILITY
• Never skip the end tag because unexpected errors may occur.
• When using multiple tags, the tags must be closed in the order in which they were opened.
• For example :
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
HTML Display :
• Large or small screens, and resized windows will create different results.
• With HTML, you cannot change the display by adding extra spaces or extra
ENTREPRENEURSHIP
• The browser will automatically remove any extra spaces and lines when the
page is displayed.
www.task.telangana.gov.in
EDUCATION
• The <hr> element is used to separate content (or define a change) in an HTML page.
ENTREPRENEURSHIP
• <hr> tag is an empty tag, which means that it has no end tag.
www.task.telangana.gov.in
EDUCATION
<!DOCTYPE html>
<html>
<body>
<h1>Heading 1</h1>
EMPLOYABILITY
<p>paragraph.</p>
<hr>
<p>TASK Information…..</p>
<hr>
www.task.telangana.gov.in
EDUCATION
• Use <br> if you want a line break (a new line) without starting a new paragraph.
• The <br> tag is an empty tag, which means that it has no end tag.
ENTREPRENEURSHIP
• Ex :
www.task.telangana.gov.in
EDUCATION
The text inside a <pre> element is displayed in a fixed-width font (usually courier) and it preserves both spaces and line breaks.
TASK TASK
TELANGANA TELANGANA
</p> </pre>
• output : TASK TELANGANA • output : TASK
TELANGANA
www.task.telangana.gov.in
EDUCATION
HTML contains several elements for defining text with a special meaning.
EMPLOYABILITY
1. b : bold text
4. i : Italic text
5. em : Emphasized text
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
EDUCATION
14. blockquote : it is same as <p> but left spacing will be given. In <p> the
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
COMMENT LINES :
EMPLOYABILITY
(-->).
www.task.telangana.gov.in
EDUCATION
• The links destination is specified in the href attribute (attributes are used to provide
ENTREPRENEURSHIP
• If the element has an href attribute, then it represents a hyperlink (a hypertext anchor).
www.task.telangana.gov.in
EDUCATION
HTML Images :
• Attributes :
1. Source file (src)
2. Alternate text (alt)
3. Width
4. height
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
EDUCATION
IMAGE Element :
• The image given by the src attributes is the embedded content; the value of the alt attribute
EMPLOYABILITY
provides equivalent content for those who cannot process images or who have image
loading disabled.
• The requirements on the alt attribute's value are described in the next section.
ENTREPRENEURSHIP
• The src attribute must be present, and must contain a valid non-empty URL potentially
surrounded by spaces referencing a non-interactive, optionally animated, image resource
that is neither paged nor scripted.
www.task.telangana.gov.in
EDUCATION
IMAGE
• The border property is used to set the width of an image border.
EMPLOYABILITY
<body>
<img style = "border:0px;" src = "/css/images/logo.png" /> <br />
<img style = "border:3px dashed red;" src = "/css/images/logo.png" />
</body>
</html>
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
EDUCATION
LISTS
• HTML lists are defined with the <ul> (unordered/bullet list) or the <ol> (ordered/numbered list) tag,
followed by <li> tags (list items)
EMPLOYABILITY
• <ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
ENTREPRENEURSHIP
</ul>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
www.task.telangana.gov.in
EDUCATION
LISTS Element:
• The ol element represents a list of items, where the items have been intentionally ordered,
EMPLOYABILITY
such that changing the order would change the meaning of the document.
• The items of the list are the li element child nodes of the ol element, in tree order.
• The ul element represents a list of items, where the order of the items is not important —
that is, where changing the order would not materially change the meaning of the document.
ENTREPRENEURSHIP
• The items of the list are the li element child nodes of the ul element
• The li element represents a list item. If its parent element is an ol, ul, or menu element, then
the element is an item of the parent element's list, as defined for those elements.
www.task.telangana.gov.in
EDUCATION
• <DL> and <DD> tags can be used to define a list of definitions, where each DD (Definition
EMPLOYABILITY
Description) defines an item. The Item can be replaced with an image to create a user defined
bullets list.
<body>
<dl>
ENTREPRENEURSHIP
</dl>
</body>
www.task.telangana.gov.in
EDUCATION
• The dl element represents an association list consisting of zero or more name-value groups (a
description list). Each group must consist of one or more names (dt elements) followed by one or
EMPLOYABILITY
more values (dd elements). Within a single dl element, there should not be more than
one dt element for each name.
• The dt element represents the term, or name, part of a term-description group in a description list
ENTREPRENEURSHIP
(dl element).
• The dd element represents the description, definition, or value, part of a term-description group
in a description list (dl element).
www.task.telangana.gov.in
EDUCATION
AUDIO TAG :
Ex : <audio src="cardinal-37075.mp3"></audio>
• Your browser does not support the HTML5 audio element. If above code is written, no
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
AUDIO TAG :
• controls : If this attribute is present, it will allow the user to control audio playback,
including volume, seeking, and pause/resume playback.
• loop : This Boolean attribute if specified, will allow audio automatically seek back to the
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
EDUCATION
VIDEO TAGS
EMPLOYABILITY
• Controls : If this attribute is present, it will allow the user to control video
playback, including volume, seeking, and pause/resume playback.
www.task.telangana.gov.in
EDUCATION
TABLE Element :
EMPLOYABILITY
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
EDUCATION
TABLE EXAMPLE:
• <table>
EMPLOYABILITY
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
ENTREPRENEURSHIP
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
www.task.telangana.gov.in
EDUCATION
• Cells can span across multiple rows and columns. ROWSPAN=“n” and COLSPAN=“n” attributes can be used for this purpose,
where n is the number of rows/cols to merge.
<tr>
EMPLOYABILITY
<th>Name</th>
<td> Rasagnya </td>
</tr>
<tr>
<th ROWSPAN="2"> >Phone </th>
ENTREPRENEURSHIP
<td>123</td>
</tr>
<tr>
<td>456</td>
</tr>
www.task.telangana.gov.in
EDUCATION
• The tbody element represents a block of rows that consist of a body of data for the parent table
EMPLOYABILITY
• The thead element represents the block of rows that consist of the column labels (headers) for
the parent table element, if the thead element has a parent and it is a table.
• The tfoot element represents the block of rows that consist of the column summaries (footers)
ENTREPRENEURSHIP
for the parent table element, if the tfoot element has a parent and it is a table.
www.task.telangana.gov.in
EDUCATION
PROGRESS Element:
• The progress element represents the completion progress of a task. The progress is either
EMPLOYABILITY
indeterminate, indicating that progress is being made but that it is not clear how much more work
remains to be done before the task is complete (e.g. because the task is waiting for a remote host to
respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that
has so far been completed.
ENTREPRENEURSHIP
• There are two attributes that determine the current task completion represented by the element. The
value attribute specifies how much of the task has been completed, and the max attribute specifies
how much work the task requires in total.
www.task.telangana.gov.in
EDUCATION
• The details element represents a disclosure widget from which the user can obtain
EMPLOYABILITY
• The summary element child of the element, if any, represents the summary or legend of the
details.
<details>
ENTREPRENEURSHIP
<p>Velocity: 12m/s</p>
<p>Direction: North</p>
</details>
www.task.telangana.gov.in
EDUCATION
BDO Element:
control .
• must specify the dir attribute on this element, with the value ltr to
specify a left-to-right override and with the value rtl to specify a right-
ENTREPRENEURSHIP
to-left override.
• <bdo dir=“ltr”>TASK</bdo>
www.task.telangana.gov.in
EDUCATION
ABBR Element:
www.task.telangana.gov.in
MARQUEE Element:
EDUCATION
• The <marquee> tag in HTML is used for creating scrolling text or image in a webpages. It scrolls either
from horizontally left to right or right to left, OR vertically top to bottom or bottom to top.
• Direction
• Scrollamount
• Height
ENTREPRENEURSHIP
• Width
• bgcolor
• Scrolldelay
• Loop
www.task.telangana.gov.in
EDUCATION
MARQUEE Element:
www.task.telangana.gov.in
EDUCATION
ADDRESS ELEMENT :
• The address element represents the contact information for its nearest article or body element.
EMPLOYABILITY
• If that is the body element, then the contact information applies to the document as a whole the address element
<footer>
</address>
</footer>
www.task.telangana.gov.in
EDUCATION
HEADER ELEMENT :
• A header element is intended to usually contain the section's heading (an h1–h6 element or an hgroup element)
<header>
<div>
</div>
</header>
www.task.telangana.gov.in
EDUCATION
FOOTER ELEMENT :
EMPLOYABILITY
• The footer element represents a footer for its nearest ancestor sectioning content or
sectioning root element. A footer typically contains information about its section such as
who wrote it, links to related documents, copyright data etc.
• When the footer element contains entire sections, they represent appendices, indexes, long
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
FOOTER ELEMENT:
<footer style="background-color:pink;">
<h2>Details of College</h2>
EMPLOYABILITY
<div>House No 11-13-1428&1429</div>
<div>Nh-9, Kothapet</div>
<div>Hyderabad - 500035</div>
ENTREPRENEURSHIP
</address>
</footer>
www.task.telangana.gov.in
EDUCATION
SECTION ELEMENT:
<section>
<h1>Red Delicious</h1>
<p>These bright red apples are the most common found in many supermarkets.</p>
</section>
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
NAV Element:
• The nav element represents a section of a page that links to other pages or to parts within the
EMPLOYABILITY
page.
<nav>
<h1>Navigation</h1>
<ul>
ENTREPRENEURSHIP
</ul>
</nav>
www.task.telangana.gov.in
EDUCATION
FRAME Element:
EMPLOYABILITY
• HTML frames are used to divide your browser window into multiple sections where
each section can load a separate HTML document. A collection of frames in the
browser window is known as a frameset. The window is divided into frames in a
similar way the tables are organized: into rows and columns.
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
FRAME Element :
EMPLOYABILITY
• To use the frameset, we need to remove body tag because frameset is used to divide the body
into different sections(frames).
• frame tag is unpaired tag(both opening and closing will be one tag)
<frame/>
www.task.telangana.gov.in
EDUCATION
!DOCTYPE html>
<html>
<head>
EMPLOYABILITY
<title>Frames Shivani</title>
</head>
<frameset rows = "20%,80%" border="1">
<frame name="f1" src="headingofCollege.html"/>
ENTREPRENEURSHIP
<frameset cols="30%,*">
<frame name="f2" src="aboutcollege.html"/>
<frame name="f3" src="frame2details.html"/>
</frameset>
</frameset>
</html> www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
• An HTML Form is used to collect user input. The user input is more often
EMPLOYABILITY
• The HTML <form> element is used to create an HTML form for user
input.
ENTREPRENEURSHIP
<form>
form elements
</form>
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
• The label represents a caption in a user interface. The caption can be associated with a specific
form control, either using for attribute, or by putting the form control inside the label element
ENTREPRENEURSHIP
itself.
• It is useful for screen-reader users, because the screen-readers will read out loud the label when
the user focus on the input element.
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
The input element represents a typed data field, usually with a form control to
allow the user to edit the data.
ENTREPRENEURSHIP
An <input> element can be displayed in many ways, depending on the type
attribute.
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT
elements.
1. Text fields
2. Checkboxes
ENTREPRENEURSHIP
3. Radio buttons
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
EMPLOYABILITY
Type Description
<input type=“text”> Displays a single line text input field
<input type=“radio”> Displays a radio button (for selecting one of many choices)
<input type=“checkbox”> Displays a checkbox(for selecting zero or more of many
choices)
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
• If you give value, you need to erase that and give the new name.
EMPLOYABILITY
<label>First Name</label>
<label>First Name</label>
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
<form>
EMPLOYABILITY
<body bgcolor="lightblue">
<center><h1>Shivani College Registration Form</h1></center>
<hr>
<fieldset>
ENTREPRENEURSHIP
<legend><h3><mark>Student Details</mark></h3></legend>
<label>First Name</label>
<input type="text" value=“Enter First Name"><br>
</form>
www.task.telangana.gov.in
EDUCATION
FORM ELEMENT :
<form>
EMPLOYABILITY
<body bgcolor="lightblue">
<center><h1>Shivani College Registration Form</h1></center>
<hr>
<fieldset>
ENTREPRENEURSHIP
<legend><h3><mark>Student Details</mark></h3></legend>
<label>First Name</label>
<input type="text" placeholder=""><br>
</form>
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
fieldset
EDUCATION
www.task.telangana.gov.in
EDUCATION
• The input element represents a control for editing a telephone number given in the element's value.
(or)
<label>Mobile :</label>
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
forms a radio button group in which only one control can have its checkedness state set to true.
• If the element's checkedness state is true, the control represents the selected control in the group,
and if it is false, it indicates a control in the group that is not selected.
• The name attribute should be same because we need to select one thing from multiple things.
ENTREPRENEURSHIP
• Ex :
<br>
<br>
www.task.telangana.gov.in
EDUCATION
• The input element represents a control for setting the element's value to a
EMPLOYABILITY
Dob:
ENTREPRENEURSHIP
<input type="date"><br><br>
www.task.telangana.gov.in
EDUCATION
www.task.telangana.gov.in
EDUCATION
specified or not.
Email:<input type="email">
URL STATE (TYPE=URL) :
ENTREPRENEURSHIP
• The input element represents a control for editing a single absolute URL given in
the element's value.
Link:<input type="url">
www.task.telangana.gov.in
EDUCATION
• The input element represents a list of selected files, each file consisting of a
file name, a file type, and a file body (the contents of the file).
www.task.telangana.gov.in
EDUCATION
• The input element represents a one line plain text edit control for the
element's value. The user agent should obscure the value so that people other than
the user cannot see it.
ENTREPRENEURSHIP
Password:<input type="password">
www.task.telangana.gov.in
EDUCATION
The input element represents a control for setting the element's value to a string
EMPLOYABILITY
datetime:<input type="datetime-local">
The input element represents a control for setting the element's value to a string
representing a specific month.
Month:<input type="month">
www.task.telangana.gov.in
EDUCATION
• The input element represents a control for setting the element's value to a string
EMPLOYABILITY
week:<input type="week">
The input element represents a control for setting the element's value to a string
representing a specific time
time:<input type="time">
www.task.telangana.gov.in
EDUCATION
• The input element represents a control for setting the element's value to a
string representing a number.(accepts only numbers)
Numbers:<input type="number">
ENTREPRENEURSHIP
www.task.telangana.gov.in
EDUCATION
• The input element represents a control for setting the element's value to a
string representing a number, but with the caveat that the exact value is not
important, letting UAs provide a simpler interface than they do for
the Number state.
ENTREPRENEURSHIP
range:<input type="range">
www.task.telangana.gov.in
EDUCATION
• The input element represents a color well control, for setting the
element's value to a string representing a simple color.
www.task.telangana.gov.in
EDUCATION
• The input element represents a button that, when activated, submits the form. The element
EMPLOYABILITY
submit:<input type="submit">
• The input element represents either an image from which a user can select a coordinate and
submit the form, or alternatively a button from which the user can submit the form. The
element is a button, specifically a submit button.
Image:<input type="image" src="TASK_LOGO.jpg" width="100px" height="100px">
www.task.telangana.gov.in
EDUCATION
District/Country/Qualification/Branch/ :
<select>
EMPLOYABILITY
<option>select District</option>
<option>Hyderabad</option>
<option>Warangal</option>
ENTREPRENEURSHIP
<option>karimnagar</option>
</select>
www.task.telangana.gov.in
EDUCATION
• The input element represents a button that, when activated, resets the form. The element is
EMPLOYABILITY
a button.
reset:<input type="reset">
• The input element represents a button with no default behavior. A label for the button must be
provided in the value attribute, though it may be the empty string. The element is a button.
<button type="submit">Register</button>
<button type="reset">Reset</button>
www.task.telangana.gov.in
Keyword State Datatype Control
EDUCATION
type
zone
datetime-local Local Date and Time A date and time (year, A date and time
month, day, hour, control
minute, second,
fraction of a second)
with no time zone
ENTREPRENEURSHIP
Control type
datetime Date and Time A date and time A date and time
(year, month, day, control
hour, minute,
second, fraction of a
EMPLOYABILITY
zone
month Month A date consisting of A month control
a year and a month
with no time zone
week Week A date consisting of A week control
a week-year number
and a week number
with no time zone
www.task.telangana.gov.in
EDUCATION
breaks
www.task.telangana.gov.in
EDUCATION
blue components
www.task.telangana.gov.in
EDUCATION
EMPLOYABILITY
ENTREPRENEURSHIP
Thank you
www.task.telangana.gov.in