Posts Tagged ‘comment’
PHP Syntax
PHP is a scripting level language that is very powerful. It is enbedded within HTML tags . PHP always starts with a block, like so.
<?php
?>
To show text you either use the ( echo ) tag or the ( print ) tag. Like so:
<html>
<body>
<?php
echo " my page"
?>
</body>
</html>
Comments will look like this.
//comment here
A comment block will look like this:
/* this
is a
blocked comment*/
That is the simple PHP syntax. Thank you for reading and there will be more to come.
Sincerely,
Brick
Tags: comment, Echo or print, PHP, Syntax
Html Easy Tags
Ok so now we are started and we have an elementary sense of HTML. We’ll be going over some of the more common tags used a lot in HTML.
First, the tags always have <> around them, they end with </>. The first tag will be the <p> tag. This describes a paragraph.
Then there is the <h> tag, it spans from <h1> to <h6> this describes how big a heading will be.
The <br> tag describes a break in text. You have to close a break tag like so: <br/>
The horizontal rule is a way to have a line across your page. You leave the<hr> tag to do so.
Finally, the comment tag. A comment in the code is not read by the browser but is a way to leave notes for yourself and other things too. You do this by:
<!– this is a comment –>
This is just a brief overview of HTML elements or tags. As always thanks for reading.
Sincerely,
Brick
Tags: break, comment, heading, horizontal rule, html, tags
CSS Quick But Important
Ok this is a really simple lesson but it has its uses. Today we are talking about the way the style sheets will cascade and a few other things. First things first, the way that sheets will cascade in least to greatest order.
1. Browser Default
2. External Style Sheet
3. Internal Style sheet( Inside the <head> tag of a document)
4. Inline style( inside an html element)
So basically the styles will overide each other going 4, to,3 and so on. This will make a new virtual style sheet by following the rules.
Next I will show you how to add styles to elements with particular elements. So a good example would be:
input[ type="text"] {background-color: blue}
The style rule above will match all input elements that have “text” in them.
Comments are probably the easiest thing to learn. All there is to it is this:
/* here is a comment */
That’s all for today. See I told you it would be simple. Remember though that the order that sheets cascade is from 4 to 3 and so on. Thanks for reading as always.
Sincerely,
Brick