+ All Categories

Html

Date post: 13-Apr-2017
Category:
Upload: nidhi-mishra
View: 142 times
Download: 0 times
Share this document with a friend
44
HTML ( HyperText Markup Language) Nidhi Mishra
Transcript
Page 1: Html

HTML( HyperText Markup Language)

Nidhi Mishra

Page 2: Html

HTML (HyperText Markup Language) HTML, is the standard markup language used to create web

pages. Markup languages are designed for the processing, definition

and presentation of text. The language specifies code for formatting, both the layout

and style, within a text file. The code used to specify the formatting are called tags.

HTML is a an example of a widely known and used markup language.

Page 3: Html

Structure of HTML<!DOCTYPE><html> <head><title></title> </head><body></body></html>

Page 4: Html

Tags

Tag(in html)

Paired (have both opening(<>) & closing tag(/>)

Unpaired (doesn’t have closing tag)

Page 5: Html

TAGS IN HTML

Page 6: Html

Heading tag (<h1> to <h6>) Definition The <h1> to <h6> tags are used to define HTML headings. Attributes

align (optional) Syntax & Output

Page 7: Html

<b> tag Definition

The <b> tag specifies bold text. <i> tag

Definition The content of the <i> tag is usually displayed in italic.

<u> tag Definition

Used to underline the text. <center> tag

Definition The <center> tag is used to center-align text.

Page 8: Html

<p> tag Definition

The <p> tag defines a paragraph. Browsers automatically add some space before and after each

<p> element. Syntax & output

Page 9: Html

<strike> tag Definition

The <strike> tag defines strike through text. Syntax & output

Page 10: Html

<sub> tag Definition

The <sub> tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font.

<sup> tag Definition

The <sup> tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font.

Page 11: Html

Syntax & output

Page 12: Html

<br> tag Definition

The <br> tag inserts a single line break. This is unpaired tag.

Syntax & output

Page 13: Html

<hr> tag Definition

The <hr> tag defines a thematic break in an HTML page. Syntax & output

Page 14: Html

<img> tag Definition

The <img> tag defines an image in an HTML page. Attributes

Src Align Height Width Alt Title

Syntax & output

Page 15: Html

<marquee> tag Definition

It is used to move the text/image from one direction to another direction.

Attributes Behaviour Direction Scroll amount On mouseover On mouseout

Syntax <marquee behaviour=“alternate” scroll amount=“4”

direction=“left”> </marquee>

Page 16: Html

Graphics tagA. Audio: used to attach audio file.

B. Video: used to attach video file. Attributes

Src Height Width Loop

Syntax <embed src=“ ” height=“ “ width=“ “ loop=“ “>

</embed>

Page 17: Html

<a> tag Definition

It is used to redirect one page to another page and known as anchor tag.

Attributes Href Target

Syntax & output

Page 18: Html

List Definition

The group of items is called a list. The items of list are represented by <li>.list

Ol (ordered list)

Ul (unorderd list)

Page 19: Html

Ordered list Syntax & output

Page 20: Html

Unordered list Syntax & output

Page 21: Html

Favicon Definition

An icon associated with a particular website, typically displayed in the address bar of a browser .

Syntax & output

Page 22: Html

Refresh Definition

Meta refresh is a method of automatically refresh the current web page after a given time interval.

It uses the property of meta. Attributes

http-equiv=“refresh” content

Syntax <meta http-equiv=“refresh” content=“5”/>

Page 23: Html

Table Definition

Table is used to store the data in the form of row and column. <tr> tag represent the row. <td> tag represent the column.

Attributes Width Height Border Align

Page 24: Html

Syntax & output

Page 25: Html

Form Definition

Form is used to submit the basic information on a server or database.

Form elements Text: it is unpaired tag.Syntax: <input type="text" name="ab" value="" placeholder="Enter your name" maxlength="10"/> Password: it is unpaired tag.Syntax: <input type="password" name="cd" value="" placeholder="Enter your password"/> Radio: it is unpaired.Syntax: <input type="radio" name="xy" value=""/>male<input type="radio" name="xy" value=""/>female

Page 26: Html

Checkbox Syntax: <input type="checkbox" name="qw[]" value=""/>Singing<input type="checkbox" name="qw[]" value=""/>Dancing

File: used to upload the file. syntax: <input type="file" name="qwe" value=""/>

Textarea: it is paired tag. syntax:<textarea name="asd"></textarea>

Button: it is unpaired. Syntax:<input type="submit" name="qas" value="Sign Up"/>

Page 27: Html

Output

Page 28: Html

CSS CSS stands for cascading style sheet. CSS is not a language, it is part of design. CSS is most often used to set the visual style of web pages. CSS is used to define styles for your web pages, including

the design, layout and variations in display for different devices and screen sizes. 

CSS is a heart of HTML. .css is the extension of CSS.

Page 29: Html

CSS

Inline Internal External

Page 30: Html

Inline CSS To use inline styles, add the style attribute to the relevant

element. The style attribute can contain any CSS property. Always used in <body> tag. Style is used for this purpose. Used inside the tag and only one style is used in one tag. Semicolon(;) is used in style for multiple properties. An inline style may be used to apply a unique style for a

single element.

Page 31: Html

Internal CSS Internal styles are defined within the <style> element, inside

the <head> section of an HTML page.

Page 32: Html

External CSS Each page must include a reference to the external style

sheet file inside the <link> element. The <link> element goes inside the <head> section.

Page 33: Html

Properties of CSS

Page 34: Html

Color When we use the color property in the <style> tag, it changes the color of the text.

Background background-color background-image background-repeat background-attachment background-position

Page 35: Html

syntax

output

Page 36: Html

Border Border-style Border-color Border-width

syntax output

Page 37: Html

Height Width

Syntax

Output

Page 38: Html

Text Text-color Text-align syntax Text-decoration Text-transform Letter-spacing Word-spacing Text-indent Text-shadow Line-height

output

Page 39: Html

Font Font-family Font-size Font-style Font-weight

Output Syntax

Page 40: Html

Padding The CSS padding properties define the white space

between the element content and the element border.

CSS has properties for specifying the padding for each side of an element: padding-top padding-right padding-bottom padding-left

Page 41: Html

SYNTAX

OUTPUT

Page 42: Html

Margin The CSS margin properties set the size of the

white space OUTSIDE the border. CSS has properties for specifying the margin for

each side of an element: margin-top margin-right margin-bottom margin-left

Page 43: Html

syntax

output

Page 44: Html

THANK YOU


Recommended