Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 39 páginas
Resumen

Summary HTML Css

Document preview thumbnail
Vista previa 4 fuera de 39 páginas

HTML5 and CSS are foundational technologies for web development, each serving distinct but complementary roles. ### HTML5 HTML5 is the latest version of the HyperText Markup Language, which is the standard language used to create web pages. It introduces several new features and improvements over previous versions, including: 1. **New Elements**: HTML5 adds new semantic elements like `header`, `footer`, `article`, `section`, and `nav`, which provide better structure and meaning to the content. 2. **Multimedia Support**: It natively supports audio and video embedding through `audio` and `video` tags without needing external plugins like Flash. 3. **Graphics and Interactivity**: The `canvas` element and Scalable Vector Graphics (SVG) support allow for drawing graphics and animations directly in the browser. 4. **Forms and Input Enhancements**: New input types (e.g., `email`, `date`, `range`) and attributes (e.g., `placeholder`, `required`) improve form handling and user input validation. 5. **APIs and Functionality**: HTML5 includes various APIs, such as the Geolocation API for location-based services, the Local Storage API for client-side data storage, and the Drag and Drop API for interactive applications. ### CSS Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation of a document written in HTML or XML. CSS controls the layout, design, and appearance of web pages. Key aspects include: 1. **Selectors and Properties**: CSS uses selectors to target HTML elements and properties to define their styles, such as `color`, `font-size`, `margin`, and `background`. 2. **Box Model**: The box model defines how elements are structured and spaced on a page, including margins, borders, padding, and content areas. 3. **Layouts**: CSS provides various layout techniques, including Flexbox and Grid, for creating complex, responsive designs that adapt to different screen sizes and devices. 4. **Responsive Design**: Media queries allow developers to apply different styles based on device characteristics like width, height, and orientation, enabling responsive design. 5. **Animations and Transitions**: CSS can animate changes in element properties and create smooth transitions between states, enhancing user experience. ### Integration HTML5 and CSS work together to create modern, interactive, and visually appealing websites. HTML5 provides the structure and content, while CSS handles the styling and layout. This separation of concerns allows for more efficient and maintainable web development. Overall, HTML5 and CSS are essential tools for web developers, enabling them to create dynamic, user-friendly web applications and websites.

Vista previa del contenido

CS50’s Web Programming with Python and JavaScript
OpenCourseWare

Donate

Brian Yu


David J. Malan

Facebook GitHub Instagram LinkedIn Reddit Threads Twitter
Menu

Lecture 0
• Introduction
• Web Programming
• HTML (Hypertext Markup Language)
o Document Object Model (DOM)
o More HTML Elements
o Forms
• CSS (Cascading Style Sheets)
• Responsive Design
• Bootstrap
• Sass (Syntactically Awesome Style Sheets)
Introduction
In this course, we’re picking up where CS50 left off and diving into the design and creation of
web applications. We’ll build our web-design skills by working on a number of projects
throughout the course, including an open-ended final project where you’ll have the chance to
create a website of your own!

In this course, you’ll need a text editor where you can write code locally on your computer.
Some popular ones include Visual Studios Code, Sublime Text, Atom, and Vim, but there are
many more to choose from!

Web Programming
Course Topics: We’ll go into more detail later, but here’s a brief overview of what we’ll be
working on during this course:

1. HTML and CSS (a markup language used to outline a webpage, and a procedure for
making our sites more visually appealing)
2. Git (used for version control and collaboration)

, 3. Python (a widely-used programming language we’ll use to make our sites more
dynamic)
4. Django (a popular web framework we’ll use for the backend of our sites)
5. SQL, Models, and Migrations (a language used for storing and retrieving data, and
Django-specific methods that make it easier to interact with SQL databases)
6. JavaScript (a programming language used to make websites faster and more interactive)
7. User Interfaces (methods used to make a website as easy to use as possible)
8. Testing, CI, CD (learning about different methods used to make sure updates to web
pages proceed smoothly)
9. Scalability and Security (making sure our websites can be accessed by many users at
once, and that they are safe from malicious intent)
HTML (Hypertext Markup Language)

• HTML is a markup language that defines the structure of a web page. It is interpreted by
your web browser (Safari, Google Chrome, Firefox, etc.) in order to display content on
your screen.
• Let’s get started by writing a simple HTML file!
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello!</title>
</head>
<body>
Hello, world!
</body>
<html>

• When we open up this file in our browser, we get:

,• Now, let’s take some time to talk about the file we just wrote, which seems to be pretty
complicated for such a simple page.
o In the first line, we are declaring (to the web browser) that we are writing the
document in the latest version of HTML: HTML5.
o After that, the page consists of nested HTML elements (such as html and body),
each with an opening and closing tag marked with either <element> for an
opening and </element> for a closing.
o Notice how each of the inner elements is indented just a bit further than the last.
While this is not necessarily required by the browser, it will be very helpful to
keep this up in your own code.
o HTML elements can include attributes, which give the browser extra information
about the element. For example, when we include lang="en" in our initial tag, we
are telling the browser that we are using English as our primary language.
o Inside the HTML element, we typically want to include both a head and
a body tag. The head element will include information about your page that is not

, necessarily displayed, and the body element will contain what is actually visible
to users who visit the site.
o Within the head, we have included a title for our webpage, which you’ll notice is
displayed in the tab at the top of our web browser.
o Finally, we’ve included the text “Hello, world!” in the body, which is the visible
part of our page.

Información del documento

Subido en
1 de junio de 2024
Número de páginas
39
Escrito en
2023/2024
Tipo
Resumen
$10.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
1
Última venta
-


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes