Skip to main content

Posts

HTML5

Recent posts

HTML 5 Comments Tag

HTML 5 Comments Tag Description The HTML 'comments' tag is used for creating comments within your HTML code. Comments aren't displayed in the browser - they are simply there for the programmer's benefit. Comments can assist you, the HTML programmer, because you can write notes to yourself that explain what the code does. This is especially useful when you have a lot of code.

HTML5 Global Attributes

HTML5 Global Attributes Each HTML5 element supports a number of attributes. The attributes listed here are common to all HTML5 elements. Attribute Description accesskey Specifies a shortcut key that can be used to access the element. Possible values. [Any string of characters. This string of characters specifies the key/s the user needs to use in order to access the element.] class Document wide identifier. Used to refer to a class specified in the style sheet. The value should be the name of the class you wish to use. For more information, see CSS class. contenteditable Sets whether the user can edit the content or not. Possible values: true

Lesson 11: Borders css

Lesson 11: Borders Borders can be used for many things, for example as a decorative element or to underline a separation of two things. CSS gives you endless options when using borders in your pages. border-width border-color border-style border The width of borders [border-width]

Lesson 10: Margin and padding css

Lesson 10: Margin and padding In the previous lesson you were introduced to the box model. In this lesson, we will look at how you can change the presentation of elements by setting the  margin  and  padding properties. Set the margin in an element Set the padding in an element Set the margin in an element An element has four sides: right, left, top and bottom. The  margin  is the distance from each side to the neighboring element (or the borders of the document). See also the diagram in  lesson 9  for an illustration.

Lesson 9: The box model css

Lesson 9: The box model The box model in CSS describes the boxes which are being generated for HTML-elements. The box model also contains detailed options regarding adjusting margin, border, padding and content for each element. The diagram below shows how the box model is constructed: The box model in CSS