Adding Content To A Webpage
Adding Content To A Webpage
STUDY GUIDE
Paragraph
» Indicated with the <p> tag.
» Text displays in a smaller, more standard size.
Lists
» Lists can be ordered - the <ol> tag - or unordered - the <ul> tag.
» An ordered <ol> tag will create a numbered list.
» An unordered <ul> tag will create a bulleted list.
» Give each item in the list its own list item tag, <li>, to indicate that each one gets its own line.
» <ol> or <ul> is always the parent element; <li> is always the child element.
Image
» The HTML image tag uses a web address to link to an image, so images can only be added to an HTML file if they’re hosted somewhere
online.
Basic format: <img src="web address" alt="alternative text" width="###" height="###" />.
»
»
»
» Basic parts:
The image tag, <img>, indicates you’ll be adding an image. It’s self-closing, so it closes itself without adding /> at the end of your
statement.
src stands for "source" and indicates where the image comes from. This is usually a url.
alt stands for "alternative text". This is text that describes the image. A screen reader used by a visually impaired site visitor would
read this text aloud.
width and height specify the size of the image in pixels. (Replace ### in the basic format above with an exact number of pixels.)