HTML Css Lec1
HTML Css Lec1
• Internet Connection
• TCP/IP
• DNS
• HTTP
Front End Development
• HTML ( HyperText Markup Language) is a markup language that tells web browsers how to
structure the web pages.
• HTML contains series of elements which we use to make content appear in certain way
Basic Structure of
HTML Document
What is HTML head ?
• The <title> element is metadata that represents the title of the overall HTML
document.
• When you bookmark a page , <title> contents are filled in as suggested bookmark
name.
Metadata: the <meta> element
• Lists of items for which the order of the items doesn’t matter
• Starts with <ul> element — wraps around all list elements
• Wrap each list item with <li> element
Lists
Ordered Lists
• Lists of items for which the order of the items does matter
• Starts with <ol> element — wraps around all list elements
• Wrap each list item with <li> element
<b> vs <strong>
• The <img> tag is an HTML element used to embed images in a web page.
• Self enclosing tag (does not require a closing tag)
• Attributes for img tag :
• src - specifies url of the image
• alt - alternative text for the image
• Width and height - specifies dimensions of the image
Hyperlinks
• Mark up a set of items and their associated descriptions, such as terms and their
associated descriptions such as terms and definitions.
• Wrapper element <dl>
• Description term <dt>
• Description definition <dd>
Superscript nd subscript
• We need to use superscript and subscript when marking up items like dates, chemical
formulae and mathematical equations.
• The <sup> and <sub> elements handle this job
HTML Tables
• Header - <header>
• Navigation bar - <nav>
• Main Content - <main> with various subsections represented by <article>, <section>
and <div> elements
• Sidebar - <aside>; often placed inside <main>
• Footer - <footer>
Planning a simple website
Style HTML using CSS
What is CSS ?
• External Stylesheet
• Internal Stylesheet
• Inline Styles
How does CSS
actually work?
CSS Selectors
• Static
• Relative
• Absolute
• Fixed
• Sticky
Sizing items in CSS
• border-style
• border-width
• border-color
Display Properties
• block
• inline
• inline-block
Thank You !!