HTML Basics
- HTML LinksHTML Links are defined with the <a> tag and the linked location specified to href attribute.Ex:1. <a href = "http://programmingforbeginers.blogspot.com/"> This is a Link to our forum </a>2. <a href = "#"> This is a link to same location </a>
- HTML Images
HTML Images are defined with the <img> tag and defining the image path with "Src" attribute.Ex:
1. <img src = "myImage.jpg" /> This tag loads the image with its original size.
2. <img src = "myImage.jpg" width = "100" height = "100"/> This tag attributes change the image size. - HTML Elements
- An HTML element start with an Opening Tag and ends with a Closing Tag.
Ex: <p>----</P> - Between the Opening tag & ending tag called Element Content
- Some HTML elements which are called Empty Elements closed in the start tag.
Ex: <img src = "myImage.jpg" /> - Most HTML elements can have additional information than the element whic are called Attributes
Ex: <p align = "Center"> --------</p>
- An HTML element start with an Opening Tag and ends with a Closing Tag.
- Nested HTML Elements
Most of the HTML elements can contain other HTML elements. This is calling nested elements.
Ex:
1.
<html>
<head>
-----
-----
</head>
</html> - HTML Attributes
- Most HTML elements can have attributes.
- Attributes provide further information about the element
- Always specified in the opening tag
- Attributes come in name-value pairs.
No comments:
Post a Comment