HTML
HTML
Internet : it is a vast network that can connect computers all over the world.
WEB page : it is a document, commonly created using HTML, that is viewed in browser
HTML 5
introduction
structure of html
tags
attributes
List
how to create
attributes
example
Audio/video
attributes
I-frames
TABLE
attributes of table
forms
how to create
attributes
examples
different shapes
rect
circlepoly
attributes
HTML
What is HTMl ?
- We are using the html to creaye the structure of the web pages.
- with the help of html5 we can create only static web pages.
- we have to save the file with .html extension to run in the browser.
<head>
<body>
</html>
What is a tags ?
-inside the < > all the predefined keywords in html , we'll call it it as tags.
1) single tag : if you open any tag , then their is no need of closing that tag .
ex : </br>
2) double tag : if you open any tag , then mandatorily you should close that tag .
Attributes :
Attributes Parameter
Heading tags :
2) <h2> </h2>
3) <h3> </h3>
4) <h4> </h4>
5) <h5> </h5>
Paragraph Tag :
Paragraphs allow you to add text to a document in such a way that it will automatically adjust the end of
o suite the window size of the browser in which it is being displayed. Each line of text will stretch the
entire
Break tag :
Line breaks allow you to decide where the text will break on a line or continue to the end of the window.
A <BR> is an empty Element, meaning that it may contain attributes but it does not contain content.
Line breaks allow you to decide where the text will break on a line or continue to the end of the window.
A <BR> is an empty Element, meaning that it may contain attributes but it does not contain content.
The <HR> element causes the browser to display a horizontal line (rule) in your document.
if our text has to be present below the usual text <SUB> </SUB>
if our text has to be present above the usual text <SUP> </SUP>
Image tag :
<img>:
<img> tag.
Attributes Parameter
2. height px
3. width px
Hyperlink :
Attributes Parameter
2. target parent(default),blank
Scrolling Text
<marquee></marquee>
Attributes Parameter
2. height px, %
3. width px, %
4. direction left(default),right,up,down
6. scrollamount number
7. scrolldelay seconds
These Characters are recognized in HTML as they begin with an ampersand and end with with a semi-
colon e.g. &value;
The value will either be an entity name or a standard ASCII character number. They are called escape
sequences.
The next table represents some of the more commonly used special characters.
List
Objectives
1. Order list(<ol></ol>): Items in this list are numbered automatically by the browser.
Attributes Parameters
1. types Number(default),A-Z,a-z,I,i
2. Unorder list(<ul></ul>) : Items in this list start with a list mark such as a bullet. Browsers will usually
change the list mark in nested lists.
Attributes Parameters
square &
disk(default)
3. DL: Definition List. This kind of list is different from the others. Each item in a DL consists of one or
more Definition Terms (DT elements), followed by one or more Definition Description (DD elements).
<DL>
</DL>
Assignment: 2
*idli
*dose
*poori
*chowchow bath
*curd rice
*Biryani
1.chiken biryani
2. mutton biryani
*kabab
*curry
*pepper fry
*coffee
*Tea
i.black tea
*soft drink
o.coke
o.pepsi
o.fanta
o.maaza
o.sprite
* Anchor tag : when we want to link one page to another page we can use anchor tag.
* iframe tag : when we want to insert one web page inside another web page, we use iframe tag.
<iframe src="destination"></iframe>
</audio>
</video>
Table
1.Table Row<TR></TR>.
4.Caption <CAPTION></CAPTION>.
§The table row elements usually contain table header elements or table data elements.
§Border: You can choose a numerical value for the border width, which specifies the border in pixels.
§Cellspacing: Cell Spacing represents the space between cells and is specified in pixels.
§Cell Padding: Cell Padding is the space between the cell border and the cell contents and is specified in
pixels.
§Table caption : A table caption allows you to specify a line of text that will appear centered above or
bellow the table.
Emoji’s in HTML
They are letters (characters) from the UTF-8 (Unicode) character set.
UTF-8 covers almost all of the characters and symbols in the world.
Form :
and inside the form tag we are using several tags to insert the input type by using <input></iput> tag.
FOR = we use it inside label tag to specify for which input type we are applying the label.
Client-side image maps (USEMAP) use a map file that is part of the HTML document (in an element
called MAP),
Types of Shapes :
Poly depends on the number of corners of the shape( 2 numbers for each corner)
EX:
<map name="workmap"> // value of the name should be same as value given in usemap but without #
</map>
Graphics in HTML
<svg width="500px" height="500px"> <svg> // first we should declare svg tag with height and width
attribute.
1) rectangle
2) circle
3)ellipse
<ellipse cx="250px" cy="250px" rx="200px" ry="100px" fill="gold" stroke="green" stroke-
width="7px"></ellipse>
4) polygon
<polygon points="256,100 252,100 253,100 254,100 254,100 251,100 250,100 50,200 80,400 420,400
450,200"
*********END OF HTML*********