HTML
HTML
DESIGNING
Hypertext Markup Languages (HTML)
Cascading Style Sheet (CSS)
Java Script
JQuery
Bootstrap
SEO
warm up quiz
what is html?
different between Web design and Web
develop?
what is mark up language, Scripting Language
and Framework?
HTML
INTRODUCTION HTML
HTML
• <!DOCTYPE html>
• <html>
• <head>
• <title> title here </title></head>
• <body>
Website content here </body>
• </html>
The <!DOCTYPE> declaration represents the document type,
and helps browsers to display web pages correctly.
The HTML document itself begins with <html> and ends with
</html>.
Syntax:
Example:
<img> - tag
Src - specific path Attribute
Alt -alternative text attribute
Height - Specified height of Image
Width -Specified width of Image
Class and Id attribute
• Heading 1
• Heading 2
• Heading 3
• Heading 4
• Heading 5
• Heading 6
Why Heading is Important
Search engines use the headings to index the structure and content
of your web pages.
Users often skim a page by its headings. It is important to use
headings to show the document structure.
<h1> headings should be used for main headings, followed by
<h2> headings, then the less important <h3>, and so on.
HTML Paragraphs
The HTML <p> element defines a paragraph.
A paragraph always starts on a new line, and browsers
automatically add some white space (a margin) before
and after a paragraph.
• Syntax:
• <p> text here…</p>
HTML Horizontal Rules
The <hr> tag defines a thematic break in an
HTML page, and is most often displayed as a
horizontal rule.
a paragraph
<tagname style="property:value;">
Bold tag:
bold tag is just offset text conventionally styled in bold.
HTML Quotation
• <blockquote>
• <q>
• <abbr>
• <address>
• <cite>
• <bdo>
<blockquote>
• The HTML <blockquote> element defines a section that is
quoted from another source.
• <blockquote>....</blockqoute>
<q>
The HTML <q> tag defines a short quotation.
<q>....</q>
<abbr>
• The HTML <abbr> tag defines an abbreviation or an acronym,
like "HTML", "CSS", "Mr.", "Dr.", "ASAP", "ATM".
• <cite>...</cite>
<bdo>
• BDO stands for Bi-Directional Override.
• <bdo dir="rtl">......</bdo>
HTML Semantic Elements
• A semantic element clearly describes its meaning to both the
browser and the developer.
• Forum posts
• Blog posts
• User comments
• Product cards
• Newspaper articles
HTML <nav> Element
• The <nav> element defines a set of navigation links.
HTML <header> Element
• The <header> element represents a container for introductory
content or a set of navigational links.
• authorship information
• copyright information
• contact information
• sitemap
• back to top links
• related documents
HTML <aside> Element
• The <aside> element defines some content aside from the
content it is placed in (like a sidebar).
Syntax:
<!-- Write your comments here -->
Comments TYpe
Hide Content
Comments can be used to hide content.
Syntax:
<element style="attribute:value;">Content</element>
Inline CSS
<!DOCTYPE html>
<html>
<body>
<h2 style="color: green;
background: yellow">
Pumo Technovation
</h2>
<p style="color: black">
Happy Preparation!!.
</p>
</body>
</html>
Internal CSS
• An internal CSS is used to define a style for a single HTML
page.
• An internal CSS is defined in the <head> section of an HTML
page, within a <style> element.
element{
attribute:value;
attribute2:value;}
Internal CSS
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
External CSS
• An external style sheet is used to define the style for many
HTML pages.
</body>
</html>
HTML Links
• HTML links are hyperlinks.
• You can click on a link and jump to another document.
Syntax:
<a href="url">link text</a>
By default, links will appear as follows in all browsers:
<body style="background-image:
url('img_girl.jpg');">
HTML Lists
• Unorder List
• Order List
• Description Lists
Unorder List
• An unordered list starts with the <ul> tag. Each list item starts
with the <li> tag.
<ol type="1|I|i|A|a">
<li>value1</li>
<li>value2</li>
<li>value3</li>
</ol>
HTML Description Lists
• A description list is a list of terms, with a description of each
term.
• The <dl> tag defines the description list, the <dt> tag defines
the term (name), and the <dd> tag describes each term
Syntax:
<dl>
<dt>Title</dt>
<dd>- Description</dd>
<dt>Title</dt>
<dd>- Description</dd>
</dl>
HTML Tables
HTML tables allow web developers to arrange data into rows
and columns.
Table Cells
Each table cell is defined by a <td> and a </td> tag.
Table Rows
Each table row starts with a <tr> and end with a </tr> tag.
• Table Headers
• <th> tag using insert the Heading of cells
Example:
<table>
<tr>
<th>Firstname</th>
<td>Jill</td>
<td>Eve</td> </tr>
</table>
HTML Table Padding & Spacing
• HTML Table - Cell Padding
Example:
<th colspan="2">Name</th>
<th rowspan="2">Phone</th>
HTML Forms
What is form?
Where using Form?
which type of inputs we are using?
• An HTML form is used to collect user input. The user input is
most often sent to a server for processing.
• Syntax:
<form>
form elements
</form>
Form Attributes
The Action Attribute
• The action attribute defines the action to be performed
when the form is submitted.
• <input type="button">
• <input type="checkbox">
• <input type="color">
• <input type="date">
• <input type="datetime-local">
• <input type="email">
• <input type="file">
• <input type="hidden"> • <input type="search">
• <input type="image"> • <input type="submit">
• <input type="month"> • <input type="tel">
• <input type="number"> • <input type="text">
• <input type="password"> • <input type="time">
• <input type="radio"> • <input type="url">
• <input type="range"> • <input type="week">
• <input type="reset">
HTML Input Attributes
• value • multiple
• readonly • pattern
• disabled • placeholder
• size • required
• maxlength • step
• min and max • autofocus
• height and width
HTML <select> Tag
drop-down list
<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>