أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
You can think of the HTML as the structure for the page, while the CSS gives the HTML it’s styling.Before we even write the CSS, we actually have to go back to our HTML. We need to write a new line to link the html file and the css file together. So, open up the html file and add this code below for example:
<!DOCTYPE html> <html> <head> <title>This is my page title.</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <h1>This is a heading 1 element</h1> <p>Hello world, this is a simple paragraph.</p> </body> <html>
HTML for the Content. CSS for Styling the content.
Because,
HTML = structure
CSS = style
That's why use both together...
In simple, HTML let you write and create the content of the page for example heading , paragraph , list and so on. CSS allow you to give a style for the web page and text too.