means the same as
. But lowercase is recommended for differen purposes tags as well as attributes. ~> HTML Attributes All HTML elements can have attributes Attributes provide additional information about elements Attributes are always specified in the start tag Attributes usually come in name/value pairs like: name="value" ~> Tooltip in HTML: The title Attribute The title attribute defines some extra information about an element. The value of the title attribute will be displayed as a tooltip when you mouse over the element ~>
paragraph tag always tart with a new line. ~> Use HTML headings for headings only. Don't use headings to make text BIG or bold. ~>
element is displayed in a fixed-width font (usually Courier) ~> CSS attribute syntax:The CSS text-align property defines the horizontal text alignment for an HTML element: ~> Formatting: Visual Styling: , , , , , , Semantic Emphasis: , , , , , Code/Technical:, , , ,Quoting:,, Direction/Control: ,
,
, ,Formatting elements were designed to display special types of text: - Bold text - Important text - Italic text - Emphasized text - Marked text - Smaller text- Deleted text - Inserted text (filled in) - Subscript text - Superscript text ~> Quotation and Citation: The HTMLelement defines a section that is quoted from another source. Browsers usually indentelements. The HTMLtag defines a short quotation. Browsers normally insert quotation marks around the quotation. tag defines an abbreviation or an acronym, like "HTML", "CSS", "Mr.", "Dr.", "ASAP", "ATM". Marking abbreviations can give useful information to browsers, translation systems and search-engines. Tip: Use the global title attribute to show the description for the abbreviation/acronym when you mouse over the element. The HTML tag defines the contact information for the author/owner of a document or an article. The text in the element usually renders in italic, and browsers will always add a line break before and after the element. The HTML tag defines the title of a creative work (e.g. a book, a poem, a song, a movie, a painting, a sculpture, etc.). Note: A person's name is not the title of a work. The text in the element usually renders in italic. ~> tags: BDO stands for Bi-Directional Override. The HTML tag is used to override the current text direction: ~> HTML Colors: HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values. HTML supports 140 standard color names. In HTML, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values. Types of specifications Predefined Color Names: common names of colors. lowercase only preffered. Format: colorNames Exammple: red, blue, green, yellow, cyan, magenta, black, white, gray, etc. RGB (Red Green Blue): Three numbers ranging from 0-255 one for each red-green-blue. This means that there are 256 x 256 x 256 = 16777216 possible colors. rgb(255, 0, 0) is displayed as red rgb(0, 255, 0) is displayed as green rgb(0, 0, 255) is displayed as blue rgb(0, 0, 0) is displayed as black rgb(255, 255, 255) is displayed as white Format: rgb(red, green, blue) Example: rgb(255, 0, 0) RGBA (Red, Green, Blue, Alpha) Three numbers ranging from 0-255 one for each red-green-blue. This means that there are 256 x 256 x 256 = 16777216 possible colors. rgb(255, 0, 0) is displayed as red rgb(0, 255, 0) is displayed as green rgb(0, 0, 255) is displayed as blue rgb(0, 0, 0) is displayed as black rgb(255, 255, 255) is displayed as white Alpha controls transparency (0 is fully transparent, 1 is opaque) Format: rgba(red, green, blue, alpha) Example: rgba(255, 0, 0, 0.5) HEX (Hexadecimal): 2 digits each for red, green, and blue in hexadecimal (00 to FF). #ff0000 or #f00 is displayed red #00ff00 or #0f0 is displayed green #0000ff or #00f is displayed blue #000000 is displayed black #ffffff is displayed white Format: #RRGGBB Example: #ff0000 Shorthand (only when pairs are repeated): #f00 HSL (Hue, Saturation, Lightness) Hue is the color of paint you choose Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue like (VIBGYOR). Saturation is how much color pigment vs gray is in it. Saturation is a percentage value. 0% means a shade of gray, and 100% is the full color. Lightness is how much white or black you mix with it. Lightness is also a percentage value. 0% is black, and 100% is white. Hue: 0 to 360 (angle on color wheel) Saturation: 0% (gray) to 100% (full color) Lightness: 0% (black) to 100% (white) Format: hsl(hue, saturation%, lightness%) Example: hsl(0, 100%, 50%) HSLA (Hue, Saturation, Lightness, Alpha) Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue. Saturation is a percentage value. 0% means a shade of gray, and 100% is the full color. Lightness is also a percentage value. 0% is black, and 100% is white. Hue: 0 to 360 (angle on color wheel) Saturation: 0% (gray) to 100% (full color) Lightness: 0% (black) to 100% (white) Alpha controls transparency (0 is fully transparent, 1 is opaque) Format: hsla(hue, saturation%, lightness%, alpha) Example: hsla(0, 100%, 50%, 0.5) ~> HTML Links: HTML links are hyperlinks. When we move the mouse over a link, the mouse arrow will turn into a pointer(little hand). A link does not have to be text. A link can be an image or any other HTML element! Links are found in nearly all web pages. Links allow users to click their way from page to page. By default all hyperlinks ( tags) are underlined. Colors: An unvisited link is underlined and blue, changed using css pseudo class :link A visited link is underlined and purple, changed using css pseudo class :visited An active link is underlined and red, changed using css pseudo class :active or :hover is also used sometimes. Tip: Links can of course be styled with CSS, to get another look! target Attribute: The target attribute specifies where to open the linked document. The target attribute can have one of the following values: _self - Default. Opens the document in the same window/tab as it was clicked _blank - Opens the document in a new window or tab _parent - Opens the document in the parent frame _top - Opens the document in the full body of the window Absolute URL: Absolute URL (a full web address) in the href attribute. Local URL: A local link (a link to a page within the same website) is specified with a relative URL (without the "https://www" part): we use "text-decoration:none;" CSS property to remove underlines. JavaScript allows you to specify what happens at certain events, such as a click of a button, turninig them into link sometimes. Syntax: link text ~> HTML Bookmarks: HTML links can be used to create bookmarks, so that readers can jump to specific parts of a web page. We can also add a link to a bookmark on another page The id attribute is used to create a bookmarks. Use the id attribute (id="value") to define bookmarks in a page Use the href attribute (href="#value") to link to the bookmark Syntax: Text ~> Favicons: A favicon is a small image, so it should be a simple image with high contrast. Create custom favicon on sites like https://www.favicon.cc. Place it in the head after title tag. Syntax: ~> Title tag (): defines a title in the browser toolbar provides a title for the page when it is added to favorites displays a title for the page in search engine-results ~>