Welcome visitors of MIC Computer

Welcome to my blog. With this blog you can post your question about computer and programming for absolutely free (free consultation sponsored by MIC Computer).. Well what are you waiting for just feel free to post your question or share with me about your computer / programming experience

Thursday, September 29, 2011

PHP, Javascript, CSS block scripting

How can server, browser or we can recognise what kind of script at an HTML document? We use some block scripting to open and end it up.
For PHP we use

<?php
php script goes here
?>
we can also use this:
<?
php script goes here
?>
but I always use <?php and ?>

For Javascript we use
<script type="text/javascript">
Javascript script goes here
</script>
we can also use this
<script>
Javascript script goes here
</script>

For CSS we use
<style type="text/css">
CSS style goes here
</style>

No comments: