20
HTML Primer for Technical Communicators TECM 5191 Dr. Lam

HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Embed Size (px)

Citation preview

Page 1: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

HTML Primer for Technical

Communicators

TECM 5191Dr. Lam

Page 2: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Poll

• Text ChrisLam138 to 22333

Page 3: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Agenda

We’ll answer the following questions today:• Why are we learning HTML?• What is HTML?• How do you write HTML?

Page 4: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Why HTML?

“Sure writing, punctuation, grammar, and rhetoric are important, but every college graduate is expected to have mastered these basics. To be successful -- and to differentiate yourself in this ultra-competitive global market -- you have to step outside the traditional 'writing' role and master the concepts that are important in all types of communication.”

– Scott Abel, content strategist/technical writer

Page 5: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Why HTML?

“Stay current with new technologies and methods. Choose a secondary subject in which to develop expertise, such as social media or usability. As far as skills go, I would say to absolutely learn HTML/CSS and XML. I’d also suggest basic database design. Staying current is, to me, the most important consideration.”

–Julie Norris, Technical Writer,

Page 6: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Why HTML?

“Remember that the technical part of technical writer is just as important as the writer part. Sometimes, it can be even more important. Writing isn't always enough. You need other skills to succeed in this profession. Like what? Obviously, knowledge of the tools of the trade. Don't forget knowledge of technologies -- ranging from operating systems to the languages and processes what you're documenting. Don't discount interviewing, either. You need to know how to draw information out of sometimes tight-lipped subject matter experts (SMEs). Having a knowledge of technologies helps; you can speak the language of the SMEs, and by doing that they'll take you a little more seriously.”

- Scott Nesbitt, Technical Communicator

Page 7: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

OK, but really, why?

• Experts say so…but why else?

• Rhetorical argument: Writing on the web is for humans. When a computer generates the content, it doesn’t understand human needs the way you do.

• Functional argument: If you or your organization is publishing on the web, then it is being published in HTML. No exceptions.

Page 8: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

What’s this?

Page 9: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

WYSIWYG Pitfall Example

Page 10: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Better HTML

Page 11: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Both look the same(ish)

• So, what’s the problem?

Page 12: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

So, what is HTML?

• Hypertext Markup Language • It’s a way to mark up existing written language.

It’s not really a language, but is more a system of tags.

• HTML is the language of the web (all websites use HTML to some degree) ALL. Of. Them.

• Tags serve to describe content• <p> stands for paragraph, used to describe a

paragraph

• HTML is the structure of the content, NOT the visual layout or design of the content

Page 13: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Some HTML examples

• Web developer examples…

Page 14: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

What makes a valid HTML document?

1. <!doctype html> Doctype declaration• Tells the parser (translator) what type of

document it should be parsing

2. <html> tag

3. <head> tag

4. <title> tag

5. <body> tag

Page 15: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

XHTML Rules

• Doctype is mandatory

• All tags that open must close

• Tags close in the opposite order that they open

• Elements must be lowercase

• Attributes must be lower case and quoted

Page 16: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Anatomy of HTML

• HTML is constructed of elements and attributes

• Elements have start tags and end tags. You put content in between them. • <p>This is content that goes in between a paragraph

start tag and a paragraph end tag.</p>

• All HTML elements can have attributes (but attributes are optional).• Attributes provide additional information about the

element. • Attributes are lowercase and placed in between

quotations• E.g., <img src=“images/logo.png” />

Page 17: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Most-Used Tags?

• Poll

Page 18: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Common Tags• Headings

• <h1> through <h6>

• Main content • Paragraphs• <p>

• Bulleted lists• <ul> to open the list• <li> for each list item

• Numbered lists• <ol> to open the list• <li> for each list item

• Images• <img> but must have source of image file• <img src =“images/logo.png” alt = “logo image” />

Page 19: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Tools for HTML

• Text editor or HTML editor• Notepad++• Sublime Text (mac)

• The difference between a proprietary file format and a non-proprietary one is that the tool itself has nothing to do with the production of the file. • i.e., you need word to create a .docx file

Page 20: HTML Primer for Technical Communicators TECM 5191 Dr. Lam

Mark it up

• Mark up the first page of this document in valid HTML

• https://www.prismnet.com/~hcexres/textbook/examples/instruxx2b.pdf