Learnt out the Web Development for a Project | HTML5 and CSS
26 Sep 2017Today, I did start learning Web Development to some extent for a Project.
Never Stop Learning is the Key to Success!.
-
I learnt (or say, revisited) HTML5 today. Elements are simplified; h1, h2, h3 and so on keep decreasing their sizes when going from 1 to below.
-
Of course, p is for Paragraph and “lorem epsum text” is a kind of Template text used be Web Devs for a long period of time.
-
Every element ends up with “/” is a good thing.
-
Styling out to change the Color of Text using style = “color :
is really as simple as jumping off a table!. -
Styling can be further simplified using CSS, Of course using style tags.
-
color, font-size, font-family are life of an HTML.
-
Images, their sources and alt can be added in a single tag as
img=" ", src=" ", alt=" ".
-
Border has color, width, style and radius.
-
Two classes attributes can be added in a tag as
class = "class1, class2".
-
Remember to add ; or {} everywhere in a class (wherever necessary).
-
To make a hyperlink, use
<a href" ">Text<a>
between the Paragraph -
We can give user, an opportunity to enter in the field. We use
<input type = "text">
for text inputs and placeholder can be added like a watermark!. -
Data from your website can be submitted to a server using form Element,
<form action = "locaton">(anything can be nested here)</form>.
-
Button can be created using
<button type = "">text_on_button</button>
. -
Button, Input Element can be nested in the form element.
-
Require a field using HTML5 so that form is not submitted without filling it out, adding a required in the input element will do.
-
Radiobuttons and Checkboxes can also be added and checked by default using “checked” keyword,
<label><input type = "radio" name = "button_radio" checked></label>.
-
Div is most commonly used element, it’s a container. it’s useful for styling the webpage together.
-
Classes are always defined in a style tag and can be implemented wherever necessary.
-
Give unique id to the elements.
-
As Classes start with . id starts with #.
-
Id attributes always take precedence over Class attributes and it overrides the Class.
-
!important is used to put 100% chances of what you want.
-
hexcodes and rgb are the two types to represent colors in CSS.
-
#000000 for hexcodes and rgb(R, G, B) for RGBs.
-
Simple Cat App
CatPhotoApp
Click here for cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
AND MY LEARNING GOES ON