Download presentation
Presentation is loading. Please wait.
Published byShanon Cross Modified over 8 years ago
1
HTML two 1) Tags 2) Blocks 3) Style
2
Tags Opening tags: Closing tags:
3
Blocks Blocks are made up of an opening and closing tag and everything in between: Hello there
4
Nesting Blocks Bad: Hello there Good: Hello there
5
Style Indentation – Inside a block indent Hi there Consistent case – Tag Names, Attribute Names
6
More Style Always Always Always quote attribute values good: bad:
7
The three basic tags and blocks
8
The three basic tags and blocks cont. Html – This is the outside block in which we will create our webpage, for our purposes there should never be anything outside it. Head – This is the block in which we place information about the page, such as the title. In fact we won't really use it for anything else until after the first project.
9
The three basic tags and blocks cont. Body – This is where we place all the content that is going to be seen by the user. The rule of thumb is, if it is going to be seen by the user it will go here.
10
Adding Information to our page Some cool catchy title Tiberius Claudius Nero Born: November 16, 42 BC Died: March 16, 37 AD
11
How can we make the text look right? Since all whitespace (spaces, returns) gets compressed to a single space we need to use a tag to get line breaks: Tiberius Claudius Nero Born: November 16, 42 BC Died: March 16, 37 AD
12
Writing for the web (sort of) Headings draw the eye in. They can also be used to draw the eye in.,,,,, Tiberius Claudius Nero
13
A better way to control the font The tag uses following attributes: – Size: can be relative (+2, -2,etc..) or absolute (1-5) – Color: for now you can make this red, blue, etc... Born: November 16, 42 BC
14
But changing the actual Font? In that case use the face attribute Died: March 16, 37 AD
15
Bold and Italics, Died: March 16, 37 AD
16
Background Color The bgcolor of the tag
17
thanks Charles Smith 17 Reference Website http://www.w3schools.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.