body {
font: normal normal normal 13px/13px Lora, Arial, Verdana, sans-serif;
font-size: 13px;
line-height: 13px;
font-family: Lora, Arial, Verdana, sans-serif;
color: black;
line-height: 25px;
}
A "Layout Draft"
It can be wise to draw a layout draft of the page design before creating a website:
First Step - Basic HTML Page
HTML is the standard markup language for creating websites and CSS is the language that describes the style of an HTML document. We will combine HTML and CSS to create a basic web page.
CSS Code
HTML Code
Example Explained
- The
<!DOCTYPE html>
declaration defines this document to be HTML5 - The
<html>
element is the root element of an HTML
page - The
<head>
element contains meta information about the document - The
<title>
element specifies a title for the document - The
<meta>
element should define the character set to be UTF-8 - The
<meta>
element with name="viewport" makes the website look good on all devices and screen resolutions - The
<style>
element contains the styles for the website (layout/design) - The
<body>
element contains the visible page content - The
<h1>
element defines a large heading - The
<p>
element defines a paragraph
Creating Page Content
Inside the <body>
element of our website, we will use our "Layout
Draft"
and create:
- A header
- A navigation bar
- Main content
- Side content
- A footer
hey
ReplyDeletePost a Comment