Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1
Lesson 1: Introducing HTML5 CHAPTER 2 35

■■<ruby> Ruby annotation
■■<samp> Sample output
■■<script> Linked or embedded script
■■<section> Document section
■■<select> Selection control
■■<small> Small print
■■<source> Media resource
■■<span> Generic inline container
■■<strong> Strong importance
■■<style> Embedded style sheet
■■<sub> Subscript
■■<sup> Superscript
■■<table> Table
■■<tbody> Table body
■■<td> Table cell
■■<textarea> Multiline text control
■■<tfoot> Table footer
■■<th> Table header cell
■■<thead> Table head
■■<time> Date and/or time
■■<title> Document title
■■<tr> Table row
■■<ul> Unordered list
■■<var> Variable
■■<video> Video or movie
■■<wbr> Optionally break up a large word at this element
Many of these elements are discussed in more detail later in this book.

Adding attributes to elements
The begin tag can contain additional data in the form of an attribute. An attribute is a
name=”value” pair in which name is unique within the tag and value is always enclosed within
either single quotes or double quotes. You can add many attributes to the begin tag. You can
also alternate using single quotes and double quotes, which is especially beneficial when you
need to embed single or double quotes within the value of the attribute. You can also have
Boolean attributes that contain the attribute name but no value.

Key
Te rms

Free download pdf