12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Web Page Code Structure<br />

9<br />

Web Page Code Structure<br />

Web code structure is very simple, even though a the code of a fully functioning web<br />

page looks confusing and complex. We’re going to break things down, step by step, and<br />

you’ll be coding in no time.<br />

HTML works in a very simple and logical format. It reads like you do, from top to bottom,<br />

and left to right. That’s important to remember. HTML is written with normal text.<br />

What you use to set certain sections apart as headings, subtitles, bold text, image links,<br />

etc is a series of what we call tags.<br />

Think of tags as making your structure. Let’s say you want a heading. You will put a tag<br />

at the exact point you want the heading to start and another tag where you want the heading<br />

to stop. If you want a specific word to be emphasized, you will place a start emphasis<br />

tag at the beginning of the word and an end emphasis tag at the end of the word. Make<br />

sense?<br />

HTML Tag Building Blocks<br />

HTML tags have three components that tell the browser what is to be displayed:<br />

• Element: An HTML element is everything from the start tag to the end tag. Example:<br />

<br />

• Attribute: Provides additional information about HTML elements. Example:<br />

<br />

• Value: The value of the tag’s attribute. The value must always be inside of opening<br />

and closing quote marks. Example: <br />

We’ll take a good look at these three sections later, but first, a word about using the<br />

HTML coding tags. Remember these four things about using a tag:<br />

• Open it<br />

• Close it<br />

• Use for specific purposes<br />

• ALWAYS use all small text - no capital letters<br />

77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!