LINK HTML WITH CSS
What is HTML and CSS ? What is the use of them ? How we use them ? what they perform ?
- HTML = Hyper text mark up language
- CSS = Cascading style sheet
HTML is the base of a web page. Everything you create or work on is HTML on a web page.
Like to make it look good/style it we use CSS and to perform a random task we apply javascript and for other actions we apply back-end programming languages !
In this scenario I will be joining a Css file with html by creating a Css file. In my older post of Web Designing I created a html file namely new.html
I'm going to open it again and gonna show you how to connect it with css and make some edits we want to see !
STEPS TO PERFORM TASK !
- Make a folder
- Copy/Paste HTML file or create one in it
- Create a Css file
- Paste correct code between the head tags
- perform some codes on css file to make it look different.
I'm going to perform all the 5 task I discussed above ..
Creating a css and html file in a separate folder and joining them with a single line of code !
CREATING CSS FILE
A FOLDER WITH CSS AND HTML
---------------------------------------------------------------
Div is basically a container, since i have connected css file to a html page, if i make try to make any
changes it will be change on the whole page ! but if I wanted to make a change on a particular place ?
This is why we create different container i.e. Div and to work on it we set it as class or ID .
I always use class because its better than id.
How to call ID and class :
- ID = #name
- class = .name
HOW TO MAKE RELATION/CONNECTION
HOW ABOVE CODE WILL PERFORM [CSS FILE IS EMPTY]
Creating a div namespace = "learning_css"
Just putting a heading in it with h2 tags
Here I open the range of my class learning_css
with [ .learning_css {} ]
Things I edit here :
- the width of my container
- the height of my container
- the background color
- to change the text position !
RESULTS WITH CODE
Things I edit here :
- margin of my container from left
Edit its position from left to center through css, thats how it is done professionally !!
RESULTS WITH CODE
Enjoy Learning With TrueSight !!
4 Comments
I will prefer this blog because it has much more informative stuff.
ReplyDeleteWeb Development Solution
Each time I used to always check blog posts within the first hours in the break of day, because I like to get information increasingly more.
ReplyDeleteSex Toys For Men
I was looking for the Website design enhancement data and afterward ran over to your blog. Your blog unmistakably demonstrates how well you have the learning in this specific subject. seo service singapore
ReplyDeleteWhile experiencing and surfing on the web I saw the incredible article on Website optimization and was escape with it's simply needed to state. Continue onward! seo services delhi
ReplyDelete