Category:1992 video games
Category:Action role-playing video games
Category:Commercial video games with freely available source code
Category:DOS games
Category:DOS-only games
Category:Video games developed in the United States
Category:Video games with expansion packs
Category:Role-playing video gamesQ:
What do these properties refer to?
I am new to website building and I have never actually used Javascript and I am now trying to learn to build websites and learn HTML/CSS. I am getting confused over this terminology of "properties".
For example what does the code
div#mydiv {
background: yellow;
width: 100px;
height: 100px;
}
mean exactly?
A:
My answer is going to be really general, because I don't know enough about what you're trying to accomplish and how you're trying to accomplish it. I can at least give you a vocabulary list of terms you might use and other things you might have to remember.
I'd start by not calling properties "properties". You use "properties" to refer to the style and appearance characteristics of an element. Things like height, width, background, and so on.
Elements have certain other characteristics. They can have tag names, class names, and ids. A tag name is an attribute of an element. They have a type. They have a children list.
There are other things. There are event handlers, form controls, validations, interactions, and so on.
The more you know about CSS, the more you can apply those things to elements. When you write something like
div#mydiv {
background: yellow;
width: 100px;
height: 100px;
}
you're telling your browser to apply whatever background and width and height properties are defined to this div. You can change the background, the width, and the height properties to achieve different appearances of your div.
There are also things you can do with Javascript. You can change the color of the background of an element. You can change the text of an element. You can toggle a form control. These are all ways you can change the look of an element.
A div is a container. You might make a div into a paragraph by adding some more tags:
div#mydiv {
background: yellow;
width: be359ba680
Related links:
Comments