Chapter 7
Some HTML elements for your practice try it
HTML head Elements:
Tag
|
Description
|
<head>
|
Defines information about the
document
|
<title>
|
Defines the title of a document
|
<base>
|
Defines a default address or a default target for all links on a page
|
<link>
|
Defines the relationship between a document and an external resource
|
<meta>
|
Defines metadata about an HTML document
|
<script>
|
Defines a client-side script
|
<style>
|
Defines style information for a document
|
HTML Images - The <img> Tag and the Src Attribute
In HTML, images are defined with the <img> tag.
The <img> tag is empty, which means that it contains attributes only, and has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display.
Syntax for defining an image:
<img src="url" alt="some_text">
No comments:
Post a Comment