





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















Contents โ (^) Introduction to CSS โ HTML Links โ HTML Images โ Marquee Tag
Inline CSS โ An inline CSS is used to apply a unique style to a single HTML element. โ An inline CSS uses the style attribute of an HTML element. โ (^) This example sets the text color of the
element to green:
This is a Blue Heading
Internal CSS โ An internal CSS is used to define a style for a single HTML page. โ (^) An internal CSS is defined in the section of an HTML page, within a
This is a heading
This is a paragraph.
HTML Links - Hyperlinks โ In computing, a hyperlink , or simply a link , is a reference to data that the reader can directly follow either by clicking, tapping, or hovering. โ A hyperlink points to a whole document or to a specific element within a document. โ (^) A link does not have to be text. It can be an image or any other HTML element.
Syntax โ (^) link text โ For example Google
โ (^) The href attribute specifies the destination address ( https://www.google.com ) of the link. โ (^) The link text is the visible part ( Google ). โ (^) Clicking on the link text will send you to the specified address. โ (^) The full address like above one is called Absolute URLs
Local Links----Pages in different folder โ (^) This example links to a page located in the user folder on the current web site: Profile
Jumping to a specific position on the same page--- Bookmark โ (^) HTML bookmarks are used to allow readers to jump to specific parts of a Web page. โ (^) Bookmarks can be useful if your webpage is very long. โ (^) To make a bookmark, you must first create the bookmark, and then add a link to it. โ (^) When the link is clicked, the page will scroll to the location with the bookmark.
Bookmark Example in other page โ We can link a bookmark from another page as: Jump to Heading 2 โ (^) Bookmark1 is created already with id attribute in Page2.
The target Attribute โ (^) The target attribute specifies where to open the linked document. โ (^) The target attribute can have one of the following values: ๏ (^) _blank - Opens the linked document in a new window or tab ๏ (^) _self - Opens the linked document in the same window/tab as it was clicked (this is default) ๏ (^) _parent - Opens the linked document in the parent frame ๏ (^) _top - Opens the linked document in the full body of the window ๏ (^) framename - Opens the linked document in a named frame Google
HTML Images
HTML Images โ In HTML, images are defined with the **** tag. โ The tag is empty, it contains attributes only, and does not have a closing tag. โ (^) For example;
Example
Images in Another Folder โ (^) If not specified, the browser expects to find the image in the same folder as the web page. โ However, it is common to store images in a sub-folder. You must then include the folder name in the src attribute:
โ Now let we have 2 folders in one folder 'HTML' and 'Images' To link an image from Images folder in code from HTML folder;