Welcome to cheat sheet #1. I am writing this to review what I have learned about HTML, XHTML, and CSS. Most of this is syntax that I needed to write down to help me remember!
HTML and XHTML:
- Elements:
- Identify parts of HTML using tags
- Tags come in pairs, start with <tag> and end with </tag>
- Elements that insert something look like <tag … />
- Anchor Elements:
- Inline elements, typically used for links… <a href=”link”>text</a>
- You can use the target attribute to tell the browser how to display the link; target= “_blank”
- Attributes:
- Information about an specific element
- Located within a tag and specify a value and look like this: attribute=”value” and can be in any order
- Comments:
- Start with <!- – and end with – – >
- Tag examples:
- <head>, </head>; <body>, </body>; <hn>, </hn>; <p>, </p>;
<meta (name” “)…(content” “)/>; <title>, </title>
CSS:
- Separates style from the structure of a webpage and keeps the style of a website consistent
- They can occur on the page (internal) on in a text file (external) that has to be referenced using the <link rel(relative- resides on your site) or href (not on your site) /> or you can use
the @import “link”; after the <style> but before any style rule - Syntax looks like , selector {property: value;} and you can include more than one property with a value as long as they maintain the structure of property: value;
- Can create a style class and they are written like this: element.class attribute (if associated with an element) or .class attribute if not
- Inheritence. Parent elements find their way to child elements – if you say the in the body tag that the text is blue, it will be blue unless it is changed using inline style changes
I am halfway through the HTML book. So far, it has been an easy read and some information I already knew. To me, the nice part about it is the “why” behind the language. To me, knowing the why makes understanding, fixing, and starting from scratch much easier. So far the book covered the basics of HTML and XHTML structure. I will go over some of my key takeaways below:
- XHTML and HTML tell the browser how to display the page
- Both have 3 types of components – Elements, Attributes, and Entities
- DOCTYPE specifies what markup language is used for the page
- For XHTML you need to add a namespace
- Metadata: Keywords, description/information of the page. Has it’s own element and attributes – name and content
- Learned about formatting – headings, blockquote, paragraph, ordered lists, unordered lists, list elements, definition lists, anchor element, alignment, images, links
- More specific formatting and styling is saved for the CSS portion
If there is something that I have missed or haven’t said correctly, please feel free to correct me.
Dreamforce 2009 was an incredible time. I was lucky enough to meet and hang out with some great people – people who have inspired me to start this blog and teach myself more of what Salesforce.com can do and programming. I wanted to start this blog in the hopes that it will help other Salesforce users. I have learned a lot of information from reading other people’s blogs and twitter… it is my time to start sharing. Please feel free to comment on things to come – please let me know when I am wrong, when I could be doing things better, and even for the few times that I might be right! Without further ado…
Here is the list of the technology that I will start learning (in no particular order, yet):
HTML, XHTML, CSS, C++, Java, JavaScript, SQL, MySQL, PHP and APEX
First up – HTML, XHTML &CSS for Dummies (full color too!)