Table HTML
Table HTML
Forms
01
Module – 2 : HTML Tables and Forms 4
Objectives
1 Introducing Tables
2 Styling Tables
3 Introducing Forms
4 FormControl
Elements
5 TableandForm
Accessibility 6 Microformats
INTRODUCING TABLES
17CS71-WTA Module – 2 : HTML Tables and
HTML Tables
A grid of cells
•Text
•Links
•Other tables
th
• Popular in 1990s
• Results in table
bloat
• Not semantic
• Larger HTML
pages
• Browser quirks
STYLING TABLES
17CS71-WTA Module – 2 : HTML Tables and
Styling Tables
The old way’sdeprecated
INTRODUCING FORMS
17CS71-WTA Module – 2 : HTML Tables and
HTML Forms
Richer wayto interact with server
• Password input
• Options Lists
• POST
<datalist> An HTML5 element form defines lists to be used with other form elements.
<input> Defines an input field. HTML5 defines over 20 different types of input.
textarea Creates a multiline text entry box. <textarea rows="3" ... />
password Creates a single line text entry box for a password <input type="password" ... />
search Creates a single-line text entry box suitable for a search string. This is an HTML5 element.
email Creates a single-line text entry box suitable for entering an email address. This is an HTML5
element.
datalist
<input type="image"> Creates a custom submit button that uses an image for
its
display.
<button> Creates a custom button. The <button> element
differs
from <input type="button"> in that you can
completely customize what appears in the button;
using it, you can, for instance, include both images
and text, or skip server-side processing entirely by
using hyperlinks.
You can turn the button into a submit button by using
the type="submit" attribute.
• <input type=hidden>
• <input type=file>
date Creates a general date input control. The format for the date is "yyyy-mm-dd".
time Creates a time input control. The format for the time is "HH:MM:SS", for
hours:minutes:seconds.
datetime Creates a control in which the user can enter a date and time.
datetime-local Creates a control in which the user can enter a date and time without specifying a time
zone.
month Creates a control in which the user can enter a month in a year. The format is "yyyy-
mm".
week Creates a control in which the user can specify a week in a year. The format is "yyyy-
W##".
Not all web users are able to view the content on web
pages in the same manner.
The term web accessibility refers to the assistive
technologies, various features of HTML that work with
those technologies, and different coding and design
practices that can make a site more usable for people
with visual, mobility, auditory, and cognitive disabilities.
In order to improve the accessibility of websites, the
W3C created the Web Accessibility Initiative (WAI)
• Web Content Accessibility Guidelines
MICROFORMATS
17CS71-WTA Module – 2 : HTML Tables and
Microformats
3 Introducing Forms
4 FormControl
Elements
5 TableandForm
Accessibility 6 Microformats
A D V A N C ED CSS: LAYOUT
17CS71-WTA Module – 2 : HTML Tables and Forms - 2nd
Approaches to CSS Layout
Fixed Layout
1. Liquid layouts
2. Setting viewports via the <meta> tag
3. Customizing the CSS for different viewports
using media queries
4. Scaling images to the viewport size
<head>
<link href="bootstrap.css” rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-2">
left column
</div>
<div class="col-md-7">
main content
</div>
<div class="col-md-3">
right column
</div>
</div>
</div>
</body>