HTML Elements and Attributes for Hyperlinks, Scripts and Style Sheets

HTML Elements and Attributes for Hyperlinks, Scripts and Style Sheets
Below is a list of the most commonly used*** html element tags that control an hyperlinks, scripts and styles sheets on the webpage.

Note: Some attributes listed below have been depreciated in favor of Cascading Style Sheets.

HTML Elements and Attributes for Hyperlinks, Scripts and Style Sheets
ElementOpening TagAttributesClosing TagDescription
style<style>type="?"</style>Defines a style sheet

type - type of style sheet
script<script>language="?"
event="?"
for="?"
</script>Defines a script

language - script language
event - trigger for script
for - what script affects
a<a>href="?"
name="?"
</a>Creates a hyperlink on the webpage.

href -
The href attribute is required and supplies
1. the next page (URL)
2. the location on a page (#location)
3. an email link (mailto:your_email)

name -
The name attribute marks the location for the destination of a jump link (refers to #location)
***A complete list of html element tags can be found at the World Wide Web Consortium (W3C) website.
https://www.w3.org/TR/REC-html40/index/elements.html
**Color can be set using color names (red, black, etc) or RGB color codes or hexidecimal color codes.






This site needs an editor - click to learn more!



RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.