Labels

Tuesday, August 22, 2017

HTML & CSS Part I (Learn to code)

I am into my first lesson on Progate. The objective to list my learning here is so that I can revise.

Most websites like Google and Facebook are created with HTML and CSS.
Rule: Surround text with tags as tags define the text.

  • Heading tags <h1> Hello World  </h1>, range from <h1> to <h6> with <h1> being the largest
  • Paragraph tags <p> Hello World  </p>
  • Comments hidden <!-- This is a comment -->
  • Link Tag <a> </a> 
  • Link Tag with a destination <a href=" URL "> </a>
  • Image Tag <img src=" URL ">  (Note: no need closing tags as they don't enclose any text)
  • List Tags <li> </li> 
  • Bullet Tags <ul> </ul> (Note: type of list depends on what parent tag is used)
  • Span Tags <span></span> (Note: to apply CSS to part of a text by putting it in a <span> tag. - inline element does not start on a new line)
  • <input> and <textarea> Tags for form fields. (Note: <input> tag does not require closing tag but <textarea> requires.
  • Submit Button <input type="submit"> (Note: can change the text from submit to send, by changing the value attribute <input type="submit" value="send">

CSS is used to design a website, by changing things like colour, size, and spacing of HTML elements. CSS is written in a separate file from HTML, that specifies the changes to the targeted HTML elements.



  • Colour {color: #ff0000;}
  • Comments /* Comment */
  • Font Size {font-size: 10px;}
  • Font Family {font-family: serif;} (Note: If font name has a space, use "Lucida Grande")
  • Background colours {background-color: #dddddd;} (highlight)
  • Width and Height {width: 10px; height 20px;}
  • Labeling Tags by using class attributes <li class="selected"> </li> (Note: CSS class selectors start with a period)
  • Align vertically by using {float:left;}
  • Adding Space to an element to all sides inside its border by using {padding: 20px;}
  • Adding Space to an element to only one side by using {padding-top: 20px;} (top/right/bottom/left - clockwise) 

  • Adding Boarders to all sides by using {border:5px solid red} (Note: Thickness, style, color; border-bottom/border-top/border-left/border-right)
  • Adding Space to outside its border by using margin {margin: 20px;}



Structure of HTML
  • <!DOCTYPE html> : defines the HTML5 version for document
  • <head> Information of the document </head> (Note: Within head element, we specify character encoding <meta charset="utf-8">, <title>title of website</title> and link to CSS file <link rel="stylesheet" href="stylesheet.css">.)
  • <body> contents that are visible in the brower </body>
  • <div> Tag is used to group elements header, main, footer, e.g. <div class="header"> </div>

Learning to code

Being out of job does not stop me from learning new things. Although it may be a little late to learn programming, but it is never too late. I am inspired by the 81 year old lady Masako Wakamiya who bought her first computer at 60 years old, learnt programming from scratch and single-handedly created her first iPhone game. Being a Chemistry major, I was not exposed to Programming and I felt I missed out a lot of opportunities. One of the things I hope my little girl Gabriella will learn is programming, and in order to be "connected" with her, I should learn some programming myself.

The challenge at the start of learning programming is "where should I start?". There are so many different programming languages. When I attended Tech in Asia 2017 a few weeks back, I met Masanori Kato who founded Progate (an online coding school). Progate helps beginners like me to learn coding, starting from basics like HTML&CSS, Ruby, Java and Python.



Saturday, August 5, 2017

오문창 순대국밥 Oh Moon Chang Sundae @ Daejeon

The other korean cuisine one should try is Sundaegukbap 순대국밥 and Jokbal 족발. Sundaegukbap is made of rice with pig intestines. The taste of the soup is like Bak Kuk Teh. You either like it or not. I like it with lotsa chives :) If you are a meat eater, you will enjoy Jokbal, which is pig trotters cooked in soya sauce. Due to the way it is cooked, Jokbal is very chewy and sweet. A locally popular place is called 오문창 순대국밥, located at 203-2 Jungni-dong, Daedeok-gu, Daejeon, South Korea.





Friday, August 4, 2017

Mom's Touch (Fastfood chain in Korea)

Mom's Touch is a newly established chicken cum burger fastfood chain. I will highly recommend to try, especially the fries. The chicken set meal is about $10. I went twice during this trip because I had cravings.






Thursday, August 3, 2017

Real Cake @ Daejeon

My hubby knew I missed the Earl Gray Cake in my previous trip, and arranged for a meet up with his friend in this cafe named Real Cake located at1164, Dunsan-dong, Seo-gu, Daejeon. The strawberry milk shake is also a must-try. :)