Lesson 1:

In our first lesson, we were taught the difference between HTML and CSS. HTML is the layout of a website with a Header, Body and Footer. 

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


CSS includes the colour, margins and typefaces. An external style sheet is used to define the style of the HTML pages this is usually done by linking the HTML with the CSS by using this code;   

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styles.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


We also learned how to input an image and how to change the font style. 



Comments

Popular posts from this blog

Lesson 4:

My Project- ASOS