HTML Note
HTML Note
HTML ELEMENT
An element is a fundamental component of the structure of an html document that begins
with a start tag. If may also have content and end tag. Some example of element are head,
body, tables, paragraph, break, image and list. Html element are define by tags for browser
and element can have plain text content and other forms of content or both as analyses in
the following table
Opening tag content Closing tag
<p> This is a paragraph </p>
<h> This is heading </h>
<div> This is a divisions </div>
<b r />
<img src=”image url”>
HTML ATTRIBUTE
An attribute is use to define the characteristic of an html element. Attribute is additional
information that is included inside a start tag
Link tag
Link or hyperlink is a connection from one web resource to another.links allow users to
move seamlessly from one stage to another. A link is specified using the anchor tag <a> and
an anything between the opening <a> tag and the closing </a>tag become part of the link a
user can click
CELL PADING
Tables cells are sizes large enough to fit the content by default. To add more space around
the content is the tqbles cells,padding property can be use ,padding provide space inside
container.padding goes around all four size of the content
CELL SPACING
Cells spacing are use to adjust the whitespace in the tables cells. It is used to defined the
width of the border
HTML FORMS
Html forms are required when you want to collect some information the site visitors. User
input such as contact details ;like names ,email address,phone numbers or details like credit
card information etc are always collected with forms
FORMS CPONTRIOLS
Forms contain special element called control like text field or input box,check buttons,radio
buttons,submit buttons .etc users generally complete a forms buy modifying is controls eg
entry text,selecting items etc. and submitting the forms to webserver for further processing.
Font tag is use to create an html forms
TWO FORMS METHOD WITH WHICH BROWSER CLIENT SEND
MESSAGE
Post method : after url their will not be something else on the url bar of the browser.
Hence, using post is more secure bcoz some fact can not be seen by viewers
Get method : after url their will be a question mark succeded by a bunch of
information on the url bar of the browser
TYPE OF CSS
The most common type of css are the following
Embedded css: this is the css whose rule is placed in-between a pair of style tags
within the head tag '
In-line CSS or css of style attribute: This is use to define a unique style rule for a
single html element in the opening tag
External css : this is a separte text file with .css extension. Styles rule are define
within the .css file but are included in an html document using <link> element within
the head tag of the html file in order to link the rules in the css file to it
A web host is a company that has many computers permanently connected to he internet.
When a web page is placd on their computers, everyone in the world will be able to connect
to it and view it. The famous among the web hosts include the following:
Bluehost
GoDaddy
HostGator
Wordpress.com
Google cloud
Amazon web services
There is a need to sign up for an account with a webhost for a website to have a home. After
you have designed your webpages, you will need to transfer them to your web host
computer called a web server
?>
Save the file with info.php to C:\xampp\htdocs
Tyoe localhost\info.PHP
COMMENT
A comment is a portion of code that will not be executed my machine because it is only
meant for human reader. comment may be made to remind of what code does. It can also
be a block of code under experiment I.e code under experiment can be commented out
instead of being deleted
PHP VARIABLE
A variable is a storage location paired with an associated symbolic name which contains
some known or unknown value. A variable is used to store data to the reused data. To
conveniently and repeatedly refers to stored value in php, variable is defined by the
combination of $,identifier(name) and value. The equal sign is used to assign value to
variable in php. Variable name is always to the left of equal to and variable value to the right
of equal to sign. php does not require declaration of php type. It automatically assign equal
to a value but whenever a variablle name is used, it will be preceeded by dollar sign.
DECLARATION, INNIATIALIZATION, DEFINITION AND INSTANCATION
DECLARTION: This is to introduce the new name or more into a program.
INNITIALIZATION: This is to assign a value to a variable
DEFFINITION: This is to declare an initialised variable
INSTANCATION: this means to create specific class. It also means to create new instances of
objects to be used in a program