Back to Browse

HTML5 Beginner Basics #3 - Attributes

1.1K views
Jan 6, 2015
8:00

Welcome again to the 3rd installment of HTML5 tutorial videos, today we'll be discussing HTML Attributes. Attributes are used to give more information about certain HTML elements. It's necessary to use Attributes when designing and developing web pages. I'm going to be talking about a few popular attributes, although there are dozens more that we'll be exploring later. Again if you'd like to access the files I'm working with you can find them here by downloading the zip file: https://github.com/BrendanDickinson/HTML5Tutorials Let me know what you think about this video and if you think I can do something to improve just leave a comment down below. Help support me by subscribing and I hope you enjoy it! If you have any other questions just leave a comment and I'll get back to you as soon as possible. For more information on my work check out my portfolio website: http://brendangamer.com/ Outline: 3 - HTML5 - Attributes HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" lang attribute or language important for screen readers and search engines first 2 letters specify a language and second 2 are the dialect html lang="en-US" title attribute let's say that a paragraph has a title we can add the title attribute to specify what it is. displays as a tooltip p title="About HTML5" HTML stands for Hyper Text Markup Language It is used to tell browsers what content to display and how to display it. /p href attribute*** This is used for linking to other web pages it is always defined in the a tag. a href="http://www.google.com" This is a link to google /a size attributes images are defined within img tags src="smashing.jpg" width="100px" height="100px" alt attribute alternative text to be used when the html element cannot be displayed (screen readers so say someone is blind and listens to the webpage they can hear what the element is) tips: always use lowercase attributes (again for older versions) always use quotes around attribute values (in case there are spaces like in a title or for older versions of HTML) single or double quotes double qoutes are the most common but there's nothing wrong with using single quotes, sometimes if the value has quotations in it single quotes would be necessary

Download

0 formats

No download links available.

HTML5 Beginner Basics #3 - Attributes | NatokHD