HTML and CSS Reference
In-Depth Information
value="Send!" />
<input type="button" id="stop-button"
value="Stop" />
<br/>
<label id="status-label">Status</label>
</body>
The first line of the preceding code (the DOCTYPE ) indicates that we are using the
latest version of HTML, which is HTML5.
For more information about the HTML5 markup, consider visiting ht-
tp://html5doctor.com/ . There is a complete reference for the supported HTML5 tags
at http://html5doctor.com/element-index/ .
Styling
In order to display colors, backgrounds, fonts, alignments, and so on, you need to
be familiar with Cascading Style Sheets ( CSS ). CSS is quite self-explanatory, so,
if you want to change the header style (for example color, alignment, and font), you
would write something similar to the following code:
h1 {
color: blue;
text-align: center;
font-family: "Helvetica Neue", Arial,
Sans-Serif;
font-size: 1em;
}
http://www.css3.info/ is a great resource for CSS3 and further reading.
Logic
The markup defines the structure and the CSS rules apply the styling. What about
event handling and user actions? Well, here comes JavaScript! JavaScript is a
scripting programming language that lets you control and alter the behavior of your
Search WWH ::




Custom Search