This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
HTML5 HTML 1. It stands for Hyper Text Markup Language and is used to create a website. 2. It describes the structure of Web pages using markup. 3. It elements/tags are the building blocks of HTML pages. 4. It tags label pieces of content such as "heading", "paragraph", "table", and so on. Browsers do not display the HTML tags, but use them to render the content of the page. STRUCTURE OF HTML
EXAMPLE Page Title
This is a Heading
This is a paragraph.
Explanation
Wisdom Materials
It declares document to be HTML. It is the root element of an HTML page. It contains meta information about the document. It is the title of the document. It contains the visible page content. It is the large heading. It declares the paragraph. 1
HTML5 HTML TAGS Tag Name Headings
Paragraph Anchor
Description Used to display heading with different fonts.
_blank - Opens the linked document in a new window or tab _self - Opens the linked document in the same window/tab as it was clicked (this is default) Used Displays Image on webpage. type="1" Ordered type="A"
Coffee
type="a"
Tea
type="I"
Milk
type="i" Unordered Value Descriptio
disc bullet
Coffee
circle circle
Tea
square square
Milk
none not be
marked Give a horizontal line. <meta charset="UTF-8">
New Line Pre Quotations
<pre>1 2 3 4 Quotations
Image
Button Lists It is a collection of items. Types of Lists 1. Ordered. 2. Unordered.
Wisdom Materials
Details
Links to that site (abcd.com). tar_parent - Opens the linked document in the parent frame _top - Opens the linked document in the full body of the window get="_blank"
Character Encoding Singleton tag 1234
2
HTML5 Comment Div Link
It is used as a Positioning element.
Positions element
It defines contact information of document owner of an article and is displayed in italic.
Positions element Used to link files. Wisdom Materials, Hyderabad
Wisdom Materials, Hyderabad It is display the text from left to right. text is written from right to left
HTML FORMATTING ELEMENTS Bold text Bold text Important text <strong>Important text Italic text Italic text Emphasized text <em>Emphasized text Marked text <mark>Marked text Small text <small>Small text Deleted text <del>Deleted text Inserted text Inserted text Subscript text
It is <sub>subscripted text.
Superscript text
It is <sup>superscripted text.
IMAGE MAPS Here Image is divided into number of regions called as hot spots. Each hotspot is a links to a different resource / site. Example <map name="workmap"> <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm"> <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm"> <area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm"> Nested HTML Elements It means one tag inside other.
Wisdom Materials
3
HTML5 HTML TABLE Tag Description
Defines a table
Defines a header cell in a table
Defines a row in a table
Defines a cell in a table
Defines a table caption
Specifies a group of one or more columns in a table for formatting
Specifies column properties for each column within a
element
Groups the header content in a table
Groups the body content in a table Groups the footer content in a table COLSPAN AND ROWSPAN ATTRIBUTES The cellspacing attribute defines space between table cells, while cellpadding represents the distance between cell borders and the content within a cell. COLSPAN AND ROWSPAN ATTRIBUTES You will use colspan attribute if you want to merge two or more columns into a single column. Similar way you will use rowspan if you want to merge two or more rows. HTML Tables
Rows and Columns
Column1
Column2
Row 2 Cell 1
Row1, Column1
Row1, Column2
Row2, Column1
Row2, Column2
Row 3 Cell 1
Wisdom Materials
4
HTML5 HTML Form Elements or WEB FORMS 2.0 Elements Type Description Text Password Checkbox Male Radio Submit 1. File Image Hidden <select> <select> Select Textarea Button FORM ATTRIBUTES