Please enable JavaScript.
Coggle requires JavaScript to display documents.
Unit 21 - Coggle Diagram
Unit 21
Codes
-
-
-
-
for formatting text
-
-
-
-
-
-
-
<p>This is <sub>subscripted means text goes down from line of the rest of the words are in </sub> text.</p>
<p>This is <sup>superscripted means text goes up from the the line of the rest of the words are in</sup> text.</p>
-
Block
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
-
<address><article><aside><blockquote><canvas><dd><div><dl><dt><fieldset><figcaption><figure><footer><form><h1>-<h6><header><hr><li><main><nav><noscript><ol><p><pre><section><table><tfoot><ul><video>
Inline
An inline element does not start on a new line and only takes up as much width as necessary.
This is an inline <span> element inside a paragraph.
-
<a><abbr><acronym><b><bdo><big><br><button><cite><code><dfn><em><i><img><input><kbd><label><map><object><output><q><samp><script><select><small><span><strong><sub><sup><textarea><time><tt><var>
HTML The class Attribute
on Inline Elements
Structure
-
-
-
-
span.note {
font-size: 120%;
color: red;
}
</style>
</head><body><h1>My <span class="note">Important</span> Heading</h1><p>This is some <span class="note">important</span> text.</p>
</body>
</html>
-
Using The id Attribute
<style>
(#)myHeader {
background-color: lightblue;
color: black;
padding: 40px;
text-align: center;
}
</style><h1 id="myHeader">My Header</h1>
more codes
-
-
-
-
HTML links will be displayed in different colors depending on whether they have been visited, are unvisited, or are active.
-
A link can also be styled as a coloured button, by using CSS:
coding structure
-
-
a:link, a:visited {
background-color: #f44336;
color: white;
padding: 15px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}
a:hover, a:active {
background-color: red;
}
LINK= BOOKMARKS
-
THEN add a link to the bookmark ("Jump to Chapter 4"), from within the same page:
-
-
-
-
-
-
-
Quotation
-
-
The HTML <abbr> tag defines an abbreviation or an acronym, like "HTML", "CSS", "Mr.", "Dr.", "ASAP", "ATM".
-
<address>
The HTML <address> tag defines the contact information for the author/owner of a document or an article.
The contact information can be an email address, URL, physical address, phone number, social media handle, etc.
The text in the <address> element usually renders in italic, and browsers will always add a line break before and after the <address> element.
The HTML <bdo> tag is used to make the current text direction changed= text direction of layout is switched
-
-
LISTS
-
Ordered
-
-
If you want to start counting from a specified number, you can use the start attribute:
-
-
-
-
Defintions/EXPLANATIONS
-
The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks: (poem structure will be obtained when you use this)
-