madelinemaeloa
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: mstu5003, tinker, html, css --- # TINKER: HTML/CSS Meow Mix by Madeline Maeloa, Rhea Jaffer, Mariana Lederman Edelstein ### HTML * Mess around with the sequence of different tags. How does SEQUENCE affect the visual display of HTML elements? * <span style="color:red">Whatever is written first will be displayed at the very top. For example, in the top heading in the tinker, the `h1` element comes before the `p` element in the code. This means that the text in `h1` will come before the text in `p` visually. </span> * ```<div class="container-top"> <div class="page-header"> <h1>Meow meow meow meow</h1> </div> <p>I like chicken, I like liver, Meow Mix Meow Mix does deliver.</p> </div> * Change the hierarchy, the parent-child relationships between different tags. What are some ways that the hierarchy of your tags will affect the end result / visual output? * <span style="color:red"> If we change the hierarchy, like putting the 'h1' (child) outside the `div` (parent), the actions that we do for the 'div' in CSS would not affect `h1` anymore.</span> * Add/remove/manipulate various `elements`, `ids`, `classes`, `attributes`. What did you do and what did you discover in terms of the GENERALIZABLE patterns? * <span style="color:red">There is an order to the way things are manipulated: elements > ids > classes > attributes. Everything is written in the format of an element in html such as `<p> </p>.` Multiple elements may use a class element whereas an id is unique and will only be used once. In general, we noticed that attributes are followed by attribute values. For example, in the href attribute, it would be followed by an attribute value that could be in the form of a YouTube link. </span> * Try to add an embedded Youtube video in the `section#videos` tag. Before you do, take a guess as to what you expect to see as the visual result. Were your guesses correct? * <span style="color:red">As Dr.Iva had shown us how to embedd a Youtube video during the class, we already knew how to do it. We embedded a YouTube video ` <!-- Add Old Timey Nyan-cat here. <iframe width="560" height="315" src="https://www.youtube.com/embed/LDaayQj-vq8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->` and the video showed up on the screen. We can play the video from that player.</span> * Create some notes as comments in this code. What are some ways that you can use comments to help you understand your code better? * <span style="color:red">We can create comments by using `<!--> <-->`. We can use comments to section out features and also describe what the feature or code is doing. It's a good way for us to explain our code so that other people can understand what we're trying to do without it showing up on the front-end. </span> * Take a look at the following: ``` <div id="mainStory">...</div> <p class="important">Lorem ipsum...</p> <span class="incorrect">Your answer</span> <img src="https://placehold.it/50x50/4CAF50" alt="greenbox"> <input type="text" name="fullName" value="anonymous"> ``` * What is the generalizable syntax pattern between all these tags? * <span style="color:red">They all first have an opening tag, which inside have attributes (class, like id, href, src, type) with values. Then we have the content. For last there is a closing tag.</span> * Take a look at the following cheetsheets: HTML5 Cheatsheet. Muck around with the page and try to add a new content feature using some new elements you haven’t directly worked with in FCC. * How did you go about learning how to utilize a new element (process)? * <span style="color:red">We tried to add an audio element to our tinker, which is something we haven't worked with in FCC. We Googled an example of how it is used and learned that we had to have a src attribute that links to the source. Moving forward, seeing examples would help us utilize new elements and processes and model them in our own code.</span> * How can different `elements`, `classes`, and `ids` help to organize our html content? * <span style="color:red"> Elements are bits that make up web pages. They start with a start tag and end with an end tag. For example, `<h1>xyz</h1>`. Classes are attributes that help us style multiple elements at once and ids help us target specific elements.</span> ### CSS things * Take a look at the following almanac of CSS selectors and properties: 30 CSS Selectors, CSS Tricks Almanac and use some new selectors and css properties to change the visual look of the page. * Why do we have so many different kinds of CSS selectors available? * <span style="color:red">It allows us many different options when selecting elements to style. For example, we can target every single element on the page using the * or we can use combinator selectors to select very specific elements `like X + Y`.</span> * Take a look at the following. ```<div { font-size: 10px; } div, span { color: dodgerblue; } div#myFavorites { text-decoration: underline; } div.incorrect { text-decoration:line-through; } div span { color: green; } div > span { color: lime; } div:only-child { font-family: cursive; } ``` * What is the generalizable syntax pattern between all these css rules? * <span style="color:red">All these rules contain a selector, followed by a curly brace, then the property, then a colon, a value then a semicolon and a closing curly brace. Each property has to have a corresponding value attached to it. For example, the color property has a value of dodgerblue.</span> * Probably, no programmer knows every CSS rule and/or property by memory. I certainly don’t, but I know a lot. * How then, should you go about studying resources like 30 CSS Selectors and CSS Tricks Almanac to help you become a more capable and efficient programmer? * <span style="color:red">We think that by coding more and practicing, we will slowly be able to remember them (or at least the easier and more common ones). Over time, it will become second nature to us kind of like muscle memory.</span> ### COMBINED and META things * How might HTML sequence and hierarchy of tags affect your CSS rules? * <span style="color:red">There are certain CSS rules that can target specific elements. For example, `::before` can be used to target the first child of the selected element. This would mean that it's important to have our parent and child elements in the correct order.</span> * There are many things that can go wrong when you code an HTML/CSS page. Your HTML might be wrong. Your CSS might be wrong. It’s pretty difficult to debug/fix when you have more than one thing wrong at the same time. * Based on your understanding of how sequence, hierarchy, syntax affects the page; What do you think are best practices to systematically fix errors in your code? * <span style="color:red">We should look to see if the highest element is working fine, followed by the next one, then the next one after. Sometimes, commenting things out and testing things one at a time can help too.</span> * Based on said understanding, what are some best practices to reduce errors as you code? * <span style="color:red">We think that running chunks of code after we are done writing them would be useful. For example, after we write the body and a form inside the body, we should run that first before moving on. It would be hard to debug if we wrote everything out then have to fix 20 errors at one time.</span> * What is the STRENGTH of FCC exercises and what is the LIMITATION with respect to learning and understanding? * <span style="color:red">The strength of FCC exercises is that they give us very specific instructions on what to do and allow us to practice writing certain elements multiple times, for example. A limitation is that they sometimes spoonfeed us the correct code when we get something wrong, so we might not be actually learning how to code or debug ourselves.</span> * What is the STRENGTH of tinkering and what is the LIMITATION with respect to your learning and understanding? * <span style="color:red">The strength of tinkering is that we get to experiment and play with code in a stress-free and no pressure environment. If we break something, it's okay! A limitation with respect to our understanding and learning is that we might not know if our answers are right or wrong. Also, not having someone who is considered more of an "expert" to guide us or give us hints can limit the amount of things we can learn.</span> * What kinds of things did your group members learn, notice, experience that you did not and why do you think that is with respect to HOW you each respectively studied the materials? * <span style="color:red">Some of us were still confused about the definition of syntax and semantics, but others knew what the differences were immediately. We think one reason is because some of us took notes while watching the lecture and others did not. Some of us were also confused between the different syntax that we need for html and CSS. We feel like this would happen less as we start to code more and more.</span>

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully