A presentation about HTML5 and CSS3. It presents the main features of the two essential programming languages for the web. There are animation and sound in it.
17. Ordered 仍亳仂于亠
弌亰亟舒于舒仆亠 仆舒 Ordered List - 舒亞舒 <ol></ol>:
<ol type="1">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
亳弍仆亳 仂亶仆仂亳 亰舒 亳仗 舒 1, A, a, I, 亳仍亳 i:
a. HTML
b. CSS
c. JavaScript
1. HTML
2. CSS
3. JavaScript
A. HTML
B. CSS
C. JavaScript
i. HTML
ii. CSS
iii. JavaScript
I. HTML
II. CSS
III. JavaScript
18. Unordered 仍亳仂于亠
弌亰亟舒于舒仆亠 仆舒 Unordered List - 舒亞舒 <ul></ul>:
<ul type="disk">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
亳弍仆亳 仂亶仆仂亳 亰舒 亳仗 舒 disk, circle 亳仍亳 square:
HTML
CSS
JavaScript
HTML
CSS
JavaScript
o HTML
o CSS
o JavaScript
30. 亠舒亳仆仂 亟于仂 于 HTML 亟仂从仄亠仆舒
Element Parent Ancestor
Descendent Child Element
UL
DIV
class=lister
LI LI LI
DIV
id=container
H2
H1 P P
EM
Sibling
/ OR /
#17: Syntax for defining an image:
<img src="url" alt="some_text">
The URL points to the location where the image is stored. An image named "boat.gif", located in the "images" directory on "www.w3schools.com" has the URL: http://www.w3schools.com/images/boat.gif.
The browser displays the image where the <img> tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph.
HTML Images - The Alt Attribute
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
The value of the alt attribute is an author-defined text:
<img src="boat.gif" alt="Big Boat">
The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
HTML Images - Set Height and Width of an Image
The height and width attributes are used to specify the height and width of an image.
The attribute values are specified in pixels by default:
<img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228">
Tip: It is a good practice to specify both the height and width attributes for an image. If these attributes are set, the space required for the image is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the image. The effect will be that the page layout will change during loading (while the images load).