HTML
HTML
===================================================================================
==============================
Paragraphs are defined with the <p> tag. Think of a paragraph as a block of text
attributes:align="center/right/left",style="",id=""
===================================================================================
==============================
<!-- This is
a comment --> ,<!-- -->
===================================================================================
==============================
1.Structural tags: These tags define the structure of the HTML document. Example
<html>, <head>, <body>, <h1>, <p>, and <ul>.
2.Formatting tags: These tags are used to format the text in the HTML document.
Example <b>, <i>, <u>, <em>, and <strong>.
3.Presentational tags: These tags are used to control the presentation of the HTML
document.Example <font>, <color>, and <background>.
4.Content tags: These tags are used to embed content in the HTML document.Example
<img>, <iframe>, and <video>.
5.Form tags: These tags are used to create forms in the HTML document.Example
<form>, <input>, and <select>.
6.Empty Tags
Logical Tags
psffce:acronym
Physical Tags
1.Structural tags:
<head> contains information about the document, such as its title and author.
<body> contains the content of the document, such as text, images, and forms.
2.Formatting tags:
(Formatting in HTML is the process of controlling the appearance of text on a web
page.)
3.Presentational tags:
<font> defines the font of the text.
<color> defines the color of the text.
<background> defines the background color of the text.
4.Content tags:
<img> embeds an image in the document.
<iframe> embeds another web page in the document.
<video> embeds a video in the document.
5.Form tags:
<form> defines a form in the document.
<input> defines an input field in the form.
<select> defines a dropdown menu in the form.
6.Empty Tags
<br> tag is used when you want to start a new line
<hr> tag is an empty tag that defines a horizontal rule in an HTML document
Attributes:allign='center/left/right'; shade='shade/noshade; size='1/2/3...';
width='0-100%'.
The <img> tag is empty
Note:To display characters like <> & etc it is not always possible as they have
reserved meanings for the browser,
so to do that we use special entities like to print "<" we type....&It; or <
it has 3 parts first &(ampersand) that means begining entity.....then we write
abbribation for character,like for less than we write lt.
at last we close it by semicolon ;
===================================================================================
===============
1.<body> tag
attributes:-
1.background:
a)specify a background-image for an HTML page.
b)The value of this attribute is the URL of the image you want to use.
c)If the image is smaller than the browser window, the image will repeat itself
until it fills the entire browser window.
example
<body background=“clouds.gif”> </body>
2.bgcolor:
a)specifies a background-color for an HTML page.
b)The value of this attribute can be a hexadecimal number, an RGB value, or a color
name:
<body bgcolor=“black”>
<body bgcolor=“rgb(0,0,0)”>
<body bgcolor=“#000000”>
==============================================================================
Hyperlink:
HTML uses the <a> anchor tag to create a link to another document or web page
===================================================================================
===
Adding Image
<img> tage is used to add image to an html document
attributes:-
1.src:stands for source...it contains a link/url/path of image to be added as a
value
2.height:height="103/104/200...etc"
3.Width:height="103/104/200...etc"
4.Align="center/right/left
===================================================================================
==
Tables
Tables are defined with the <table> tag
1.A table is divided into rows with the <tr> tag(tr:table row)
2.Each row is divided into data cells with the <td> tag(td:table data)
A data cell can contain text, images, lists,
paragraphs, forms, horizontal rules, tables, etc.
syntax:-to create two rows and one columb
<table>
<tr><td>HII</td>
</tr>
<tr><td>BYE</td>
</tr>
</table>
to make appear table like table define border attribute in table tage with at lest
1 as value.
note:define rows with <tr> tag and to add as many colums or data cells keep adding
<td> tag
===================================================================================
========================