PHPandCSS - WordPress – www.wordpress.com

cornawakeΛογισμικό & κατασκευή λογ/κού

4 Νοε 2013 (πριν από 3 χρόνια και 8 μήνες)

86 εμφανίσεις

PHP History


PHP was originally created by
Rasmus

Lerdorf

in 1995 and has
been in continuous development ever since


PHP originally stood for “personal home page”


P
rogrammer
Rasmus

Lerdorf

initially created a set of Perl scripts
he called 'Personal Home Page Tools' to maintain his personal
homepage, including tasks such as displaying his résumé and
recording how much traffic his page was receiving


PHP


W
idely
-
used general
-
purpose scripting
language that is especially suited for
Web development and can be embedded
into HTML


Designed for
web
development on the
fly
to produce dynamic web
pages


PHP code is embedded into the HTML
source document and interpreted by a
web server with a PHP processor
module, which generates the web page
document


Free
software released under the PHP
License


Any PHP code in a requested file is
executed by the PHP runtime, usually
to create dynamic web page content


CSS


Cascading Style Sheets


A

style sheet language used to describe the presentation
semantics (the look and formatting) of a document written in a
markup language


Its most common application is to style web pages written in
HTML and XHTML


D
esigned primarily to enable the separation of document content
from document presentation, including elements such as the
layout, colors, and fonts.


-
This separation can improve content accessibility, provide

more flexibility and control in the specification of

presentation characteristics, enable multiple pages to share

formatting, and reduce complexity and repetition in the

structural content

CSS Limitations


Poor controls for flexible layouts


-
Creating fluid layouts generally requires hand
-
coding of CSS


Selectors are unable to ascend


-
offers no way to select a parent or ancestor of an element that

satisfies certain criteria


Vertical control limitations


-
Simple tasks such as centering an element require

complicated, unsupported rules


Absence of expressions


-
Makes calculating column size difficult


Lack of column declaration


-
Layouts with multiple columns can be complex to

implement, could require different browsers/screens etc.


Pseudo
-
class dynamic behavior not controllable


-
User feedback that the client cannot disable

What CSS Brings


Prior to CSS, nearly all of the presentational attributes of HTML
documents were contained within the HTML markup; all font
colors, background styles, element alignments, borders and sizes
had to be explicitly described, often repeatedly, within the HTML.
CSS allows authors to move much of that information to a
separate style sheet resulting in considerably simpler HTML
markup.


CSS style information can be either attached as a separate
document or embedded in the HTML document.