Skip to main content

Posts

Showing posts from March, 2019

Let's Create A Very Simple Web Page

Now we have learned the basic HTML elements and attributes. The first assignment from the course is to write a simple web page, which requires to include: Header, text, list, image, and hyperlink. Before we write any code, we need to know how to combine all the elements into an entire HTML page.  According to MDN Web Doc, it states that a HTML page must includes the following elements: <!DOCTYPE html> :  It is the shortest string of characters that counts as a valid doctype. <html></html> : This element wraps all the content on the entire page, and is sometimes known as the root element. <head></head> : This element acts as a container for all the stuff you want to include on the HTML page that  isn't  the content you are showing to your page's viewers. This includes things like keywords and a page description that you want to appear in search results. <meta charset="utf-8"> : This element sets the character set you...

Learn HTML: How to Write Hyperlink Element?

In many websites, we can see a lot of call-to-action such as  click here, know more, buy now, etc.  When users click the "buy now", it will direct to a shopping page.  So, "buy now" is linking to another page web address. How can we add hyperlink on the text? It is simple, all we need to insert attributes inside the element. Attributes Attributes are adding extra information to tags, but they are not showing in the actual content.                  <tag name="value" ></tag> The name="value" part is the attribute. It is inside a tag and includes an attribute name, followed by an "=" sign, and an attribute value. In the example below, <a></a> stands for "anchor" and will make the text into a hyperlink.  And the   href ="https://www.google.com" is a link attribute, which will direct to Google Homepage when someone click on "my favorite website". As we can s...

Get Started to Learn HTML: Four Basic HTML Elements You Must Know

For the past two days, I had studied HTML from MDN Web Doc ,which is provided by Udemy course.  Before I started, I felt so excited and also  nerves . Can I really understand the content? What if the code language is too complex to understand?  Whatever......Not matter what, I told myself just start to learn. If I am too afraid to even open the web page , I would never figure it out. Try first, and then see what would happen.  As I read through the first part: Getting Started with HTML , I find it is not to difficult to understand the information. By following the instruction, I can start to write some basic HTML element in the test code box, and see the good result. At that moment, I feel so motivated. Now, I am going to share my study note and thought with you. What is HTML? According to MDN,  HTML is a markup language used to tell your browser how to structure the web pages to visit. Image you are building a house, HTML is like your...

My Story: A Mommy Start To Learn Code From Zero

From Google Image I am not a programmer, and I thought I would never become one. Everytime I see someone is coding, I think he or she must be very talent.  For me, coding is a very difficult subject to learn. Not only the language has so many rules, but also the logical reasoning behind the language is complex.  In my graduated school, I knew many friends who didn't have any coding background, but they are doing programmer or developer jobs now. Some of them went to school to study coding, and some of them  learned to code by themselves. Their stories are so impressive.  I wasn't ready to learn code until I finished my first Chinese book "留学,我的青春呀!" recently. I always want to be a writer and write my own book. I started writing blog three years ago, and I updated my post two to three times every week. As I enjoyed writing , I started to get some followers, likes, and good comments on my blog. Then, I decided to plan my first book. My First...