PHP constant, PHP define constant, – PHP Constant – PHP Tutorial – 10

PHP constant, PHP define constant, – PHP Constant – PHP Tutorial – 10


what is PHP constants ? in PHP constant is
a variable once it defined then it cannot be changed during the script
execution there are three parameters in this name value and case-insensitive d for
creating a constant use the define function constant variable must be started with
any letter or on the skull syntax of constant is define name-value
case-insensitive now see how is work PHP Constance open a dreamweaver with create new PHP file for creating a constant of php we use
“define” statement in defined statement there are three
parameters first name second is value and last is case-insensitive
case-insensitive means we can use variable small and upper case both but if
we not declare case-insensitive then we must use same case as we declare now see
how can we use constant and PHP in first example we not declare case
insensitivity so we must use same case variable name as we declared and defined
function and in second example we use case
insensitive true so that means we can use variable name smaller capital case
both now save this file using name constant .
php now open a browser and run this file yes file executed successfully so from this way we can use PHP
constants thank you please watch next video
tutorial number 11 and learn about PHP operators step-by-step

► HTML5 & CSS3 Tutorial — 001 — Welcome Video! (w/ GeekDisorder)

► HTML5 & CSS3 Tutorial — 001 — Welcome Video! (w/ GeekDisorder)


Hello, welcome to Geek Disorder’s
HTML5, CSS3 and JavaScript/jQuery Series. This is Lavick, I’ll be walking you through the series. This is our welcome video. It’s going to cover
Who this series is for and What will it Cover? Alright. Who is this series for? This series is for people that may have never seen
HTML, CSS, or JavaScript / jQuery before. We will start with the very basics and work
our way up to some of the more advanced topics. This series is also for people that may have worked with xHTML, HTML, and CSS like the earlier versions like HTML4 . But may not know what’s new in HTML5 and CSS3. If you want to learn the basics of
JavaScript and jQuery this series is for you. We won’t be going into the more advanced
topics of Javascript and jQuery But Geek Disorder will be putting out a full series, on JavaScript and then a series on the Javascript libary jQuery in the future. What will this series cover? We’re going to cover HTML5, CSS3,
the basics of JavaScript and jQuery. And a quick overview of the series is. Well, we’re going to start with introduction to web development. That’s going to cover a basic overview of web development. The web development tools you can use. What you will need to actually complete this series. And special web development issues. We’re going to move on the introduction to HTML5,
like the structure of a web page, formating with CSS The CSS block model, laying out your web page with CSS. Some more intermediate topics of HTML5: Links, lists, images, tables, forms, audio, video
and formatting your page for printing. Then we’ll hit some of the more advanced
topics of HTML5 like JavaScript. We’ll introduce you to the JavaScript library jQuery. Also, we’ll introduce you to jQuery mobile. Make some good web pages for tablets, your phones, such as that. We’ll move on to some more advanced topics
in HTML5 and CSS3, like canvas. We’re going to touch on designing a web page. And then deploy your web site from your computer
onto the web site so everyone can see it. How in depth will this series be? Well, the HTML5, CSS3, and JavaScript / jQuery series
will be around 75 to 100 videos. each being 7 to 15 minutes in length on average. We’ll do our best to cover as much HTML5 and CSS3 as we can. If we miss something, just let us know. We will be more than happy to work on putting
out a video to cover it. Add it to the series. We will cover the basics of some of the more
advanced topics in HTML5/ CSS3 like I said canvas. We will definitely do another series that goes a lot
more in-depth on canvas and such in the future. We will cover the basics of JavaScript and jQuery. And putting out a full series that cover the more advanced
topics in Javascript jQuery in the future also. Well, this is Lavick with Geek Disorder. I’ll hope you all will enjoy this series. So, please. We’ll be putting out videos pretty regularly. So, please join us for our HTML5, CSS3,
and JavaScript/ jQuery series! Y’all have a good day.

Using CSS: styling child elements

Using CSS: styling child elements


So far in our CSS, we’ve only been
targeting by element and when we do that it styles all the elements
the same way. But maybe we want to be a little bit more
specific. So let’s say, I want to target the
Brachiosaurus paragraph here, but not these two paragraphs up here. Looking in my HTML, I can see that these
two paragraphs are inside of a header element where the Brachiosaurus
paragraph is inside of a main element. So knowing that they’re inside of
different elements, I can style them differently. So, if I want to get the Brachiosaurus
paragraph, I know it’s inside of main, so I’m going to type main p. What this is saying is select every
paragraph that is inside of a main element. This is called a descendant selector. So in here we could just change the color
to be white like that. So I go refresh and you can see I’ve only
selected this paragraph here. I’ve selected only the paragraphs that are
inside of the main element. I can do the same thing for my header, so I could do header p background-color:
yellow. So there we go, I’ve changed just those
paragraphs now separately from this one, I’ve changed the bar, their background
color. But, you’ll notice that because I targeted
all the paragraphs inside of the head, header element, right here, it selected both of these paragraphs because
they’re both inside of the header element. Now, the difference though, if you look at them, this paragraph is
directly inside the header element where this paragraph is inside of
a div which is inside the header element. So we can target those a little bit
differently. So if I wanted to get just this paragraph
right here, I could go like this. I could type header div p and let’s change
the color to white. So this says, get every paragraph that is inside of a
div that is inside of a header. So if I go refresh, you’ll see it’s
getting this one right here. That’s one way to do it. The other way is because this paragraph is
directly inside of a header and there’s nothing surround it, surrounding
it, we can use a child selector. So if I was to type header>p that would
mean get any paragraph that is directly inside of a
header and not inside of something else. So I could change the color then to red. So there, I’ve selected just this
paragraph separately from this one. So I can either target multiple levels
deep, like this, or I can target what’s called a child selector, this right
here, the greater than means that the paragraph is directly inside of the
header and not inside of something else. Let’s, we’ll look at one more relational,
relational selector. Inside of our header, we can target ps
directly because using the child selector here, but we’re getting both of
those paragraphs, we’re getting both these here because
they’re both directly inside the header. But let’s say I only wanted to get this
paragraph and I wanted to style it differently from this
paragraph. Now, they’re both directly inside of the
header so the child selector doesn’t work. But the difference is that this paragraph
is right beside an h1. So because it’s beside an h1, I can style
that. So in here I can take h1 + p and do
something to it, background-color: red. Now this selector says, find every paragraph that is immediately
beside an h1. If I go and refresh, you can see I’ve
selected this paragraph right here. Let me change the color on that, too. So we have different ways of selecting
relational things. We have descendent selectors like this, we
have child selectors which are kind of like direct descendents, and then we have
sibling selectors or adjacent selector where the p is beside an
h1, and we can style that way.